Commit Graph

10 Commits (8de806507e236641f3140b5a5e725138774128f4)

Author SHA1 Message Date
Jack Nagel bfa1e74735 Fix some ruby warnings 2014-05-03 13:52:11 -05:00
Adam Vandenberg aa8e27d1af fsh: use Formula[] 2014-02-27 08:21:17 -08:00
Mike McQuaid d882af7051 fsh: cleanup python usage. 2014-01-04 13:19:22 +00: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
Mike McQuaid 88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Jack Nagel 2b95b8170d fsh: formula cleanup
- Use inreplace instead of find/sed
 - Specify infodir
 - Various style nits

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-10 18:38:53 -05:00
Adam Vandenberg 4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08: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
watsonian 0e9c7251b3 Add fsh 1.2 formula (fast remote command execution).
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

Use "#!/usr/bin/env python" to find interpreter.
2010-02-17 09:17:22 -08:00