From 5ecdf52307a35541e1dcb27eb5dbd741b943979b Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 17 Oct 2016 00:23:27 +0200 Subject: [PATCH] python-dulwich: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-dulwich/template | 34 ++++++++++++++++++--------------- srcpkgs/python3-dulwich | 1 + 2 files changed, 20 insertions(+), 15 deletions(-) create mode 120000 srcpkgs/python3-dulwich diff --git a/srcpkgs/python-dulwich/template b/srcpkgs/python-dulwich/template index 605bf82a913..fa95d8b3a5e 100644 --- a/srcpkgs/python-dulwich/template +++ b/srcpkgs/python-dulwich/template @@ -1,12 +1,11 @@ # Template file for 'python-dulwich' pkgname=python-dulwich version=0.15.0 -revision=1 +revision=2 wrksrc="dulwich-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" -makedepends="python-devel python3.4-devel" +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python-devel python3-devel" pycompile_module="dulwich" short_desc="Python2 implementation of the Git file formats and protocols" maintainer="Juan RP " @@ -16,25 +15,30 @@ distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz" checksum=6f0a09d93f01caf1ba054b3f751d5cc1f0e6afc5c97fd23d67d7acf92f0d0b16 alternatives=" - dulwich:dul-receive-pack:/usr/bin/dul-receive-pack2.7 - dulwich:dul-upload-pack:/usr/bin/dul-upload-pack2.7 - dulwich:dulwich:/usr/bin/dulwich2.7" + dulwich:dul-receive-pack:/usr/bin/dul-receive-pack2 + dulwich:dul-upload-pack:/usr/bin/dul-upload-pack2 + dulwich:dulwich:/usr/bin/dulwich2" post_install() { # remove extra docs rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs } -python3.4-dulwich_package() { +python3-dulwich_package() { alternatives=" - dulwich:dul-receive-pack:/usr/bin/dul-receive-pack3.4 - dulwich:dul-upload-pack:/usr/bin/dul-upload-pack3.4 - dulwich:dulwich:/usr/bin/dulwich3.4" - pycompile_version="3.4" + dulwich:dul-receive-pack:/usr/bin/dul-receive-pack3 + dulwich:dul-upload-pack:/usr/bin/dul-upload-pack3 + dulwich:dulwich:/usr/bin/dulwich3" pycompile_module="dulwich" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-dulwich>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/bin/*3.4 - vmove usr/lib/python3.4 + vmove usr/bin/*3 + vmove usr/lib/python3* } } +python3.4-dulwich_package() { + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-dulwich>=${version}_${revision}" +} diff --git a/srcpkgs/python3-dulwich b/srcpkgs/python3-dulwich new file mode 120000 index 00000000000..f9db7256ef8 --- /dev/null +++ b/srcpkgs/python3-dulwich @@ -0,0 +1 @@ +python-dulwich \ No newline at end of file