mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
python-tempita: split python3-tempita
This commit is contained in:
parent
4661bf427c
commit
9f233b2c0f
3 changed files with 24 additions and 30 deletions
|
@ -2,37 +2,12 @@
|
||||||
pkgname=python-tempita
|
pkgname=python-tempita
|
||||||
version=0.5.2
|
version=0.5.2
|
||||||
revision=8
|
revision=8
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
makedepends="${hostmakedepends}"
|
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="tempita"
|
short_desc="Small text templating language for text substitution (Python2)"
|
||||||
short_desc="A small text templating language for text substitution (Python2)"
|
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
homepage="http://pythonpaste.org/tempita/"
|
|
||||||
license="MIT"
|
license="MIT"
|
||||||
|
homepage="http://pythonpaste.org/tempita/"
|
||||||
distfiles="${PYPI_SITE}/T/Tempita/Tempita-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/T/Tempita/Tempita-${version}.tar.gz"
|
||||||
checksum=cacecf0baa674d356641f1d406b8bff1d756d739c46b869a54de515d08e6fc9c
|
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*
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-tempita
|
|
20
srcpkgs/python3-tempita/template
Normal file
20
srcpkgs/python3-tempita/template
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Template file for 'python3-tempita'
|
||||||
|
pkgname=python3-tempita
|
||||||
|
version=0.5.2
|
||||||
|
revision=8
|
||||||
|
build_style=python3-module
|
||||||
|
hostmakedepends="python3-setuptools"
|
||||||
|
depends="python3"
|
||||||
|
checkdepends="python3-nose"
|
||||||
|
short_desc="A small text templating language for text substitution (Python3)"
|
||||||
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
homepage="http://pythonpaste.org/tempita/"
|
||||||
|
license="MIT"
|
||||||
|
distfiles="${PYPI_SITE}/T/Tempita/Tempita-${version}.tar.gz"
|
||||||
|
checksum=cacecf0baa674d356641f1d406b8bff1d756d739c46b869a54de515d08e6fc9c
|
||||||
|
make_check=no # FIXME
|
||||||
|
|
||||||
|
post_patch() {
|
||||||
|
# setuptools no longer supports use_2to3
|
||||||
|
vsed -i setup.py -e '/use_2to3/d'
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue