Commit graph

16 commits

Author SHA1 Message Date
Jack Nagel
d89e9a0c8b Make the use of paths to packages proxied through X11 consistent 2013-07-13 22:56:45 -05:00
Adam Vandenberg
6a8e500a0b pil: fix download
Closes Homebrew/homebrew#20818.
2013-06-26 10:39:24 -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
Jack Nagel
ebd1461de1 pil: use new optional deps 2013-01-26 20:49:47 -06:00
Samuel John
1f02e20516 pil: Uninstall correctly.
Installs now into the cellar, so that uninstall works.

Closes Homebrew/homebrew#16558.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-12-14 09:24:06 -08:00
Germán M. Bravo
860f3ef788 pil: fix crash in 64-bit mode
Closes Homebrew/homebrew#15563.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-27 19:03:38 -07:00
Mike McQuaid
af0c831714 pil: don't depend on X11.
Closes Homebrew/homebrew#15564.
2012-10-21 17:58:30 +01:00
Mike McQuaid
88779ade49 Batch convert MD5 formula to SHA1.
Closes Homebrew/homebrew#14653.
2012-09-03 11:36:42 -07:00
Jack Nagel
01e9fad4a1 Adjust XQuartz/X11 module naming scheme
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-06 00:39:06 -05:00
Jack Nagel
b81d01e23d Update formulae for new XQuartz module 2012-08-01 00:31:39 -05:00
Jack Nagel
d6e8244287 Update formulae for XQuartz compatibility 2012-07-01 12:41:00 -05:00
Jack Nagel
332845fefc pil: fix typo
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-16 22:39:09 -06:00
Adam Vandenberg
a0e6f0554f PIL: remove 64-bit arch on 32-bit hardware 2011-09-01 17:10:31 -07:00
Adam Vandenberg
9af0c7663d pil: remove PPC support 2011-04-05 07:20:35 -07:00
Adam Vandenberg
4147b05c57 Use ruby style for inheritance. 2011-03-12 11:55:09 -08:00
Tom Dunham
9ce5102589 PIL 1.1.7
The Python Imaging Library (PIL) allows Python to manipulate images.

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

* Added as a formula because installing using pip does not pick up
  many optional but useful dependencies.
2010-07-03 21:55:34 -07:00