From eb4930c733371519aaa8d16a1838ddd68c13db36 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 12:04:46 +0200 Subject: [PATCH] python-keepalive: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-keepalive/template | 23 ++++++++++++++--------- srcpkgs/python3-keepalive | 1 + 2 files changed, 15 insertions(+), 9 deletions(-) create mode 120000 srcpkgs/python3-keepalive diff --git a/srcpkgs/python-keepalive/template b/srcpkgs/python-keepalive/template index 75a88a7b090..8827e2239e0 100644 --- a/srcpkgs/python-keepalive/template +++ b/srcpkgs/python-keepalive/template @@ -1,28 +1,33 @@ # Template file for 'python-keepalive' pkgname=python-keepalive version=0.5 -revision=1 +revision=2 noarch=yes wrksrc="${pkgname#*-}-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="keepalive" short_desc="Python2 urllib keepalive support" maintainer="Juan RP " homepage="https://github.com/wikier/keepalive" license="LGPL-2.1" -distfiles="${PYPI_SITE}/k/keepalive/keepalive-0.5.tar.gz" +distfiles="${PYPI_SITE}/k/keepalive/keepalive-${version}.tar.gz" checksum=3c6b96f9062a5a76022f0c9d41e9ef5552d80b1cadd4fccc1bf8f183ba1d1ec1 -python3.4-keepalive_package() { +python3-keepalive_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="keepalive" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-keepalive>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-keepalive_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-keepalive>=${version}_${revision}" +} diff --git a/srcpkgs/python3-keepalive b/srcpkgs/python3-keepalive new file mode 120000 index 00000000000..1fd19ead4ac --- /dev/null +++ b/srcpkgs/python3-keepalive @@ -0,0 +1 @@ +python-keepalive \ No newline at end of file