python-MarkupSafe: rebuild for Python 3.10, split package

python3-MarkupSafe: update to 2.0.1.
This commit is contained in:
Andrew J. Hesford 2021-09-24 23:16:19 -04:00
parent 40fac1d5de
commit 3afe63881c
3 changed files with 23 additions and 16 deletions

View file

@ -1,13 +1,11 @@
# Template file for 'python-MarkupSafe'
pkgname=python-MarkupSafe
version=1.1.1
revision=6
revision=7
wrksrc="MarkupSafe-${version}"
build_style=python-module
pycompile_module="markupsafe"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
checkdepends="python3-pytest"
build_style=python2-module
hostmakedepends="python-setuptools"
makedepends="python-devel"
short_desc="Implements a XML/HTML/XHTML Markup safe string for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
@ -18,12 +16,3 @@ checksum=29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b
post_install() {
vlicense LICENSE.rst
}
python3-MarkupSafe_package() {
pycompile_module="markupsafe"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.rst
}
}

View file

@ -1 +0,0 @@
python-MarkupSafe

View file

@ -0,0 +1,19 @@
# Template file for 'python3-MarkupSafe'
pkgname=python3-MarkupSafe
version=2.0.1
revision=1
wrksrc="MarkupSafe-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
checkdepends="python3-pytest"
short_desc="Implements a XML/HTML/XHTML Markup safe string for Python3"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-3-Clause"
homepage="https://palletsprojects.com/p/markupsafe/"
distfiles="${PYPI_SITE}/M/MarkupSafe/MarkupSafe-${version}.tar.gz"
checksum=594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a
post_install() {
vlicense LICENSE.rst
}