Commit graph

32 commits

Author SHA1 Message Date
Jack Nagel
9f868a1414 libxml2: use spec deps 2013-09-21 19:27:26 -05:00
Samuel John
030793c988 Improve python tests for brew bots
Allow `build.with?` and similar methods to be used during the test
phase. The BuildOptions (`build`) are initialized with the
`Tab.used_options` unless explicitly overwritten on the command line.

So basically `build.with?` works in `def install` and in `test do` as
one would naively expect. (For the test, gramatically it should be
`built.with?` but who cares)

If a formula was installed `--with-python`, now the tests are also
run `--with-python`. This enables us to use the `python do ... end` in
a meaningful manner.

Using `python do ... end` blocks for the tests, because the bot.brew.sh has
system python per default and we need to set the PYTHONPATH for the test.
Potentially to different values for Python 2.x and 3.x.
2013-09-05 15:26:57 +02:00
Mike McQuaid
11cee95daf libxml2: fix caveats typo. 2013-07-18 09:56:54 -07:00
Samuel John
43df48c090 libxml2: python bindings optional for OS X 10.6 2013-07-16 11:22:44 +02:00
Samuel John
d0f836e20c Fix audit warnings for python modules 2013-07-16 11:12:14 +02:00
Adam Vandenberg
c3ad548bc3 libxml2: remove now misleading comment 2013-07-11 12:55:33 -07:00
Adam Vandenberg
3adc842f1a libxml2: allow installation without Python 2013-07-09 22:45:48 -07:00
Adam Vandenberg
def0db42b0 libxml2: add --with-python option
Add an explicit option to silence audit warnings.
2013-06-29 09:11:15 -07:00
Samuel John
00ee8174ad libxml2: Clearer wording Homebrew's site-packages
Style fix in PythonInstalled req. that is :recommended.
2013-06-18 16:46:42 +02:00
Samuel John
7c93f396f9 libxml2: Fix missing option --with-python
Fixes Homebrew/homebrew#20426
2013-06-12 16:33:59 +02:00
Samuel John
cddb186fdb libxml2: Added --HEAD and fixed Python bindings
-  Python 2.7+ is needed for current version. A fix to
   build with Python 2.6 has been recently added to
   the master:
   https://git.gnome.org/browse/libxml2/commit/?id=722923bc9b788f028e4221c77138fc66735a3113

-  So for system python on 10.6, you'll have to use
   the --HEAD for now.

-  Fix audit not detecting the `if python` after
   the def caveats.
2013-06-11 19:09:49 +02:00
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
0f94fdae25 libxml2 2.9.1 2013-05-15 20:34:33 -05:00
Jack Nagel
6a1e9215b8 libxml2: add http mirror 2013-03-03 19:21:18 -06:00
Jack Nagel
ac7c426021 libxml2 2.9.0 2013-02-10 18:20:35 -06:00
David Caldwell
b5779afde8 libxml2: restore --disable-dependency-tracking
Closes Homebrew/homebrew#17745.

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

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-12-08 15:28:17 -06:00
Adam Vandenberg
b4bb08e5b7 libxml2: use new dsl 2012-09-02 11:46:24 -07:00
Adam Vandenberg
3db494a028 Revert "libxml2: Fix Python bindings for Xcode-only"
This reverts commit 202119e0e3ee20c72940be5ff38bc36d3e331d41.
2012-08-10 12:04:01 -07:00
samueljohn
782f530b1d 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 Homebrew/homebrew#13511.

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

Tentatively fixes Homebrew/homebrew#12078.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-06 23:13:41 -05:00
Jack Nagel
64afeec6d4 Use new fails_with DSL syntax
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-01 12:39:59 -05:00
John Harrison
699259ee31 libxml2: support --universal
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-04 08:25:49 -08:00
Julien Duponchelle
f6a62e1fa5 Upgrade libxml2 to 2.7.8
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-11 09:02:37 -07:00
Adam Vandenberg
99b61b9a23 Update fails_with_llvm in formulae 2011-03-25 23:31:30 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Justin Clift
2f55416cb2 Updated formula: libxml2
Adds a --with-python option, addressing Homebrew issue Homebrew/homebrew#2303:

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

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

Fixes Homebrew/homebrew#2303
Fixes Homebrew/homebrew#3025
2010-11-02 07:32:53 -07:00
Douglas Creager
3135286854 libxml2 fails with LLVM 2326 2010-10-06 18:56:52 -07:00
Adam Vandenberg
7bd947eb0b 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
3306daf46e Update (keg-only) libxml2 to 2.7.7. 2010-04-26 09:52:46 -07:00
Adam Vandenberg
bdbf86f553 Libxml2 compiles with newer LLVM. 2009-12-12 16:24:16 +00:00
Kieran Pilkington
3e600f64bd 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