Commit Graph
18 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
Anton Rieder 98d37c2f71 libplist: Update to 1.10.0, enable Cython bindings
Closes #18691.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-03-26 22:44:35 +01:00
Mike McQuaid 3c5ca25cad Batch convert MD5 formula to SHA1.
Closes #14653.
2012-09-03 11:36:42 -07:00
Jack Nagel 071c3eb3f4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00
Jack Nagel 417d788070 Shore up a number of shell quoting issues
When interpolating in strings passed to Formula#system, it should be
done in such a way that if any interpolated variables contain spaces,
they are either (a) passed as part of a list or (b) protected by quotes
if they are part of a long string (which is subject to shell expansion).
Otherwise, they will be split on the space when expanded by the shell
and passed as multiple arguments to whatever process is being executed.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-15 14:03:11 -05:00
Nibbles 2bits 87d31f09f7 libplist: fix inreplace python
libplist-1.8 has a broken inreplace that is supposed to disable swig
python bindings.  Fix that and inline the patch to prevent future
inreplace failures.  Also disables Cython python bindings until there is
a homebrew formula for Cython.  Tested on Lion with Homebrew
python-2.7.2.

Closes #10436.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-23 20:32:25 -06:00
Nibbles 2bits 52e812b245 libplist: fix errors with Clang
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-20 20:36:22 -08:00
Adam Vandenberg c975f30e9a libplist 1.8 2012-02-20 20:23:07 -08:00
Charlie Sharpsteen 11b5b74eff libplist: Deparallize build
Parallel build fails on an 8 core Mac.
2011-09-12 13:23:34 -07:00
Jordan 9e65ed07e5 libplist 1.6
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-28 08:00:19 -07:00
Josh Wisenbaker 2fabf8a3e8 libplist 1.4
Bump libplist to 1.4 to fix some major bugs.
Also update the project to its new homepage.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-05-10 20:15:54 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Alexis Hildebrandt f8d8817fe2 Update Formula: libplist
Correct install name of dynamic libraries
using CMAKE_INSTALL_NAME_DIR cmake variable

Signed-off-by: David Höppner <0xffea@gmail.com>
2011-02-16 13:01:24 +01:00
Tianyi Cui 7871a99fe3 Use https for all GitHub URLs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-18 20:14:27 -08:00
Adam Vandenberg d56367c1ac Mark scons, cmake & pkg-config as build-time deps 2010-10-12 07:13:29 -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 47b6f870b8 libplist - remove keg-only by deleting duplicate command 2010-06-10 10:33:31 -07:00
Edward George 1e6e6922bc Added libplist 1.3.
A library to handle Apple Property List formats.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-10 10:01:01 -07:00