diff --git a/srcpkgs/python-Mako/template b/srcpkgs/python-Mako/template index 29855a9d142..3206bfb18dd 100644 --- a/srcpkgs/python-Mako/template +++ b/srcpkgs/python-Mako/template @@ -1,9 +1,10 @@ # Template file for 'python-Mako' pkgname=python-Mako -version=1.0.3 +version=1.0.4 revision=1 noarch=yes wrksrc="Mako-${version}" +build_style=python-module python_versions="2.7 3.4" hostmakedepends="python-setuptools python3.4-setuptools" depends="python-setuptools python-MarkupSafe" @@ -13,27 +14,11 @@ maintainer="Alessio Sergi " homepage="http://www.makotemplates.org/" license="MIT" distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz" -checksum=7644bc0ee35965d2e146dde31827b8982ed70a58281085fac42869a09764d38c +checksum=fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059 -pre_build() { - cp -a ${wrksrc} /tmp/mako-2.7 - cp -a ${wrksrc} /tmp/mako-3.4 - mv /tmp/mako-{2.7,3.4} ${wrksrc} - - cd mako-3.4 - sed -i 's,\(mako-render\) =,\13 =,' setup.py -} -do_build() { - for pyver in $python_versions; do - cd ${wrksrc}/mako-${pyver} - python${pyver} setup.py build - done -} -do_install() { - for pyver in $python_versions; do - cd ${wrksrc}/mako-${pyver} - python${pyver} setup.py install --root=${DESTDIR} - done +post_install() { + cp -f ${DESTDIR}/usr/bin/mako-render{,3.4} + replace_interpreter python ${DESTDIR}/usr/bin/mako-render vlicense LICENSE } @@ -44,7 +29,7 @@ python3.4-Mako_package() { pycompile_module="mako" short_desc="${short_desc/Python2/Python3.4}" pkg_install() { - vmove usr/bin/mako-render3 + vmove usr/bin/mako-render3.4 vmove usr/lib/python3.4 vlicense LICENSE }