Commit Graph
13 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
Jack Nagel 8f626e696f Fix build.include? usage
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-13 15:46:38 -05:00
Adam Vandenberg 55fb38b6c4 yasm: use options dsl 2012-08-09 21:39:20 -07:00
Adam Vandenberg 1f32fa43a7 Use autotools symbols 2012-07-10 08:56:02 -07:00
samueljohn f2e4be4e05 yasm: Add LIBS,INCLUDES
To support Xcode without CLT installations we need to set LIBS and
INCLUDES, because the default flags are not fully respected by their
build scripts.

Closes #12448.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-04 19:42:20 -05:00
Birger J. Nordølum 557387b7a3 yasm: add head and optional python bindings
Added option for --HEAD and --enable-python.

Closes #11314.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-26 21:39:11 -05:00
Trevor Wennblom ac2431d367 yasm 1.2.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-11-21 20:24:18 -08:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
David Höppner 0afefc8055 yasm: update version to 1.1.0 2010-08-23 15:26:26 +02:00
David Höppner c595cd0e16 yasm: update version to 1.0.1 2010-05-22 10:59:04 +02:00
David Höppner 3d77374018 yasm: version update to 1.0.0 2010-04-09 17:19:15 +02:00
Max Howell a82e823935 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00
David Höppner 9d100b16b0 Yasm formula
Yasm is a complete rewrite of the NASM assembler under the "new" BSD License.
Yasm currently supports the x86 and AMD64 instruction sets, accepts NASM and
GAS assembler syntaxes, outputs binary, ELF32, ELF64, 32 and 64-bit Mach-O,
RDOFF2, COFF, Win32, and Win64 object formats, and generates source debugging
information in STABS, DWARF 2, and CodeView 8 formats.
2009-09-11 17:42:53 +01:00