aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-mako
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2017-08-08 09:42:28 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-08-10 07:57:15 +0000
commit2aec74fc173f2c37b0dd4b575e1fd84ab48dbe65 (patch)
tree06d41597fa4e78b3c5b14aabb7e0ea86d3ff999c /main/py-mako
parentcc43ad781e720b117a2dafe2f46c2be96186b385 (diff)
downloadaports-2aec74fc173f2c37b0dd4b575e1fd84ab48dbe65.tar.bz2
aports-2aec74fc173f2c37b0dd4b575e1fd84ab48dbe65.tar.xz
main/py-mako: upgrade to 1.0.7, added py3 subpackage
Diffstat (limited to 'main/py-mako')
-rw-r--r--main/py-mako/APKBUILD35
1 files changed, 26 insertions, 9 deletions
diff --git a/main/py-mako/APKBUILD b/main/py-mako/APKBUILD
index 9a1f4f83e7..b8d8239aa4 100644
--- a/main/py-mako/APKBUILD
+++ b/main/py-mako/APKBUILD
@@ -2,28 +2,45 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-mako
_pkgname=Mako
-pkgver=1.0.6
+pkgver=1.0.7
pkgrel=0
pkgdesc="A Python fast templating language"
url="http://www.makotemplates.org/"
arch="noarch"
license="MIT"
-depends="python2 py-markupsafe"
-depends_dev=""
-makedepends="python2-dev py-setuptools"
-install=""
-subpackages=""
+depends=""
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
- python2 setup.py build || return 1
+ 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"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
}
-sha512sums="15608f2487783ea3a48faf743ee1b8e811adc34281c613e56f1a4548f3c614d1d5dbc943911943a7f8f6d34a962a27387d8fc17862038c1abee2e6c3328a79cf Mako-1.0.6.tar.gz"
+sha512sums="d67af6788bf8603010361ce8b6d0355b0191657c07f3b5845f9d5e91653c3e349a7b35d5b36aa9c7f291973c83911ce94075e1cad78e6935d0ed4ee9c6e2a571 Mako-1.0.7.tar.gz"