aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-19 12:26:07 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 12:48:51 +0100
commit8dc70211da8b6afb23319a48f9c8e83a1a7e4ff3 (patch)
tree26b3fc419965cca16f817aedc91d4cc57a3b9243
parent747f85614719009330e1d936f14e9f4cb936ed73 (diff)
downloadaports-8dc70211da8b6afb23319a48f9c8e83a1a7e4ff3.tar.gz
aports-8dc70211da8b6afb23319a48f9c8e83a1a7e4ff3.tar.bz2
aports-8dc70211da8b6afb23319a48f9c8e83a1a7e4ff3.tar.xz
main/py3-markupsafe: drop python2
-rw-r--r--main/py3-markupsafe/APKBUILD40
1 files changed, 10 insertions, 30 deletions
diff --git a/main/py3-markupsafe/APKBUILD b/main/py3-markupsafe/APKBUILD
index 79799a8e54..897b14ed0b 100644
--- a/main/py3-markupsafe/APKBUILD
+++ b/main/py3-markupsafe/APKBUILD
@@ -1,52 +1,32 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-markupsafe
+pkgname=py3-markupsafe
_pkgname=MarkupSafe
pkgver=1.1.1
-pkgrel=2
+pkgrel=3
pkgdesc="Implements a XML/HTML/XHTML Markup safe string"
url="https://github.com/mitsuhiko/markupsafe"
arch="all"
-license="BSD"
-depends=""
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+license="BSD-3-Clause"
+depends="python3"
+makedepends="python3-dev py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-markupsafe" # Backwards compatibility
+provides="py-markupsafe=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
- cd "$builddir"
- python2 setup.py test
python3 setup.py test
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
- find "$subpkgdir" -name "*.c" -delete
-}
-
-_py2() {
- replaces="$pkgname"
- _py python2
-}
-
-_py3() {
- _py python3
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+ find "$pkgdir" -name "*.c" -delete
}
sha512sums="f3014e6131a3ab866914c5635b5397ef71906bffb1b6f8c5f2ed2acf167429ff7914236d38943e872683a57a9be9669f4c5aace6274f3307ab21ef25373db0b6 MarkupSafe-1.1.1.tar.gz"