From 69d57d9022aec97f7ef2ea8b3f332018c8625c7b Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 18:55:36 +0200 Subject: [PATCH] python-cups: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-cups/template | 17 +++++++++++------ srcpkgs/python3-cups | 1 + 2 files changed, 12 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/python3-cups diff --git a/srcpkgs/python-cups/template b/srcpkgs/python-cups/template index 9a17ec1ae5f..24be7dc417e 100644 --- a/srcpkgs/python-cups/template +++ b/srcpkgs/python-cups/template @@ -1,11 +1,10 @@ # Template file for 'python-cups' pkgname=python-cups version=1.9.73 -revision=1 +revision=2 wrksrc="pycups-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-devel python3.4-devel" +hostmakedepends="python-devel python3-devel" makedepends="${hostmakedepends} cups-devel" short_desc="Python2 CUPS bindings" homepage="https://pypi.python.org/pypi/pycups" @@ -14,9 +13,15 @@ maintainer="Juan RP " distfiles="${PYPI_SITE}/p/pycups/pycups-${version}.tar.bz2" checksum=c381be011889ca6f728598578c89c8ac9f7ab1e95b614474df9f2fa831ae5335 -python3.4-cups_package() { - short_desc="${short_desc/Python2/Python3.4}" +python3-cups_package() { + replaces="python3.4-cups>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-cups_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-cups>=${version}_${revision}" +} diff --git a/srcpkgs/python3-cups b/srcpkgs/python3-cups new file mode 120000 index 00000000000..67133f17ef8 --- /dev/null +++ b/srcpkgs/python3-cups @@ -0,0 +1 @@ +python-cups \ No newline at end of file