Commit Graph
9 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
Samuel John 850640f274 portmidi: Version 217, Java & Python optional.
- with-python: Proper Python bindings that ship with portmidi
- Fixes CMAKE_OSX_SYSROOT location

Note, JAVA SDK has to be installed separately on Macs,
therefore: opt-in!

Closes #16577.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-18 18:14:34 -08:00
Adam Vandenberg 0dba76a6be portmidi: use newer header
Fixes #13176.
2012-08-26 14:18:30 -07:00
Jack Nagel cdf12f545c portmidi: remove "verbose install" caveats
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-05 22:40:06 -06:00
Brett Koonce 6e2d550cf4 Fix spelling mistakes
Closes #9449.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-06 09:43:54 -06:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08: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
Thomas Jachmann 84e17f1df6 Added formula for portmidi v200 2010-06-25 22:18:46 -07:00