From cdf05ede33170ed5142cd1caeb8bacd7cb191046 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 25 Oct 2015 19:30:00 +0100 Subject: [PATCH] python-Pillow: cross compilation support --- srcpkgs/python-Pillow/template | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python-Pillow/template b/srcpkgs/python-Pillow/template index cf3ccb8afae..0e59346f3fb 100644 --- a/srcpkgs/python-Pillow/template +++ b/srcpkgs/python-Pillow/template @@ -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