aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/grc.rb
AgeCommit message (Collapse)Author
2013-06-03Python 2.x and 3.x supportSamuel John
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-02-24grc: fix typo in testYann Hodique
Closes #18043. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-09-03Batch convert MD5 formula to SHA1.Mike McQuaid
Closes #14653.
2012-04-24grc: find rc file in etc, not prefix/etcMiles Pomeroy
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-06-03grc 1.4Stephen Tudor
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-12Use ruby style for inheritance.Adam Vandenberg
2010-10-01grc - update rc scriptAdam Vandenberg
* Don't use DATA to write out the rc script * Put it in prefix/etc instead of etc
2010-08-07Update formulae for version 0.7Adam Vandenberg
* 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-02-21Use more inreplace features.Adam Vandenberg
Update formulas to make more idiomatic use of "inreplace", including its new ability to take a list of files to act on.
2009-10-15s/require 'brewkit'/require 'formula'/gMax Howell
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-03Modernise the GRC formula somewhatMax Howell
This was one of the first ones I wrote, so it lacks some of our more recent touches.
2009-08-10Apply new ENV capabilities to all existing FormulaeMax Howell
2009-08-10RefactorMax Howell
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-06Make git install grc --profile work againMax Howell
2009-07-10GRC version 1.3Max Howell
2009-06-04Created /Library moved brew tool to /binMax Howell
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.