Commit Graph
16 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
Mike McQuaid 261a28063b libcaca: fix SHA1, option, test and X dependency. 2012-09-04 19:44:42 -07:00
Mike McQuaid 3c5ca25cad Batch convert MD5 formula to SHA1.
Closes #14653.
2012-09-03 11:36:42 -07:00
Jack Nagel a2d4d9d832 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Anthony Ramine 40e91b7e2b libcaca 0.99.beta18
The formula now properly depends on imlib2 to enable support of other
formats than BMP.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-16 20:40:55 -07:00
Jack Nagel 497b13ac9e Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
Adam Vandenberg 74aced7819 libcaca: use p1 patch 2012-03-17 20:50:03 -07:00
Stein Magnus Jodal e0b27b21ae libcaca: fix build with clang
Fixes #9727.
Closes #10078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-13 13:55:13 -06:00
Adam Vandenberg 637c485ea9 libcaca - fails with llvm 2011-03-27 12:28:48 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Tianyi Cui 7871a99fe3 Use https for all GitHub URLs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-18 20:14:27 -08:00
Adam Vandenberg 0f5560c4bf libcaca - tweaks to get it compiling 2010-10-20 21:42:10 -07:00
Tianyi Cui 6451ab3c88 libcaca: fix version
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-03 19:50:31 -07:00
Adam Vandenberg 3fa887ab11 libcaca - disable java support 2010-08-15 17:27:12 -07:00
David Höppner b45a24805f libcaca: update version to 0.99 2010-05-22 12:40:42 +02:00
David Höppner 2a8a90af44 New formula libcaca
libcaca is a graphics library that outputs text instead of pixels,
so that it can work on older video cards or text terminals.
2010-04-10 17:40:51 +02:00