python-Jinja2: rebuild for Python 3.10, split package
python3-Jinja2: update to 3.0.2
This commit is contained in:
parent
2b76e9f17c
commit
a5590975f0
3 changed files with 24 additions and 15 deletions
|
@ -1,12 +1,12 @@
|
|||
# Template file for 'python-Jinja2'
|
||||
pkgname=python-Jinja2
|
||||
version=2.11.3
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="Jinja2-${version}"
|
||||
build_style=python-module
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
build_style=python2-module
|
||||
hostmakedepends="python-setuptools"
|
||||
depends="python-MarkupSafe"
|
||||
checkdepends="python-MarkupSafe python3-MarkupSafe python-pytest python3-pytest"
|
||||
checkdepends="python-pytest $depends"
|
||||
short_desc="Full featured template engine (Python2)"
|
||||
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
||||
license="BSD-3-Clause"
|
||||
|
@ -17,7 +17,6 @@ checksum=a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6
|
|||
|
||||
do_check() {
|
||||
PYTHONPATH=src python2 -m pytest
|
||||
PYTHONPATH=src python3 -m pytest
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
@ -26,12 +25,3 @@ post_install() {
|
|||
rm -f ${DESTDIR}/${py2_sitelib}/jinja2/asyncsupport.py
|
||||
rm -f ${DESTDIR}/${py2_sitelib}/jinja2/asyncfilters.py
|
||||
}
|
||||
|
||||
python3-Jinja2_package() {
|
||||
depends="python3-MarkupSafe"
|
||||
short_desc="${short_desc/Python2/Python3}"
|
||||
pkg_install() {
|
||||
vmove usr/lib/python3*
|
||||
vlicense LICENSE.rst
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
python-Jinja2
|
20
srcpkgs/python3-Jinja2/template
Normal file
20
srcpkgs/python3-Jinja2/template
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Template file for 'python3-Jinja2'
|
||||
pkgname=python3-Jinja2
|
||||
version=3.0.2
|
||||
revision=1
|
||||
wrksrc="Jinja2-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools"
|
||||
depends="python3-MarkupSafe"
|
||||
checkdepends="python3-pytest $depends"
|
||||
short_desc="Full featured template engine (Python3)"
|
||||
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="http://jinja.pocoo.org/"
|
||||
changelog="https://raw.githubusercontent.com/pallets/jinja/master/CHANGES.rst"
|
||||
distfiles="${PYPI_SITE}/J/Jinja2/Jinja2-${version}.tar.gz"
|
||||
checksum=827a0e32839ab1600d4eb1c4c33ec5a8edfbc5cb42dafa13b81f182f97784b45
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE.rst
|
||||
}
|
Loading…
Reference in a new issue