aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-09 16:58:03 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-09 16:58:03 -0300
commit3e744744af410d750529be217d4429af3623fc77 (patch)
tree0bd21ca4b40a9213ea646b89b2d425901370345d /community
parentdf3a49f6a25bb537cd5ef92baf12cf4e576e0d61 (diff)
downloadaports-3e744744af410d750529be217d4429af3623fc77.tar.bz2
aports-3e744744af410d750529be217d4429af3623fc77.tar.xz
community/py3-psutil: drop py2
Diffstat (limited to 'community')
-rw-r--r--community/py3-psutil/APKBUILD37
1 files changed, 8 insertions, 29 deletions
diff --git a/community/py3-psutil/APKBUILD b/community/py3-psutil/APKBUILD
index 1586919d3f..22d2afae00 100644
--- a/community/py3-psutil/APKBUILD
+++ b/community/py3-psutil/APKBUILD
@@ -1,51 +1,30 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-psutil
+pkgname=py3-psutil
_pkgname=psutil
pkgver=5.6.3
-pkgrel=0
+pkgrel=1
pkgdesc="A cross-platform process and system utilities module for Python"
url="https://github.com/giampaolo/psutil"
arch="all"
-license="BSD"
-makedepends="$depends_dev linux-headers python2-dev python3-dev"
-subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
+license="BSD-3-Clause"
+makedepends="linux-headers python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-psutil" # Backwards compatibility
+provides="py-psutil=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
python3 setup.py build
}
check() {
- cd "$builddir"
- python2 setup.py check
python3 setup.py check
}
-
package() {
- mkdir -p "$pkgdir"
-}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc - $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- _py python2
-}
-
-_py3() {
- _py python3
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="62cf120c9391705bd393d6554afa32d672470b61ebb3c0e7458bad26134b784175ba64d3eff119ace6def2aebc97df73cd0c9d213776176ce39c3d47da3f3d9c psutil-5.6.3.tar.gz"