pypyPackages.pil: fix build

This commit is contained in:
Domen Kožar 2014-09-06 16:35:54 +02:00
parent f99ad6fe94
commit ee27bd1d99

View file

@ -5785,9 +5785,10 @@ rec {
buildInputs = [ python pkgs.libjpeg pkgs.zlib pkgs.freetype ];
disabled = isPy3k;
doCheck = true;
postInstall = "ln -s $out/lib/${python.libPrefix}/site-packages $out/lib/${python.libPrefix}/site-packages/PIL";
preConfigure = ''
sed -i "setup.py" \
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
@ -5798,11 +5799,6 @@ rec {
checkPhase = "${python}/bin/${python.executable} selftest.py";
buildPhase = "${python}/bin/${python.executable} setup.py build_ext -i";
postInstall = ''
cd "$out"/lib/python*/site-packages
ln -s $PWD PIL
'';
meta = {
homepage = http://www.pythonware.com/products/pil/;
description = "The Python Imaging Library (PIL)";