Commit Graph
33 Commits
Author SHA1 Message Date
Mike McQuaid 3c86d2b8ff Update docs, comment mxcl/homebrew refs. 2013-12-14 18:18:35 +00:00
Jack Nagel fa337d7997 libxml2: use spec deps 2013-09-21 19:27:26 -05:00
Samuel John fd03aa527d 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 31caa279cb libxml2: fix caveats typo. 2013-07-18 09:56:54 -07:00
Samuel John d1dedcce28 libxml2: python bindings optional for OS X 10.6 2013-07-16 11:22:44 +02:00
Samuel John 4be7e33a1d Fix audit warnings for python modules 2013-07-16 11:12:14 +02:00
Adam Vandenberg 8030ed2b90 libxml2: remove now misleading comment 2013-07-11 12:55:33 -07:00
Adam Vandenberg 04109b0cdc libxml2: allow installation without Python 2013-07-09 22:45:48 -07:00
Adam Vandenberg 8cc9ee6ebb libxml2: add --with-python option
Add an explicit option to silence audit warnings.
2013-06-29 09:11:15 -07:00
Samuel John 8a696ff753 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 763f02070b libxml2: Fix missing option --with-python
Fixes #20426
2013-06-12 16:33:59 +02:00
Samuel John c7481c49d4 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 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