python-imagesize: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
c6662a1b82
commit
852b69204c
|
@ -1,12 +1,11 @@
|
||||||
# Template file for 'python-imagesize'
|
# Template file for 'python-imagesize'
|
||||||
pkgname=python-imagesize
|
pkgname=python-imagesize
|
||||||
version=0.7.1
|
version=0.7.1
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="imagesize-${version}"
|
wrksrc="imagesize-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
python_versions="2.7 3.4"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="imagesize"
|
pycompile_module="imagesize"
|
||||||
short_desc="Python2 library to get image size from png/jpeg/jpeg2000/gif file"
|
short_desc="Python2 library to get image size from png/jpeg/jpeg2000/gif file"
|
||||||
|
@ -16,13 +15,19 @@ license="MIT"
|
||||||
distfiles="${PYPI_SITE}/i/imagesize/imagesize-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/i/imagesize/imagesize-${version}.tar.gz"
|
||||||
checksum=0ab2c62b87987e3252f89d30b7cedbec12a01af9274af9ffa48108f2c13c6062
|
checksum=0ab2c62b87987e3252f89d30b7cedbec12a01af9274af9ffa48108f2c13c6062
|
||||||
|
|
||||||
python3.4-imagesize_package() {
|
python3-imagesize_package() {
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="python3.4"
|
depends="python3"
|
||||||
pycompile_version="3.4"
|
|
||||||
pycompile_module="imagesize"
|
pycompile_module="imagesize"
|
||||||
short_desc="${short_desc/Python2/Python3.4}"
|
replaces="python3.4-imagesize>=0"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/lib/python3.4
|
vmove usr/lib/python3*
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
python3.4-imagesize_package() {
|
||||||
|
noarch=yes
|
||||||
|
build_style=meta
|
||||||
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
||||||
|
depends="python3-imagesize>=${version}_${revision}"
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
python-imagesize
|
Loading…
Reference in New Issue