From 6f327b718757624930a864bc8998dc52db81d0c6 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 14 Oct 2016 10:55:45 +0200 Subject: [PATCH] python3.4-chroot: fix rdeps Add missing pycompile_module. Use alternatives. Clean up while I'm here. --- srcpkgs/python-chroot/template | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/srcpkgs/python-chroot/template b/srcpkgs/python-chroot/template index ef6a3bd2d29..c750336f37c 100644 --- a/srcpkgs/python-chroot/template +++ b/srcpkgs/python-chroot/template @@ -1,13 +1,11 @@ # Template file for 'python-chroot' pkgname=python-chroot version=0.9.15 -revision=1 -_distname=pychroot -wrksrc="${_distname}-${version}" +revision=2 +wrksrc="pychroot-${version}" build_style=python-module -pycompile_module="${_distname}" +pycompile_module="pychroot" python_versions="2.7 3.4" -pycompile_version="2.7" noarch=yes hostmakedepends="python-setuptools python3.4-setuptools python-snakeoil python3.4-snakeoil" depends="python-snakeoil" @@ -15,8 +13,9 @@ short_desc="Python2 Library and CLI tool that simplify chroot handling" maintainer="Toyam Cox " license="BSD" homepage="https://github.com/pkgcore/pychroot" -distfiles="${PYPI_SITE}/$(printf %.1s $_distname)/${_distname}/${_distname}-${version}.tar.gz" +distfiles="${PYPI_SITE}/p/pychroot/pychroot-${version}.tar.gz" checksum=d2cf687b9c890fe5adea73d1b248d3d09d3d629d946be1fc6be989eddc9f5152 +alternatives="chroot:pychroot:/usr/bin/pychroot2.7" post_install() { vlicense LICENSE @@ -24,9 +23,11 @@ post_install() { python3.4-chroot_package() { noarch=yes - depends="${depends/python-/python3.4-}" pycompile_version="3.4" + pycompile_module="pychroot" + depends="python3.4-snakeoil" short_desc="${short_desc/Python2/Python3.4}" + alternatives="chroot:pychroot:/usr/bin/pychroot3.4" pkg_install() { vmove usr/lib/python3.4 vmove usr/bin/pychroot3.4