Commit Graph

24 Commits (04248c273e0eaeb7f4e62a6e184f0b2a26078ab1)

Author SHA1 Message Date
Samuel John f6e80bdea2 Python 2.x and 3.x support
New `depends_on :python` Dependency.
New `depends_on :python3` Dependency.

To avoid having multiple formulae with endings -py2 and -py3,
we will handle support for different pythons (2.x vs. 3.x)
in the same formula.
Further brewed vs. external python will be transparently supported.

The formula also gets a new object `python`, which is false if
no Python is available or the user has disabled it. Otherwise
it is defined and provides several support methods:

python.site_packages # the site-packages in the formula's Cellar
python.global_site_packages
python.binary # the full path to the python binary
python.prefix
python.version
python.version.major
python.version.minor
python.xy # => e.g. "python2.7"
python.incdir # includes of python
python.libdir # the python dylib library
python.pkg_config_path # used internally by brew
python.from_osx?
python.framework?
python.universal?
python.pypy?
python.standard_caveats # Text to set PYTHONPATH for python.from_osx?
python.if3then3 # => "" for 2.x and to "3" for 3.x.

Further, to avoid code duplication, `python` takes an optional
block that is run twice if the formula defines depends_on
:python AND :python3.

python do
  system python, 'setup.py', "--prefix=#{prefix}"
end

Read more in the Homebrew wiki.
2013-06-03 17:29:43 +02:00
Adam Vandenberg 78469fc617 asymptote 2.23 2013-05-25 16:11:52 -07:00
Jack Nagel 3a9a824d5f asymptote: fix test 2013-03-26 00:02:34 -05:00
Adam Vandenberg 64ecbb72b9 asymptote: reformat caveats 2013-02-11 21:11:22 -08:00
Jack Nagel 85c659794a asymptote: use test DSL 2013-02-01 23:38:49 -06:00
Xiyue Deng ba9cb98059 Make asymptote use TeX requirement.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-13 18:25:53 -08:00
Jack Nagel 8c29982153 Revert "Rename readline to gnu-readline"
This reverts commit adee5315265cc46aa6a3057071527abb16e1cd94.

Turns out one of the "other things" is a dealbreaker.

We only create kegs using a formula's canonical name. However, we do not
check that this is the case when mapping existing kegs back to formula
objects, and thus a keg with a name that happens to be an alias can fool
Homebrew into thinking the canonically-named keg exists.

So anything that enumerates kegs and then tries to do stuff with the
resulting formula objects will just break. This is obviously worse than
the debugger being broken, so reverting this for the time being.
2012-11-10 21:12:26 -06:00
Jack Nagel e2f9856882 Rename readline to gnu-readline
The Readline class clashes with the Readline module from the Ruby
stdlib. This has mostly worked, but with the recent debugging support's
integration of IRB, it is no longer possible for them to coexist. So we
need to rename it.

The implications of this are:

 - Anything that depends on readline will reinstall it as
   "gnu-readline". Anything already installed will continue to function.

 - "brew upgrade readline" will say "gnu-readline not installed", as
   "readline" is now an alias.

 - Probably other things.

So there are some downsides, but we will just have to deal with them.

Fixes Homebrew/homebrew#15776.
2012-11-10 20:07:32 -06:00
Adam Vandenberg 1f75ff64d0 asymptote: use userpaths
Fixes Homebrew/homebrew#15310.
2012-10-07 15:51:48 -07:00
Mike McQuaid 88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Adam Vandenberg 5e982a68a8 Use new Requirements in formulae 2012-03-10 09:24:10 -08:00
Adam Vandenberg 18de10fe0a use which method 2012-03-06 06:53:07 -08:00
Adam Vandenberg da3fdbd0cf Use "cd" instead of "Dir.chdir"
* And "mkdir" isntead of "Dir.mkdir"
* And "Dir[]" instead of "Dir.glob"
* Also style fixes and nitpicks
2012-02-24 21:35:50 -08:00
Jack Nagel 93677a7a22 asymptote: fix build with clang
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-11 15:14:08 -06:00
François-Xavier Thomas 1841e5075a asymptote 2.15
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-11 00:20:30 -06:00
Charlie Sharpsteen 8b83b340ea Asymptote: Add a test
The test creates a temporary directory, writes out a simple LaTeX file
containing an Asymptote figure, then tries to compile it.
2011-08-27 13:53:22 -07:00
Charlie Sharpsteen 1c2140d43f Asymptote: Fix installation
Asymptote needs a serialized `make install` or else things fail due to race
conditions.

Also, altered installation so that TeX packages are no long installed to texmf
trees outside of the Asymptote keg---notably:

    /usr/local/texlive/<dist_year>/texmf-local
    ~/Library/texmf

All packages are now installed to HOMEBREW_PREFIX/share/texmf and instructions
for adding this directory to the TeX search path are given in the caveats.
2011-08-27 12:46:35 -07:00
Will Robertson 3ab7357282 asymptote 2.13
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-17 23:27:21 -07:00
Adam Vandenberg 4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Will Robertson aa0478dc41 asymptote: v2.08 update
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-13 11:28:01 -08:00
Will Robertson eeba23920f Asymptote update to 2.06
An uncharacteristically short amount of time for a new release.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-24 09:12:06 -07:00
Will Robertson 9c862f7305 asymptote: update to latest version 2.05
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-18 06:56:18 -07:00
Adam Vandenberg 3a68b97087 asymptote - formula style tweaks 2010-09-27 13:25:32 -07:00
Will Robertson 18f156ad16 New formula: Asymptote
Asymptote is a 3D programmatic drawing environment
that integrates with TeX/LaTeX. It requires a MacTeX
installation (or equivalent).

Building asy from source is not exactly straightforward
(although not toooo difficult) on Mac OS X due to some
dependences; hopefully this formula helps some people
out.

Signed-off-by: David Höppner <0xffea@gmail.com>

* white spaces
2010-08-30 18:09:39 +02:00