39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'python-tempita'
|
|
pkgname=python-tempita
|
|
version=0.5.2
|
|
revision=8
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="${hostmakedepends}"
|
|
depends="python"
|
|
pycompile_module="tempita"
|
|
short_desc="A small text templating language for text substitution (Python2)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://pythonpaste.org/tempita/"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/T/Tempita/Tempita-${version}.tar.gz"
|
|
checksum=cacecf0baa674d356641f1d406b8bff1d756d739c46b869a54de515d08e6fc9c
|
|
|
|
post_patch() {
|
|
# setuptools no longer supports use_2to3
|
|
vsed -i setup.py -e '/use_2to3/d'
|
|
}
|
|
|
|
do_build() {
|
|
# This is pure python, no need for cross antics
|
|
python2.7 setup.py build --build-base=build-2.7
|
|
|
|
# Convert py2 syntax to py3 since setuptools no longer does it
|
|
2to3-${py3_ver} -w tempita
|
|
python3 setup.py build --build-base=build-${py3_ver}
|
|
}
|
|
|
|
python3-tempita_package() {
|
|
depends="python3"
|
|
pycompile_module="tempita"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|