mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-30 01:12:58 +02:00
python-Pillow: don't install example scripts in /usr/bin
This commit is contained in:
parent
178131bf99
commit
82c88c3778
1 changed files with 11 additions and 31 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'python-Pillow'
|
# Template file for 'python-Pillow'
|
||||||
pkgname=python-Pillow
|
pkgname=python-Pillow
|
||||||
version=3.3.3
|
version=3.3.3
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="Pillow-${version}"
|
wrksrc="Pillow-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
@ -15,46 +15,26 @@ license="PIL"
|
||||||
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
|
||||||
checksum=b2da91b9d03dcb054cdb07483286434f1841a2024e2b858302ff8dd3c2057b76
|
checksum=b2da91b9d03dcb054cdb07483286434f1841a2024e2b858302ff8dd3c2057b76
|
||||||
|
|
||||||
alternatives="
|
pre_build() {
|
||||||
pil:createfontdatachunk:/usr/bin/createfontdatachunk.py2
|
# don't install example scripts in /usr/bin
|
||||||
pil:enhancer:/usr/bin/enhancer.py2
|
sed -i '/scripts=/d' setup.py
|
||||||
pil:explode:/usr/bin/explode.py2
|
}
|
||||||
pil:gifmaker:/usr/bin/gifmaker.py2
|
|
||||||
pil:painter:/usr/bin/painter.py2
|
|
||||||
pil:pilconvert:/usr/bin/pilconvert.py2
|
|
||||||
pil:pildriver:/usr/bin/pildriver.py2
|
|
||||||
pil:pilfile:/usr/bin/pilfile.py2
|
|
||||||
pil:pilfont:/usr/bin/pilfont.py2
|
|
||||||
pil:pilprint:/usr/bin/pilprint.py2
|
|
||||||
pil:player:/usr/bin/player.py2
|
|
||||||
pil:thresholder:/usr/bin/thresholder.py2
|
|
||||||
pil:viewer:/usr/bin/viewer.py2"
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
for f in Scripts/*; do
|
||||||
|
vsconf ${f}
|
||||||
|
done
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-Pillow_package() {
|
python3-Pillow_package() {
|
||||||
alternatives="
|
|
||||||
pil:createfontdatachunk:/usr/bin/createfontdatachunk.py3
|
|
||||||
pil:enhancer:/usr/bin/enhancer.py3
|
|
||||||
pil:explode:/usr/bin/explode.py3
|
|
||||||
pil:gifmaker:/usr/bin/gifmaker.py3
|
|
||||||
pil:painter:/usr/bin/painter.py3
|
|
||||||
pil:pilconvert:/usr/bin/pilconvert.py3
|
|
||||||
pil:pildriver:/usr/bin/pildriver.py3
|
|
||||||
pil:pilfile:/usr/bin/pilfile.py3
|
|
||||||
pil:pilfont:/usr/bin/pilfont.py3
|
|
||||||
pil:pilprint:/usr/bin/pilprint.py3
|
|
||||||
pil:player:/usr/bin/player.py3
|
|
||||||
pil:thresholder:/usr/bin/thresholder.py3
|
|
||||||
pil:viewer:/usr/bin/viewer.py3"
|
|
||||||
pycompile_module="PIL"
|
pycompile_module="PIL"
|
||||||
replaces="python3.4-Pillow>=0"
|
replaces="python3.4-Pillow>=0"
|
||||||
short_desc="${short_desc/Python2/Python3}"
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/*3
|
|
||||||
vmove usr/lib/python3*
|
vmove usr/lib/python3*
|
||||||
|
for f in Scripts/*; do
|
||||||
|
vsconf ${f}
|
||||||
|
done
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue