From 4512d435f024780f837654c9572398e2395c0b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Thu, 14 Feb 2019 18:23:44 +0100 Subject: [PATCH] python-cheetah: add python-cheetah alternative --- srcpkgs/python-cheetah/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python-cheetah/template b/srcpkgs/python-cheetah/template index f30648749d7..c74d170f536 100644 --- a/srcpkgs/python-cheetah/template +++ b/srcpkgs/python-cheetah/template @@ -1,20 +1,26 @@ # Template file for 'python-cheetah' pkgname=python-cheetah version=2.4.4 -revision=4 +revision=5 wrksrc="Cheetah-${version}" build_style=python2-module +pycompile_module="Cheetah" hostmakedepends="python-setuptools" makedepends="python-devel" depends="python-Markdown" -pycompile_module="Cheetah" short_desc="Python-powered template engine and code generator" maintainer="Juan RP " -homepage="http://www.cheetahtemplate.org/" license="MIT" +homepage="http://www.cheetahtemplate.org/" distfiles="${PYPI_SITE}/C/Cheetah/Cheetah-${version}.tar.gz" checksum=be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550 +alternatives="python-cheetah:cheetah:/usr/bin/cheetah2 + python-cheetah:cheetah-analyze:/usr/bin/cheetah-analyze2 + python-cheetah:cheetah-compile:/usr/bin/cheetah-compile2" post_install() { + mv ${DESTDIR}/usr/bin/cheetah{,2} + mv ${DESTDIR}/usr/bin/cheetah-analyze{,2} + mv ${DESTDIR}/usr/bin/cheetah-compile{,2} vlicense LICENSE }