From 4d0d5047c169b1e1d88f31179f474d0d40fefdec Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 12:05:35 +0200 Subject: [PATCH] python-SPARQLWrapper: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-SPARQLWrapper/template | 21 +++++++++++++-------- srcpkgs/python3-SPARQLWrapper | 1 + 2 files changed, 14 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/python3-SPARQLWrapper diff --git a/srcpkgs/python-SPARQLWrapper/template b/srcpkgs/python-SPARQLWrapper/template index 426c428314b..49492136c4c 100644 --- a/srcpkgs/python-SPARQLWrapper/template +++ b/srcpkgs/python-SPARQLWrapper/template @@ -1,12 +1,11 @@ # Template file for 'python-SPARQLWrapper' pkgname=python-SPARQLWrapper version=1.7.6 -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-rdflib python-keepalive" pycompile_module="SPARQLWrapper" short_desc="SPARQL Endpoint interface to Python (Python2)" @@ -16,13 +15,19 @@ license="W3C" distfiles="${PYPI_SITE}/S/SPARQLWrapper/SPARQLWrapper-${version}.tar.gz" checksum=dccabec900eb9c97cb47834bd4b66ceaeb4d9ea11bae24a24fe734e9f48522f8 -python3.4-SPARQLWrapper_package() { +python3-SPARQLWrapper_package() { noarch=yes - depends="python3.4-rdflib python3.4-keepalive" - pycompile_version="3.4" + depends="python3-rdflib python3-keepalive" + replaces="python3.4-SPARQLWrapper>=0" pycompile_module="SPARQLWrapper" - short_desc="${short_desc/Python2/Python3.4}" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* } } +python3.4-SPARQLWrapper_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-SPARQLWrapper>=${version}_${revision}" +} diff --git a/srcpkgs/python3-SPARQLWrapper b/srcpkgs/python3-SPARQLWrapper new file mode 120000 index 00000000000..da43e69100c --- /dev/null +++ b/srcpkgs/python3-SPARQLWrapper @@ -0,0 +1 @@ +python-SPARQLWrapper \ No newline at end of file