From 89abc9604621fa1ee9c8a426da18565069248ce3 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 1 May 2016 01:21:26 +0200 Subject: [PATCH] python-Mako: use alternatives --- srcpkgs/python-Mako/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python-Mako/template b/srcpkgs/python-Mako/template index 3206bfb18dd..26ceb15f31b 100644 --- a/srcpkgs/python-Mako/template +++ b/srcpkgs/python-Mako/template @@ -1,7 +1,7 @@ # Template file for 'python-Mako' pkgname=python-Mako version=1.0.4 -revision=1 +revision=2 noarch=yes wrksrc="Mako-${version}" build_style=python-module @@ -15,10 +15,9 @@ 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" post_install() { - cp -f ${DESTDIR}/usr/bin/mako-render{,3.4} - replace_interpreter python ${DESTDIR}/usr/bin/mako-render vlicense LICENSE } @@ -28,6 +27,7 @@ python3.4-Mako_package() { pycompile_version="3.4" pycompile_module="mako" short_desc="${short_desc/Python2/Python3.4}" + alternatives="mako:mako-render:/usr/bin/mako-render3.4" pkg_install() { vmove usr/bin/mako-render3.4 vmove usr/lib/python3.4