diff --git a/srcpkgs/python-stem/template b/srcpkgs/python-stem/template index 7dea1b38b25..60b1e64e249 100644 --- a/srcpkgs/python-stem/template +++ b/srcpkgs/python-stem/template @@ -1,13 +1,12 @@ # Template file for 'python-stem' pkgname=python-stem version=1.4.1b -revision=3 +revision=4 noarch=yes wrksrc=stem-${version/b/} build_style=python-module -python_versions="2.7 3.4" pycompile_module="stem" -hostmakedepends="python-devel python3.4-devel" +hostmakedepends="python-devel python3-devel" depends="python-crypto" short_desc="Python2 controller library for Tor" maintainer="Michael Gehring " @@ -15,18 +14,23 @@ license="LGPL-3" homepage="https://stem.torproject.org/" distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.bz2" checksum=475ba00120d571bd959d7ef24e45c4c698bb568c9321043eb7a10c1f6e554325 -alternatives="stem:tor-prompt:/usr/bin/tor-prompt2.7" +alternatives="stem:tor-prompt:/usr/bin/tor-prompt2" -python3.4-stem_package() { +python3-stem_package() { noarch=yes - depends="python3.4-crypto" - pycompile_version="3.4" + depends="python3-crypto" pycompile_module="stem" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="stem:tor-prompt:/usr/bin/tor-prompt3.4" + replaces="python3.4-stem>=0" + short_desc="${short_desc/Python2/Python3}" + alternatives="stem:tor-prompt:/usr/bin/tor-prompt3" pkg_install() { - vmove usr/bin/tor-prompt3.4 - vmove usr/lib/python3.4 + vmove usr/bin/tor-prompt3 + vmove usr/lib/python3* } } - +python3.4-stem_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-stem>=${version}_${revision}" +} diff --git a/srcpkgs/python3-stem b/srcpkgs/python3-stem new file mode 120000 index 00000000000..abe2e35c54c --- /dev/null +++ b/srcpkgs/python3-stem @@ -0,0 +1 @@ +python-stem \ No newline at end of file