From e19c96fc07bfbeacb2d8f214e45fa6a83d107fbd Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 16 Oct 2016 18:45:12 +0200 Subject: [PATCH] python-Mako: rebuild for Python 3.5 Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg. --- srcpkgs/python-Mako/template | 27 ++++++++++++++++----------- srcpkgs/python3-Mako | 1 + 2 files changed, 17 insertions(+), 11 deletions(-) create mode 120000 srcpkgs/python3-Mako diff --git a/srcpkgs/python-Mako/template b/srcpkgs/python-Mako/template index 26ceb15f31..be4aab8671 100644 --- a/srcpkgs/python-Mako/template +++ b/srcpkgs/python-Mako/template @@ -1,12 +1,11 @@ # Template file for 'python-Mako' pkgname=python-Mako version=1.0.4 -revision=2 +revision=3 noarch=yes wrksrc="Mako-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools python-MarkupSafe" pycompile_module="mako" short_desc="Hyperfast and lightweight templating for Python2" @@ -15,22 +14,28 @@ homepage="http://www.makotemplates.org/" license="MIT" distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz" checksum=fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059 -alternatives="mako:mako-render:/usr/bin/mako-render2.7" +alternatives="mako:mako-render:/usr/bin/mako-render2" post_install() { vlicense LICENSE } -python3.4-Mako_package() { +python3-Mako_package() { noarch=yes - depends="python3.4-setuptools python3.4-MarkupSafe" - pycompile_version="3.4" pycompile_module="mako" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="mako:mako-render:/usr/bin/mako-render3.4" + replaces="python3.4-Mako>=0" + depends="python3-setuptools python3-MarkupSafe" + short_desc="${short_desc/Python2/Python3}" + alternatives="mako:mako-render:/usr/bin/mako-render3" pkg_install() { - vmove usr/bin/mako-render3.4 - vmove usr/lib/python3.4 + vmove usr/bin/mako-render3 + vmove usr/lib/python3* vlicense LICENSE } } +python3.4-Mako_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-Mako>=${version}_${revision}" +} diff --git a/srcpkgs/python3-Mako b/srcpkgs/python3-Mako new file mode 120000 index 0000000000..3b00bf4b5b --- /dev/null +++ b/srcpkgs/python3-Mako @@ -0,0 +1 @@ +python-Mako \ No newline at end of file