aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-08 20:59:31 +0300
committerprspkt <prspkt@protonmail.com>2019-06-08 21:10:33 +0300
commitc12f3f7616e21495a055a497c7eea81201defa20 (patch)
tree8a6748dfdd079287bb976c1a9c79dfa45f024604 /community
parent076fe365387b93ac7ae42aa39fc46542581b5760 (diff)
downloadaports-c12f3f7616e21495a055a497c7eea81201defa20.tar.bz2
aports-c12f3f7616e21495a055a497c7eea81201defa20.tar.xz
community/py-webcolors: drop python2
Diffstat (limited to 'community')
-rw-r--r--community/py3-webcolors/APKBUILD (renamed from community/py-webcolors/APKBUILD)30
1 files changed, 7 insertions, 23 deletions
diff --git a/community/py-webcolors/APKBUILD b/community/py3-webcolors/APKBUILD
index c079e90efc..9033346fbf 100644
--- a/community/py-webcolors/APKBUILD
+++ b/community/py3-webcolors/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-webcolors
+pkgname=py3-webcolors
_pkgname=webcolors
pkgver=1.8.1
pkgrel=1
@@ -8,38 +8,22 @@ pkgdesc="A library for working with color names and color value formats"
url="https://github.com/ubernostrum/webcolors"
arch="noarch"
license="BSD-3-Clause"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-sphinxcontrib-webcolors" # Backwards compatibility
+provides="py-sphinxcontrib-webcolors=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- _py python2
-}
-
-_py3() {
- _py python3
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="45ddb4ec030206c3ff1edb7de6b8ec1b5f2f9ef5068f37a7c43b66531a2dc6b290cced2af1ca18794aaa9ba17f297022b2f9cc7a92a74ee9b68f758abf7c104e webcolors-1.8.1.tar.gz"