Commit graph

7 commits

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
Jack Nagel
884ff2cc07 glade: intltool is a build-time dep 2013-02-03 14:47:56 -06:00
Brett Koonce
9af5e0fb42 glade3 3.8.3
Closes Homebrew/homebrew#17124.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-16 08:19:36 -08:00
Jack Nagel
d6e8244287 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Jack Nagel
530a76e41a glade: find libxml2 python bindings and docbook
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-06 23:13:43 -05:00
Birger J. Nordølum
678a1dd65d Glade 3.8.2
Closes Homebrew/homebrew#11287.

[jn: build-time dep on xz, separate make/make install]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29 17:35:43 -05:00
Stefan Kersten
7cacf8e065 Glade 3.8.0
Glade is a graphical user interface designer for Gtk+.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-15 08:25:32 -07:00