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.
* Upgrade xapian to version 1.2.10
* Fix php bindings - args concat issue
* Fix ruby bindings - attempts to install to /Library/Ruby
* Add ruby caveat
* Remove `--disable-debug` from the subformula. It's unrecognized.
Fix the php bindings by adjusting the `args <<` statement so that
the array is created with correctly separated strings. Otherwise
there is a configure error brewing the subformula.
Fix the ruby bindings from installing into /Library by setting
two environment variables which `configure` queries so that they
now install to `lib+'ruby/site_ruby'`. The only other formula
that uses a similar Ruby directory is `subversion`, and it installs
to `lib+'ruby/1.8'` when built against the system Ruby. So these
two formulas don't clash, and both compile without error.
Tested on Lion with llvm-gcc and clang from XCode-4.3.2, all opts.
Closes#12165.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Way back in the day, Homebrew defaulted to LLVM/-O3. A lot of stuff
failed to compile, and a lot of stuff just took forever with -O4.
We don't default this way anymore, and in fact use -Os per Apple
guidelines.
So remove these old "fixes" since they are no longer needed.
Running brew install xapian --binding reported the following error:
Error: SHA1 mismatch
Expected: d42d418c1873c607427c7cfb293477aa35428e4c
Got: 79e9f0b01f1af3440d10d00469dbe248784ffa1c
Archive:
/Users/gordy/Library/Caches/Homebrew/xapian-bindings-1.2.7.tar.gz
Verified correct sha1 by comparing with download from
http://xapian.org/download and updated formula accordingly.
Closes#8558.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Also, changed the way the Python bindings are installed.
The latter change is needed because `/Library/Python` is owned
by root in Lion and would prevent the installation of the compiled
Python module. Instead this is following the technique used in
other formulas -- installing to lib/python and having to add that
directory to `PYTHONPATH`.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Xapian is a highly adaptable toolkit which allows developers to easily
add advanced indexing and search facilities to their own applications.
It supports the Probabilistic Information Retrieval model and also
supports a rich set of boolean query operators.
This includes the xapian bindings for PHP, Ruby, Java and Python.