From 1ca8f0e3ad93feb8d02ecc4f8c2bfd561ab84c62 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 09:15:55 +0200 Subject: [PATCH] python-cssutils: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-cssutils/template | 35 ++++++++++++++++++-------------- srcpkgs/python3-cssutils | 1 + 2 files changed, 21 insertions(+), 15 deletions(-) create mode 120000 srcpkgs/python3-cssutils diff --git a/srcpkgs/python-cssutils/template b/srcpkgs/python-cssutils/template index 746123230bb..28cd902b840 100644 --- a/srcpkgs/python-cssutils/template +++ b/srcpkgs/python-cssutils/template @@ -1,12 +1,11 @@ # Template file for 'python-cssutils' pkgname=python-cssutils version=1.0.1 -revision=2 +revision=3 noarch=yes wrksrc="cssutils-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools" pycompile_module="cssutils encutils" short_desc="A CSS Cascading Style Sheets library for Python2" @@ -17,22 +16,28 @@ distfiles="${PYPI_SITE}/c/cssutils/cssutils-${version}.tar.gz" checksum=d8a18b2848ea1011750231f1dd64fe9053dbec1be0b37563c582561e7a529063 alternatives=" - cssutils:csscapture:/usr/bin/csscapture2.7 - cssutils:csscombine:/usr/bin/csscombine2.7 - cssutils:cssparse:/usr/bin/cssparse2.7" + cssutils:csscapture:/usr/bin/csscapture2 + cssutils:csscombine:/usr/bin/csscombine2 + cssutils:cssparse:/usr/bin/cssparse2" -python3.4-cssutils_package() { +python3-cssutils_package() { alternatives=" - cssutils:csscapture:/usr/bin/csscapture3.4 - cssutils:csscombine:/usr/bin/csscombine3.4 - cssutils:cssparse:/usr/bin/cssparse3.4" + cssutils:csscapture:/usr/bin/csscapture3 + cssutils:csscombine:/usr/bin/csscombine3 + cssutils:cssparse:/usr/bin/cssparse3" noarch=yes - pycompile_version="3.4" pycompile_module="cssutils encutils" - depends="python3.4-setuptools" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-cssutils>=0" + depends="python3-setuptools" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/bin/*3.4 - vmove usr/lib/python3.4 + vmove usr/bin/*3 + vmove usr/lib/python3* } } +python3.4-cssutils_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-cssutils>=${version}_${revision}" +} diff --git a/srcpkgs/python3-cssutils b/srcpkgs/python3-cssutils new file mode 120000 index 00000000000..137f7b229af --- /dev/null +++ b/srcpkgs/python3-cssutils @@ -0,0 +1 @@ +python-cssutils \ No newline at end of file