Commit Graph
11 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
Jack Nagel c762d35e0d gnome-doc-utils: intltool is a build-time dep 2013-02-03 14:47:57 -06:00
Jack Nagel c69d7ffc14 gnome-doc-utils: depend on libxml2 'with-python'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-26 12:28:48 -06:00
Adam Vandenberg 276fd63718 caveat and other cleanups 2012-11-25 11:42:57 -08:00
Jack Nagel 32e20f84a9 Use HTTP for gnome URLs
c.f. #10377.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-05 15:57:45 -05:00
Jack Nagel 32ff0464e7 gnome-doc-utils 0.20.10
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-11 21:25:18 -05:00
Jack Nagel 5cf921b35f gnome-doc-utils: set XML_CATALOG_FILES
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-06 23:13:42 -05: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
Jack Nagel 46e85b5ed2 gnome-doc-utils: set PYTHONPATH for libxml2 module
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-29 17:36:23 -05:00
Adam Vandenberg a68b0da8e0 gnome-doc-utils: clarify libxml2 dependency 2012-03-21 21:13:24 -07:00
Justin Clift 4b8e0ce654 New formula: gnome-doc-utils
Closes #9066.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-10 14:22:53 -06:00