Commit graph

10 commits

Author SHA1 Message Date
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
Adam Vandenberg
dcae56076e rdiff-backup: use install_symlink 2012-02-12 20:09:02 -08:00
Jack Nagel
8174e59412 rdiff-backup: fix typo
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-16 22:36:14 -06:00
Adam Vandenberg
fed1114015 rdiff-backup: fix compiles on 32-bit CPUs 2012-01-15 10:58:07 -08:00
Adam Vandenberg
12106f5de7 rdiff-backup: use new arch methods 2011-03-19 09:50:26 -07:00
Adam Vandenberg
424dcf5c69 rdiff-backup: don't build for PPC
When compiling against the system Python, explicitly don't build
any PPC architectures.
2011-03-18 22:55:32 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
George Macon
b7b35bed5c Silence warning during brew search.
The warning concerns improper use of parentheses
in the rdiff-backup formula.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-07-09 19:32:08 -07:00
Steven Sartorius
20e4a405ee rdiff-backup
rdiff-backup backs up one directory to another, possibly over a network. It's
a python script which I installed using the '--local' switch. This will create
a 'site-packages' folder under ~/.local/. Don't know if this is the approved
homebrew approach but it works for me.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

* Install privately into libexec and link scripts into bin.
  This way we don't touch any site-packages folders.
2010-07-08 09:03:51 -07:00