python-Pillow: update to 2.8.1

This commit is contained in:
Alessio Sergi 2015-04-04 23:28:01 +02:00
parent 601bda1dba
commit 51c0970a89

View File

@ -1,6 +1,6 @@
# Template file for 'python-Pillow'
pkgname=python-Pillow
version=2.7.0
version=2.8.1
revision=1
wrksrc="Pillow-${version}"
build_style=python-module
@ -18,27 +18,24 @@ maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/python-pillow/Pillow"
license="PIL"
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
checksum=26e9320e73f5821826b6b2408a3bff0a8c29e45159530069a117efd39ef619f8
checksum=8760c118a0215eba163f7782110e7efcdbb15f8a7321f3f61c5ac0dbbb12c996
nocross=yes
pre_build() {
sed -i '/^#!\//,1d' PIL/OleFileIO.py
}
pre_install() {
post_install() {
rm -f ${DESTDIR}/usr/bin/*.py
# rename bins and remove .py suffix
for f in convert driver file font print; do
mv build-2.7/scripts-2.7/pil${f}{.py,}
mv build-3.4/scripts-3.4/pil${f}{.py,3}
vbin build-2.7/scripts-2.7/pil${f}{.py,}
vbin build-3.4/scripts-3.4/pil${f}{.py,3}
done
}
post_install() {
# clean up bins
rm -f ${DESTDIR}/usr/bin/*.py
vlicense docs/LICENSE
vlicense LICENSE
}
python-Pillow-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmkdir usr/include/python2.7/Imaging
@ -46,7 +43,7 @@ python-Pillow-devel_package() {
}
}
python-Pillow-qt_package() {
depends="${sourcepkg}>=${version}_${revision} python-PyQt4"
depends="${sourcepkg}-${version}_${revision} python-PyQt4"
short_desc+=" - Qt interface"
pycompile_module="PIL"
pkg_install() {
@ -54,7 +51,7 @@ python-Pillow-qt_package() {
}
}
python-Pillow-tk_package() {
depends="${sourcepkg}>=${version}_${revision}"
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - Tk interface"
pycompile_module="PIL"
pkg_install() {
@ -70,11 +67,11 @@ python3.4-Pillow_package() {
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3.4
vlicense ${wrksrc}/docs/LICENSE
vlicense LICENSE
}
}
python3.4-Pillow-devel_package() {
depends="python3.4-Pillow>=${version}_${revision}"
depends="python3.4-Pillow-${version}_${revision}"
short_desc="${_short_desc} - development files"
pkg_install() {
vmkdir usr/include/python3.4m/Imaging
@ -82,7 +79,7 @@ python3.4-Pillow-devel_package() {
}
}
python3.4-Pillow-qt_package() {
depends="python3.4-Pillow>=${version}_${revision} python3.4-PyQt4"
depends="python3.4-Pillow-${version}_${revision} python3.4-PyQt4"
short_desc="${_short_desc} - Qt interface"
pycompile_version="3.4"
pycompile_module="PIL"
@ -91,7 +88,7 @@ python3.4-Pillow-qt_package() {
}
}
python3.4-Pillow-tk_package() {
depends="python3.4-Pillow>=${version}_${revision}"
depends="python3.4-Pillow-${version}_${revision}"
short_desc="${_short_desc} - Tk interface"
pycompile_version="3.4"
pycompile_module="PIL"