Commit graph

18 commits

Author SHA1 Message Date
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
Anton Rieder
7a2dd07deb libplist: Update to 1.10.0, enable Cython bindings
Closes Homebrew/homebrew#18691.

Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-03-26 22:44:35 +01:00
Mike McQuaid
88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Jack Nagel
c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00
Jack Nagel
7c648d9732 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
eb2f68cc76 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 Homebrew/homebrew#10436.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-23 20:32:25 -06:00
Nibbles 2bits
014ef106f9 libplist: fix errors with Clang
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-02-20 20:36:22 -08:00
Adam Vandenberg
59207ed6d0 libplist 1.8 2012-02-20 20:23:07 -08:00
Charlie Sharpsteen
8d5acae140 libplist: Deparallize build
Parallel build fails on an 8 core Mac.
2011-09-12 13:23:34 -07:00
Jordan
0d74894c8e libplist 1.6
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-28 08:00:19 -07:00
Josh Wisenbaker
aecc801e60 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
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Alexis Hildebrandt
40054a3f83 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
8b275c916a Use https for all GitHub URLs
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-11-18 20:14:27 -08:00
Adam Vandenberg
19e5e6e64a Mark scons, cmake & pkg-config as build-time deps 2010-10-12 07:13:29 -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
1d1e4a3c01 libplist - remove keg-only by deleting duplicate command 2010-06-10 10:33:31 -07:00
Edward George
e79fef0023 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