From 51f64fc36c6227368f93ec2ff140f4fa5382f4e3 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 15:50:29 +0200 Subject: [PATCH] python-hiredis: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-hiredis/template | 20 ++++++++++++-------- srcpkgs/python3-hiredis | 1 + 2 files changed, 13 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3-hiredis diff --git a/srcpkgs/python-hiredis/template b/srcpkgs/python-hiredis/template index 16cba027db8..f9230da6482 100644 --- a/srcpkgs/python-hiredis/template +++ b/srcpkgs/python-hiredis/template @@ -1,12 +1,11 @@ # Template file for 'python-hiredis' pkgname=python-hiredis version=0.2.0 -revision=1 +revision=2 wrksrc="hiredis-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-devel python3.4-devel" -makedepends="python-devel python3.4-devel hiredis-devel" +hostmakedepends="python-devel python3-devel" +makedepends="python-devel python3-devel hiredis-devel" pycompile_module="hiredis" short_desc="Python2 wrapper for hiredis" maintainer="Eivind Uggedal " @@ -19,12 +18,17 @@ post_install() { vlicense COPYING } -python3.4-hiredis_package() { - pycompile_version="3.4" +python3-hiredis_package() { pycompile_module="hiredis" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-hiredis>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* vlicense COPYING } } +python3.4-hiredis_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-hiredis>=${version}_${revision}" +} diff --git a/srcpkgs/python3-hiredis b/srcpkgs/python3-hiredis new file mode 120000 index 00000000000..c6091c82645 --- /dev/null +++ b/srcpkgs/python3-hiredis @@ -0,0 +1 @@ +python-hiredis \ No newline at end of file