aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyflakes
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-21 15:24:34 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-07-21 15:33:48 -0300
commited295e0190c879ada82df5a46ec33b79cabd6b44 (patch)
treebebd2ce1eec9f054ff70bdfbf178150317ec977e /community/py3-pyflakes
parenta7a657e2f7b617317c52bb44c3bd4d00577fabe9 (diff)
downloadaports-ed295e0190c879ada82df5a46ec33b79cabd6b44.tar.bz2
aports-ed295e0190c879ada82df5a46ec33b79cabd6b44.tar.xz
community/py3-pyflakes: switch to py3
Diffstat (limited to 'community/py3-pyflakes')
-rw-r--r--community/py3-pyflakes/APKBUILD49
1 files changed, 9 insertions, 40 deletions
diff --git a/community/py3-pyflakes/APKBUILD b/community/py3-pyflakes/APKBUILD
index 4dbc3d20ae..9a1ec15b5b 100644
--- a/community/py3-pyflakes/APKBUILD
+++ b/community/py3-pyflakes/APKBUILD
@@ -1,64 +1,33 @@
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-pyflakes
-_pkgname=${pkgname#py-}
+pkgname=py3-pyflakes
+_pkgname=${pkgname#py3-}
pkgver=2.1.1
-pkgrel=4
+pkgrel=5
pkgdesc="A passive checker of Python programs"
url="https://github.com/pyflakes/pyflakes"
arch="noarch"
license="MIT"
-_py2deps="py2-setuptools"
-_py3deps="py3-setuptools"
-makedepends="python2-dev python3-dev py-setuptools $_py2deps $_py3deps"
-subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-pyflakes" # Backwards compatibility
+provides="py-pyflakes=$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() {
- cd "$builddir"
-
mkdir -p "$pkgdir"/usr/bin
- ln -s pyflakes-3 "$pkgdir"/usr/bin/pyflakes
-}
-
-_py2() {
- replaces=pyflakes
- provides="pyflakes=$pkgver-r$pkgrel"
- depends="python2 $_py2deps"
- _py python2
-}
-
-_py3() {
- depends="python3 $_py3deps"
- _py python3
-}
-
-_py() {
- local python="$1"
- local pyver="${1#python}"
- pkgdesc="$pkgdesc (for $python)"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
+ ln -s pyflakes "$pkgdir"/usr/bin/pyflakes-3
- # Add version suffix to executable files.
- local path; for path in "$subpkgdir"/usr/bin/*; do
- mv "$path" "$path-$pyver"
- done
+ python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}
sha512sums="7ebf5843b38146305c1063e070480fea8ec3b47fa1be546b1fafaeb242a688a5a001f978e7257fd71d5905b9a338b466ef17c7330725191587e9c40ba632c3f8 pyflakes-2.1.1.tar.gz"