Commit graph

20 commits

Author SHA1 Message Date
Mike McQuaid
c952607642 grc: cleanup python usage. 2014-01-04 13:19:46 +00:00
Adam Vandenberg
140223797b grc: nuke old comment 2013-11-12 21:55:56 -08:00
Adam Vandenberg
b9aa6dc441 cc65/grc conflict 2013-11-12 21:42:50 -08:00
Derek Myers
35a61a43ea grc 1.5
Closes Homebrew/homebrew#21833.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-08-11 21:55:39 -07:00
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
Yann Hodique
2776328083 grc: fix typo in test
Closes Homebrew/homebrew#18043.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-24 12:52:07 -08:00
Mike McQuaid
88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Miles Pomeroy
6505d49432 grc: find rc file in etc, not prefix/etc
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-04-24 07:34:50 -07:00
Stephen Tudor
776a92c9ba grc 1.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-03 21:57:02 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Adam Vandenberg
11b3a33ab6 grc - update rc script
* Don't use DATA to write out the rc script
 * Put it in prefix/etc instead of etc
2010-10-01 20:48:31 -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
193a78de04 Use more inreplace features.
Update formulas to make more idiomatic use of "inreplace", including
its new ability to take a list of files to act on.
2010-02-21 23:37:49 -08:00
Max Howell
61b2307139 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
Max Howell
8c0e82e06f Modernise the GRC formula somewhat
This was one of the first ones I wrote, so it lacks some of our more recent touches.
2009-10-03 15:23:45 +01:00
Max Howell
aa14a25a43 Apply new ENV capabilities to all existing Formulae 2009-08-10 18:11:22 +01:00
Max Howell
c81d5b6ca6 Refactor
Large refactor to Formula, mostly improving reliability and error handling but
also layout and readability.

General improvements so testing can be more complete.

Patches are automatically downloaded and applied for Formula that return a
list of urls from Formula::patches.

Split out the brew command logic to facilitate testing.

Facility from Adam Vandenberg to allow selective cleaning of files, added
because Python doesn't work when stripped.
2009-08-10 18:11:17 +01:00
Max Howell
63fcc79593 Make git install grc --profile work again 2009-08-06 20:25:59 +01:00
Max Howell
e366c352bf GRC version 1.3 2009-07-10 03:10:35 +01:00
Max Howell
97b1ada08d Created /Library moved brew tool to /bin
Moved Forumla and Cellar/homebrew into Library.

This way the homebrew core files are more sensibly placed, Cellar is
more internally consistent and only generated. And Homebrew is ready for
use straight out of the tarball.
2009-06-04 19:36:58 +01:00