Commit Graph
20 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
Stefan 8ccde5ef81 xapian 1.2.13
Closes #17600.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-02-05 09:05:57 -06:00
Adam Vandenberg e250bfbb5d Use skip_clean :la 2012-09-09 13:01:56 -07:00
Adam Vandenberg b7ddc60645 xapian: use options dsl 2012-08-09 21:45:04 -07:00
Brett Koonce f44e66d210 xapian 1.2.12
Closes #13698.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-07-28 15:41:05 -07:00
nibbles 2bits aaab5746d8 xapian 1.2.10 and fix ruby+php bindings
* 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>
2012-05-14 22:16:12 -05:00
Jack Nagel 0022b3088e xapian: use versioned python lib directory
Fixes #8070.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-23 22:15:33 -05:00
lucha 2e790b3b59 Xapian 1.2.8
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-09 06:52:02 -08:00
Adam Vandenberg 200c36200d Don't override default -O flag.
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.
2012-02-25 21:00:28 -08:00
Gordon Tillman a634fd47e9 xapian: Update sha1 for xapian-bindings
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>
2011-11-12 09:42:37 -08:00
Ramanan Sivaranjan c9a68c9c9f Xapian 1.2.7
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-10-22 08:08:27 -07:00
Jannis Leidel 1b464d10ff Xapian 1.2.6
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>
2011-08-01 08:10:10 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Njal Karevoll 9609ecbb93 Updated the xapian formula to version 1.2.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-02-13 19:37:20 -08:00
Yaniv Aknin 55754db993 xapian 1.2.3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-06 06:53:04 -07:00
Lee Packham d22d7f431f Update Xapian to 1.0.21
* Fix extension build for python 2.7

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-10 07:23:19 -07:00
Adam Vandenberg 8552dd8149 Tweaks to xapian formula 2010-05-17 20:41:51 -07:00
David Edmondson 61611a7c60 xapian: Update to 1.0.20.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-17 20:33:36 -07:00
Sven Dahlstrand 7cd15c67b4 Pass xapian-config path to xapian-bindings' configure script. 2009-12-31 03:28:06 +00:00
Jannis Leidel 32060a875a Added xapian formula
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.
2009-12-02 12:53:00 +00:00