python-webassets: rebuild for Python 3.5

Switch to python3-* pkgs.
Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
Alessio Sergi 2016-10-17 16:09:50 +02:00
parent f740ba7053
commit 9e336306ba
2 changed files with 17 additions and 11 deletions

View file

@ -1,13 +1,12 @@
# Template file for 'python-webassets' # Template file for 'python-webassets'
pkgname=python-webassets pkgname=python-webassets
version=0.12.0 version=0.12.0
revision=1 revision=2
noarch=yes noarch=yes
wrksrc="${pkgname#*-}-${version}" wrksrc="${pkgname#*-}-${version}"
build_style=python-module build_style=python-module
python_versions="2.7 3.4"
pycompile_module="webassets" pycompile_module="webassets"
hostmakedepends="python-setuptools python3.4-setuptools" hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools" depends="python-setuptools"
short_desc="Media asset management for Python2" short_desc="Media asset management for Python2"
maintainer="Eivind Uggedal <eivind@uggedal.com>" maintainer="Eivind Uggedal <eivind@uggedal.com>"
@ -15,22 +14,28 @@ license="2-clause-BSD"
homepage="https://github.com/miracle2k/webassets/" homepage="https://github.com/miracle2k/webassets/"
distfiles="${PYPI_SITE}/w/webassets/webassets-${version}.tar.gz" distfiles="${PYPI_SITE}/w/webassets/webassets-${version}.tar.gz"
checksum=99d10b11f342cf2692ad3451f121c5302acee8144df32005c6f1305d541fa192 checksum=99d10b11f342cf2692ad3451f121c5302acee8144df32005c6f1305d541fa192
alternatives="webassets:webassets:/usr/bin/webassets2.7" alternatives="webassets:webassets:/usr/bin/webassets2"
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }
python3.4-webassets_package() { python3-webassets_package() {
noarch=yes noarch=yes
depends="python3.4-setuptools" depends="python3-setuptools"
pycompile_version="3.4" replaces="python3.4-webassets>=0"
pycompile_module="webassets" pycompile_module="webassets"
short_desc="${short_desc/Python2/Python3.4}" short_desc="${short_desc/Python2/Python3}"
alternatives="webassets:webassets:/usr/bin/webassets3.4" alternatives="webassets:webassets:/usr/bin/webassets3"
pkg_install() { pkg_install() {
vmove usr/bin/*3.4 vmove usr/bin/*3
vmove usr/lib/python3.4 vmove usr/lib/python3*
vlicense LICENSE vlicense LICENSE
} }
} }
python3.4-webassets_package() {
noarch=yes
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-webassets>=${version}_${revision}"
}

1
srcpkgs/python3-webassets Symbolic link
View file

@ -0,0 +1 @@
python-webassets