Commit Graph
24 Commits
Author SHA1 Message Date
Samuel John 0b50110107 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 b1e2f005fa asymptote 2.23 2013-05-25 16:11:52 -07:00
Jack Nagel 463cfe0613 asymptote: fix test 2013-03-26 00:02:34 -05:00
Adam Vandenberg 36b9a08091 asymptote: reformat caveats 2013-02-11 21:11:22 -08:00
Jack Nagel 58a90da52c asymptote: use test DSL 2013-02-01 23:38:49 -06:00
Xiyue Deng a1ed3a0d94 Make asymptote use TeX requirement.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-13 18:25:53 -08:00
Jack Nagel bdaae65b9a Revert "Rename readline to gnu-readline"
This reverts commit adee531526.

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 adee531526 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 #15776.
2012-11-10 20:07:32 -06:00
Adam Vandenberg a60a55667a asymptote: use userpaths
Fixes #15310.
2012-10-07 15:51:48 -07:00
Mike McQuaid 3c5ca25cad Batch convert MD5 formula to SHA1.
Closes #14653.
2012-09-03 11:36:42 -07:00
Adam Vandenberg 939a1bb1cb Use new Requirements in formulae 2012-03-10 09:24:10 -08:00
Adam Vandenberg 841324b880 use which method 2012-03-06 06:53:07 -08:00
Adam Vandenberg d3f3554299 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 16b1d51278 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 f883426bd9 asymptote 2.15
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-11 00:20:30 -06:00
Charlie Sharpsteen d47526a4bc 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 5aaa2fe1e3 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 48a5c56a64 asymptote 2.13
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-17 23:27:21 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Will Robertson 702493f47d asymptote: v2.08 update
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-13 11:28:01 -08:00
Will Robertson ffb9cca2df 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 c46c80abdd 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 00942b4ef1 asymptote - formula style tweaks 2010-09-27 13:25:32 -07:00
Will Robertson 406a3c3511 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