void-packages/srcpkgs/python-Mako/template

52 lines
1.3 KiB
Bash
Raw Normal View History

2015-03-07 10:17:17 +01:00
# Template file for 'python-Mako'
pkgname=python-Mako
2015-10-28 20:38:37 +01:00
version=1.0.3
2015-03-07 10:17:17 +01:00
revision=1
noarch=yes
wrksrc="Mako-${version}"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools python-MarkupSafe"
pycompile_module="mako"
short_desc="Hyperfast and lightweight templating for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.makotemplates.org/"
license="MIT"
distfiles="${PYPI_SITE}/M/Mako/Mako-${version}.tar.gz"
2015-10-28 20:38:37 +01:00
checksum=7644bc0ee35965d2e146dde31827b8982ed70a58281085fac42869a09764d38c
2015-03-07 10:17:17 +01:00
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
vlicense LICENSE
}
python3.4-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}"
pkg_install() {
2015-08-28 07:50:35 +02:00
vmove usr/bin/mako-render3
vmove usr/lib/python3.4
vlicense LICENSE
2015-03-07 10:17:17 +01:00
}
}