python-Pillow: cross compilation support

This commit is contained in:
Alessio Sergi 2015-10-25 19:30:00 +01:00
parent 4986720f78
commit cdf05ede33

View file

@ -1,15 +1,14 @@
# Template file for 'python-Pillow'
pkgname=python-Pillow
version=3.0.0
revision=1
revision=2
wrksrc="Pillow-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="
python-devel python3.4-devel python-tkinter python3.4-tkinter
libjpeg-turbo-devel libopenjpeg2-devel zlib-devel tiff-devel
freetype-devel lcms2-devel libwebp-devel tk-devel"
hostmakedepends="python-setuptools python3.4-setuptools python-tkinter python3.4-tkinter"
makedepends="python-devel python3.4-devel python-tkinter python3.4-tkinter
libjpeg-turbo-devel libopenjpeg2-devel zlib-devel tiff-devel freetype-devel
lcms2-devel libwebp-devel tk-devel"
pycompile_module="PIL"
short_desc="Python Imaging Library (PIL) fork (Python2)"
_short_desc="${short_desc/Python2/Python3.4}"
@ -18,7 +17,12 @@ homepage="https://github.com/python-pillow/Pillow"
license="PIL"
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
checksum=ad50bef540fe5518a4653c3820452a881b6a042cb0f8bb7657c491c6bd3654bb
nocross=yes
subpackages="python-Pillow-devel python3.4-Pillow-devel python-Pillow-tk
python3.4-Pillow-tk python3.4-Pillow"
if [ -z "$CROSS_BUILD" ]; then
subpackages+=" python-Pillow-qt python3.4-Pillow-qt"
fi
pre_build() {
sed -i '/^#!\//,1d' PIL/OleFileIO.py