From 3afe63881c5e920150825301cf46203dd4f98359 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 24 Sep 2021 23:16:19 -0400 Subject: [PATCH] python-MarkupSafe: rebuild for Python 3.10, split package python3-MarkupSafe: update to 2.0.1. --- srcpkgs/python-MarkupSafe/template | 19 ++++--------------- srcpkgs/python3-MarkupSafe | 1 - srcpkgs/python3-MarkupSafe/template | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 16 deletions(-) delete mode 120000 srcpkgs/python3-MarkupSafe create mode 100644 srcpkgs/python3-MarkupSafe/template diff --git a/srcpkgs/python-MarkupSafe/template b/srcpkgs/python-MarkupSafe/template index 780a65f924..95fb3208e8 100644 --- a/srcpkgs/python-MarkupSafe/template +++ b/srcpkgs/python-MarkupSafe/template @@ -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 " 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 - } -} diff --git a/srcpkgs/python3-MarkupSafe b/srcpkgs/python3-MarkupSafe deleted file mode 120000 index 56b2cb8a73..0000000000 --- a/srcpkgs/python3-MarkupSafe +++ /dev/null @@ -1 +0,0 @@ -python-MarkupSafe \ No newline at end of file diff --git a/srcpkgs/python3-MarkupSafe/template b/srcpkgs/python3-MarkupSafe/template new file mode 100644 index 0000000000..01ce465453 --- /dev/null +++ b/srcpkgs/python3-MarkupSafe/template @@ -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 " +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 +}