* PIL updated to 1.1.7.
svn path=/nixpkgs/trunk/; revision=31142
This commit is contained in:
parent
de1a6e09d7
commit
633a194994
@ -1,41 +1,41 @@
|
|||||||
{ fetchurl, stdenv, python
|
{ fetchurl, stdenv, python, libjpeg, zlib, freetype }:
|
||||||
, libjpeg, zlib, freetype }:
|
|
||||||
|
|
||||||
let version = "1.1.6";
|
let version = "1.1.7"; in
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "python-imaging-${version}";
|
|
||||||
src = fetchurl {
|
|
||||||
url = "http://effbot.org/downloads/Imaging-${version}.tar.gz";
|
|
||||||
sha256 = "141zidl3s9v4vfi3nsbg42iq1lc2a932gprqr1kij5hrnn53bmvx";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = [ python libjpeg zlib freetype ];
|
stdenv.mkDerivation {
|
||||||
|
name = "python-imaging-${version}";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://effbot.org/downloads/Imaging-${version}.tar.gz";
|
||||||
|
sha256 = "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9";
|
||||||
|
};
|
||||||
|
|
||||||
doCheck = true;
|
buildInputs = [ python libjpeg zlib freetype ];
|
||||||
|
|
||||||
configurePhase = ''
|
doCheck = true;
|
||||||
sed -i "setup.py" \
|
|
||||||
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${freetype}")|g ;
|
configurePhase = ''
|
||||||
s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${libjpeg}")|g ;
|
sed -i "setup.py" \
|
||||||
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${zlib}")|g ;'
|
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${freetype}")|g ;
|
||||||
|
s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${libjpeg}")|g ;
|
||||||
|
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${zlib}")|g ;'
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = "python setup.py build_ext -i";
|
||||||
|
checkPhase = "python selftest.py";
|
||||||
|
installPhase = "python setup.py install --prefix=$out";
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://www.pythonware.com/products/pil/;
|
||||||
|
description = "The Python Imaging Library (PIL)";
|
||||||
|
|
||||||
|
longDescription = ''
|
||||||
|
The Python Imaging Library (PIL) adds image processing
|
||||||
|
capabilities to your Python interpreter. This library
|
||||||
|
supports many file formats, and provides powerful image
|
||||||
|
processing and graphics capabilities.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "python setup.py build_ext -i";
|
license = "http://www.pythonware.com/products/pil/license.htm";
|
||||||
checkPhase = "python selftest.py";
|
};
|
||||||
installPhase = "python setup.py install --prefix=$out";
|
}
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://www.pythonware.com/products/pil/;
|
|
||||||
description = "The Python Imaging Library (PIL)";
|
|
||||||
|
|
||||||
longDescription = ''
|
|
||||||
The Python Imaging Library (PIL) adds image processing
|
|
||||||
capabilities to your Python interpreter. This library
|
|
||||||
supports many file formats, and provides powerful image
|
|
||||||
processing and graphics capabilities.
|
|
||||||
'';
|
|
||||||
|
|
||||||
license = "http://www.pythonware.com/products/pil/license.htm";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user