aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-sphinx/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-07 21:58:43 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-11-19 18:25:10 +0100
commit59b31435075906e934c017a4ab49cb1af51bb275 (patch)
tree9781a3cb831a0f513ad88938c256c36a121f2c12 /main/py-sphinx/APKBUILD
parent9abd6d6c8737846040cd548a8e7b28a8b60f10c2 (diff)
downloadaports-59b31435075906e934c017a4ab49cb1af51bb275.tar.bz2
aports-59b31435075906e934c017a4ab49cb1af51bb275.tar.xz
main/py-sphinx: upgrade to 1.4.8 and add py2/py3 subpackages
Diffstat (limited to 'main/py-sphinx/APKBUILD')
-rw-r--r--main/py-sphinx/APKBUILD41
1 files changed, 31 insertions, 10 deletions
diff --git a/main/py-sphinx/APKBUILD b/main/py-sphinx/APKBUILD
index b353fe35e8..704db72e71 100644
--- a/main/py-sphinx/APKBUILD
+++ b/main/py-sphinx/APKBUILD
@@ -2,29 +2,50 @@
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py-sphinx
_pkgname=${pkgname#py-}
-pkgver=1.4.5
-pkgrel=3
+pkgver=1.4.8
+pkgrel=0
pkgdesc="Python Documentation Generator"
url="http://sphinx.pocoo.org/"
arch="noarch"
license="BSD"
-depends="python2 make py-docutils py-jinja2 py-pygments py-setuptools py2-six
- py-sphinx_rtd_theme py-alabaster py-babel py-snowballstemmer
- py-imagesize"
-makedepends="$depends_dev"
+_pydepends="make py-docutils py-jinja2 py-pygments py-six py-sphinx_rtd_theme
+ py-alabaster<0.8 py-babel py-snowballstemmer py-imagesize"
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/sphinx-doc/sphinx/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
+ python3 setup.py build || return 1
}
package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="make ${_pydepends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="make ${_pydepends//py-/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"
}
-md5sums="99cb21bafac47d56e538f865617809c1 sphinx-1.4.5.tar.gz"
-sha256sums="509648ada4175b12230157aa4590bb205fe2b31333719a6fd7afb738438386af sphinx-1.4.5.tar.gz"
-sha512sums="16695bfcc7562a7be32d583c4476a117ef3417abacd21219ffda096170ab3a4c47574c02884b5d3fbcefa82c6d17882c0c19a1c892039e59c1dd5d7cb83f9850 sphinx-1.4.5.tar.gz"
+md5sums="0d3471b1cf421b68d0e41aedbfa48428 sphinx-1.4.8.tar.gz"
+sha256sums="69fa699f643eab554d14f35c569ca0a2377b5228a08bc4965fe12c67c69cb6b0 sphinx-1.4.8.tar.gz"
+sha512sums="db2bad6964228d0653778a3afb09e6e78127dd50362a924f6206b4c377be77a255ab334e43d9729023e1694e5c8c715756334c1d792419e1137b99d87a4f3ab3 sphinx-1.4.8.tar.gz"