aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flask-mail
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 02:09:20 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-08-15 02:09:20 +0000
commit3779e2315d7d061437612ebcd537c79d085106bf (patch)
treefb285b080758b1bb03b2d70985931bea46999c06 /testing/py-flask-mail
parentd899c8b0634ed03418c2c8263285b71e1a2878af (diff)
downloadaports-3779e2315d7d061437612ebcd537c79d085106bf.tar.bz2
aports-3779e2315d7d061437612ebcd537c79d085106bf.tar.xz
testing/py-flask-mail: upgrade to 0.9.1, add python3 support
Diffstat (limited to 'testing/py-flask-mail')
-rw-r--r--testing/py-flask-mail/APKBUILD49
1 files changed, 29 insertions, 20 deletions
diff --git a/testing/py-flask-mail/APKBUILD b/testing/py-flask-mail/APKBUILD
index 1115bfb738..74e7edf2b9 100644
--- a/testing/py-flask-mail/APKBUILD
+++ b/testing/py-flask-mail/APKBUILD
@@ -1,40 +1,49 @@
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-flask-mail
-pkgver=0.9.0
+pkgver=0.9.1
pkgrel=0
pkgdesc="SMTP mail client for the Flask microframework"
url="http://pypi.python.org/pypi/Flask-Mail"
arch="noarch"
license="BSD"
-depends="python2 py-flask py-blinker"
+depends="py-flask py-blinker"
depends_dev=""
-makedepends="python2-dev py-setuptools"
+makedepends="python2-dev python3-dev py-setuptools"
install=""
-subpackages=""
+subpackages="py2-flask-mail:py2 py3-flask-mail:py3"
source="https://files.pythonhosted.org/packages/source/F/Flask-Mail/Flask-Mail-$pkgver.tar.gz"
-_builddir="$srcdir"/Flask-Mail-$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"/Flask-Mail-$pkgver
build() {
cd "$_builddir"
- python2 setup.py build || return 1
+ 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="cd71f0b228341fc29d2722783ebaa8f6 Flask-Mail-0.9.0.tar.gz"
-sha256sums="db9669d1eac783e73f06406f36bb5f71eae99b6c24e5849d76934641e3f6263e Flask-Mail-0.9.0.tar.gz"
-sha512sums="273f21f36b46c8c86c34d5377764a684cfb53501201d5ec4d17f6ce59de1ce0654904790d3ca03a0947106d1384de65faf73d917892c386d00cebbe7aae4bc66 Flask-Mail-0.9.0.tar.gz"
+sha512sums="1d19f0bade77c66e73624d8af0919165f8b6f208a00c1e4025049b50ad56912557b8446cb80f8567adf697e92b126954a5f130bd9fa7a2345d4e98e35b29ac47 Flask-Mail-0.9.1.tar.gz"