From 02e9b483a805efed409323e27c1ac7e1f2ad5b68 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 09:57:21 +0200 Subject: [PATCH] python-termcolor: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-termcolor/template | 23 ++++++++++++++--------- srcpkgs/python3-termcolor | 1 + 2 files changed, 15 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3-termcolor diff --git a/srcpkgs/python-termcolor/template b/srcpkgs/python-termcolor/template index 13ed251b8b0..3ee32166f8b 100644 --- a/srcpkgs/python-termcolor/template +++ b/srcpkgs/python-termcolor/template @@ -1,12 +1,11 @@ # Template file for 'python-termcolor' pkgname=python-termcolor version=1.1.0 -revision=3 +revision=4 noarch=yes wrksrc="termcolor-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-devel python3.4-devel" +hostmakedepends="python-devel python3-devel" makedepends="${hostmakedepends}" depends="python" pycompile_module="termcolor.py" @@ -21,14 +20,20 @@ post_install() { vlicense COPYING.txt LICENSE } -python3.4-termcolor_package() { +python3-termcolor_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="termcolor.py" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-termcolor>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 - vlicense ${wrksrc}/COPYING.txt LICENSE + vmove usr/lib/python3* + vlicense COPYING.txt LICENSE } } +python3.4-termcolor_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-termcolor>=${version}_${revision}" +} diff --git a/srcpkgs/python3-termcolor b/srcpkgs/python3-termcolor new file mode 120000 index 00000000000..8ccc8e5931f --- /dev/null +++ b/srcpkgs/python3-termcolor @@ -0,0 +1 @@ +python-termcolor \ No newline at end of file