From d2a365ad6ac6456c51305bb7b3736e703c813894 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 09:22:23 +0200 Subject: [PATCH] python-jsonpointer: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-jsonpointer/template | 27 ++++++++++++++++----------- srcpkgs/python3-jsonpointer | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-jsonpointer diff --git a/srcpkgs/python-jsonpointer/template b/srcpkgs/python-jsonpointer/template index 4e602d91b4..7637d3f563 100644 --- a/srcpkgs/python-jsonpointer/template +++ b/srcpkgs/python-jsonpointer/template @@ -1,12 +1,11 @@ # Template file for 'python-jsonpointer' pkgname=python-jsonpointer version=1.10 -revision=2 +revision=3 noarch=yes wrksrc="jsonpointer-${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="jsonpointer.py" short_desc="Resolve JSON Pointers according to RFC 6901 (Python2)" @@ -15,22 +14,28 @@ homepage="https://github.com/stefankoegl/python-json-pointer" license="3-clause-BSD" distfiles="${PYPI_SITE}/j/jsonpointer/jsonpointer-${version}.tar.gz" checksum=9fa5dcac35eefd53e25d6cd4c310d963c9f0b897641772cd6e5e7b89df7ee0b1 -alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2.7" +alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2" post_install() { vlicense COPYING LICENSE } -python3.4-jsonpointer_package() { +python3-jsonpointer_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="jsonpointer.py" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3.4" + replaces="python3.4-jsonpointer>=0" + short_desc="${short_desc/Python2/Python3}" + alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3" pkg_install() { - vmove usr/bin/jsonpointer3.4 - vmove usr/lib/python3.4 + vmove usr/bin/jsonpointer3 + vmove usr/lib/python3* vlicense COPYING LICENSE } } +python3.4-jsonpointer_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-jsonpointer>=${version}_${revision}" +} diff --git a/srcpkgs/python3-jsonpointer b/srcpkgs/python3-jsonpointer new file mode 120000 index 0000000000..af23236e7d --- /dev/null +++ b/srcpkgs/python3-jsonpointer @@ -0,0 +1 @@ +python-jsonpointer \ No newline at end of file