From 9e336306ba94d1689c971ca095c8f7735ad5ec7a Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 16:09:50 +0200 Subject: [PATCH] python-webassets: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-webassets/template | 27 ++++++++++++++++----------- srcpkgs/python3-webassets | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-webassets diff --git a/srcpkgs/python-webassets/template b/srcpkgs/python-webassets/template index c81e2b6865b..c4de3895c19 100644 --- a/srcpkgs/python-webassets/template +++ b/srcpkgs/python-webassets/template @@ -1,13 +1,12 @@ # Template file for 'python-webassets' pkgname=python-webassets version=0.12.0 -revision=1 +revision=2 noarch=yes wrksrc="${pkgname#*-}-${version}" build_style=python-module -python_versions="2.7 3.4" pycompile_module="webassets" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools" short_desc="Media asset management for Python2" maintainer="Eivind Uggedal " @@ -15,22 +14,28 @@ license="2-clause-BSD" homepage="https://github.com/miracle2k/webassets/" distfiles="${PYPI_SITE}/w/webassets/webassets-${version}.tar.gz" checksum=99d10b11f342cf2692ad3451f121c5302acee8144df32005c6f1305d541fa192 -alternatives="webassets:webassets:/usr/bin/webassets2.7" +alternatives="webassets:webassets:/usr/bin/webassets2" post_install() { vlicense LICENSE } -python3.4-webassets_package() { +python3-webassets_package() { noarch=yes - depends="python3.4-setuptools" - pycompile_version="3.4" + depends="python3-setuptools" + replaces="python3.4-webassets>=0" pycompile_module="webassets" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="webassets:webassets:/usr/bin/webassets3.4" + short_desc="${short_desc/Python2/Python3}" + alternatives="webassets:webassets:/usr/bin/webassets3" pkg_install() { - vmove usr/bin/*3.4 - vmove usr/lib/python3.4 + vmove usr/bin/*3 + vmove usr/lib/python3* 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}" +} diff --git a/srcpkgs/python3-webassets b/srcpkgs/python3-webassets new file mode 120000 index 00000000000..8daace0c9a2 --- /dev/null +++ b/srcpkgs/python3-webassets @@ -0,0 +1 @@ +python-webassets \ No newline at end of file