Commit Graph
21 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 2505585c8e libxml2 2.9.1 2013-05-15 20:34:33 -05:00
Jack Nagel 5dd45d75d1 libxml2: add http mirror 2013-03-03 19:21:18 -06:00
Jack Nagel 68b5a00bf1 libxml2 2.9.0 2013-02-10 18:20:35 -06:00
David Caldwell 763d94665c libxml2: restore --disable-dependency-tracking
Closes #17745.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-10 17:48:48 -06:00
samueljohn bdfb90bac6 libxml2: Python bindings find libiconv on NCLT.
Closes #13511.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-08 15:28:17 -06:00
Adam Vandenberg e304121867 libxml2: use new dsl 2012-09-02 11:46:24 -07:00
Adam Vandenberg c163796a7d Revert "libxml2: Fix Python bindings for Xcode-only"
This reverts commit 202119e0e3.
2012-08-10 12:04:01 -07:00
samueljohn 202119e0e3 libxml2: Fix Python bindings for Xcode-only
- Since libxml2 is a dupe, we have to assure to link against it and not system's python.
- Unless the CLT are present, apply a patch for the linking step.
- Help libxml2/python/setup.py to find libiconv headers.

Closes #13511.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-10 10:28:28 -07:00
Jack Nagel 8b168dd141 libxml2 2.8.0
- Build Python bindings manually so we can exert some semblance of
   control over where they are installed.

Tentatively fixes #12078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-06 23:13:41 -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
John Harrison 2214566687 libxml2: support --universal
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-04 08:25:49 -08:00
Julien Duponchelle 88e1eaf312 Upgrade libxml2 to 2.7.8
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-11 09:02:37 -07:00
Adam Vandenberg f4a925da5a Update fails_with_llvm in formulae 2011-03-25 23:31:30 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Justin Clift 04d0d8f398 Updated formula: libxml2
Adds a --with-python option, addressing Homebrew issue #2303:

  http://github.com/mxcl/homebrew/issues/issue/2303/

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

Fixes #2303
Fixes #3025
2010-11-02 07:32:53 -07:00
Douglas Creager ff5b66b26e libxml2 fails with LLVM 2326 2010-10-06 18:56:52 -07:00
Adam Vandenberg d0efd9ee94 Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00
Adam Vandenberg a4dcce657d Update (keg-only) libxml2 to 2.7.7. 2010-04-26 09:52:46 -07:00
Adam Vandenberg 8939a91a96 Libxml2 compiles with newer LLVM. 2009-12-12 16:24:16 +00:00
Kieran Pilkington 8b76ead271 Libxml2
Providing a keg only version of libxml2. The one provided by Mac is old and doesn't contain some files used by some games.
2009-11-09 18:31:52 +00:00