aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-login
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 02:05:19 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 02:05:19 +0000
commitc620ac039f7dfb42410576f4479f8d037ecf2664 (patch)
tree4be67c5868e8d133fcc7ba8b3f20d5335bc8e3ed /testing/py-flask-login
parent0c9f0037d56a6a5357d2e7bbfab85e2346a9123d (diff)
downloadaports-c620ac039f7dfb42410576f4479f8d037ecf2664.tar.bz2
aports-c620ac039f7dfb42410576f4479f8d037ecf2664.tar.xz
testing/py-flask-login: upgrade to 0.4.0, add python3 support
Diffstat (limited to 'testing/py-flask-login')
-rw-r--r--testing/py-flask-login/APKBUILD51
1 files changed, 30 insertions, 21 deletions
diff --git a/testing/py-flask-login/APKBUILD b/testing/py-flask-login/APKBUILD
index cbe0120314..06c5245abf 100644
--- a/testing/py-flask-login/APKBUILD
+++ b/testing/py-flask-login/APKBUILD
@@ -1,41 +1,50 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-flask-login
_pkgname=Flask-Login
-pkgver=0.2.11
+pkgver=0.4.0
pkgrel=0
pkgdesc="Flask user session management"
url="https://pypi.python.org/pypi/Flask-Login"
arch="noarch"
license="BSD"
-depends="python2 py-flask"
+depends="py-flask"
depends_dev=""
-makedepends="python2-dev py-setuptools"
+makedepends="python2-dev python3-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-_builddir="$srcdir"/$_pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc ${python#python}"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+py2() {
+ cd "$builddir"
+ _py python2
+}
+
+py3() {
+ cd "$builddir"
+ _py python3
}
-md5sums="c0a7eaf28623f0aeac4929dc05a7a064 Flask-Login-0.2.11.tar.gz"
-sha256sums="83d5f10e5c4f214feed6cc41c212db63a58a15ac32e56df81591bfa0a5cee3e5 Flask-Login-0.2.11.tar.gz"
-sha512sums="7a9f8a782d182255f5e96a53c5d3a13479b5bac5f8d4af75b7407e3d5f4854cc7b54aa0ff46b29701c050d99de159cea04fff22dea762391447ffefdb7059905 Flask-Login-0.2.11.tar.gz"
+sha512sums="07f369887f933ca36d4c9935c457b15c2083195f9c05c4fa59a33ed6779664cc1791a7832966296cf81f3218c6b617722fa03c5b019525b143753772a3329f57 Flask-Login-0.4.0.tar.gz"