New package: python-Mako-1.0.1
This commit is contained in:
parent
0ef742c7a7
commit
a727b1f0ee
2 changed files with 52 additions and 0 deletions
51
srcpkgs/python-Mako/template
Normal file
51
srcpkgs/python-Mako/template
Normal file
|
@ -0,0 +1,51 @@
|
|||
# Template file for 'python-Mako'
|
||||
pkgname=python-Mako
|
||||
version=1.0.1
|
||||
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"
|
||||
checksum=45f0869febea59dab7efd256fb451c377cbb7947bef386ff0bb44627c31a8d1c
|
||||
|
||||
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() {
|
||||
vmove /usr/bin/mako-render3
|
||||
vmove /usr/lib/python3.4
|
||||
vlicense ${wrksrc}/LICENSE
|
||||
}
|
||||
}
|
1
srcpkgs/python3.4-Mako
Symbolic link
1
srcpkgs/python3.4-Mako
Symbolic link
|
@ -0,0 +1 @@
|
|||
python-Mako
|
Loading…
Reference in a new issue