Commit Graph
15 Commits
Author SHA1 Message Date
Brett Koonce 690a000c1f ninja v1.3.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-14 11:39:36 -07:00
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
Brett Koonce 9ee7473b1f ninja v1.3.3
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-21 20:16:26 -07:00
Markus Herb 8e7bd0c9c7 ninja 1.3.2
Closes #19906.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-18 18:03:42 -05:00
Adam Vandenberg c150b7ed85 use bash/zsh path helpers 2013-05-03 11:03:42 -07:00
Andrew Janke 9fddebc091 Change github /tarball/ URLs to /archive/ for formulae L-Z
This takes care of a `brew audit` complaint.

Closes #18828.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-29 14:59:28 -07:00
Brett Koonce 1923e086fc ninja v1.1.0
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-01-01 10:31:44 -08:00
Eashwar Ranganathan 10788e549c Ninja 1.0.0
Closes #15130.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-26 08:17:14 -07:00
Michael Maltese ff13af6fb3 Ninja 120715
Closes #14087.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-09 12:04:36 -07:00
Adam Vandenberg 110ad71beb Remove ninja.
Moving this head-only formula to homebrew-alt.
2012-03-16 22:09:22 -07:00
Matthieu Dubet 9c5d4a3a9b Fix Ninja build
Ninja bootstrap script is now in Python instead of shell

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-01-28 20:05:05 -08:00
Alex Brem 1bface7b5b Ninja: Use original Git repository
Closes #7559.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-11 08:21:00 -07:00
Adam Vandenberg 4e7c332a48 Use https for github repos. 2011-05-26 22:02:55 -07:00
Adam Vandenberg 0476235ce0 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Giulio Eulisse 33f6c68d9b Add formula for ninja build system. 2011-02-12 11:51:36 +01:00