void-packages/srcpkgs/python-Mako/template

37 lines
1014 B
Bash

# Template file for 'python-Mako'
pkgname=python-Mako
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"
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"
checksum=fed99dbe4d0ddb27a33ee4910d8708aca9ef1fe854e668387a9ab9a90cbf9059
post_install() {
cp -f ${DESTDIR}/usr/bin/mako-render{,3.4}
replace_interpreter python ${DESTDIR}/usr/bin/mako-render
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() {
vmove usr/bin/mako-render3.4
vmove usr/lib/python3.4
vlicense LICENSE
}
}