aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-sphinx-autobuild/APKBUILD
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-04-26 20:55:54 +0300
committerprspkt <prspkt@protonmail.com>2019-04-26 22:24:49 +0300
commit714000b167c20254d26e677457cafeb05f9f480a (patch)
treeed95394b22f9fb1b1248eb0481c82e80947a5862 /community/py3-sphinx-autobuild/APKBUILD
parentef472e2846c720438a76f22af0011c075fd2aab4 (diff)
downloadaports-714000b167c20254d26e677457cafeb05f9f480a.tar.bz2
aports-714000b167c20254d26e677457cafeb05f9f480a.tar.xz
community/py-sphinx-autobuild: upgrade to python3
Diffstat (limited to 'community/py3-sphinx-autobuild/APKBUILD')
-rw-r--r--community/py3-sphinx-autobuild/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/community/py3-sphinx-autobuild/APKBUILD b/community/py3-sphinx-autobuild/APKBUILD
new file mode 100644
index 0000000000..9558054138
--- /dev/null
+++ b/community/py3-sphinx-autobuild/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-sphinx-autobuild
+pkgver=0.7.1
+pkgrel=0
+pkgdesc="Watch a Sphinx directory and rebuild the documentation when a change is detected"
+url="https://github.com/GaretJax/sphinx-autobuild"
+arch="noarch"
+license="BSD"
+replaces="py-sphinx-autobuild" #for backwards compatibility
+provides="py-sphinx-autobuild=$pkgver-r$pkgrel" #for backwards compatibility
+depends="py3-argh py3-livereload py3-pathtools py3-port-for py3-sphinx
+ py3-tornado py3-watchdog py3-yaml"
+depends_dev=""
+makedepends="py3-setuptools"
+install=""
+subpackages=""
+source="sphinx-autobuild-$pkgver.tar.gz::https://github.com/GaretJax/sphinx-autobuild/archive/v$pkgver.tar.gz
+ fix-requires.patch"
+_builddir="$srcdir"/sphinx-autobuild-$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
+}
+
+build() {
+ cd "$_builddir"
+ python3 setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+sha512sums="6ecd4cccfcf1f6ecd15ffe39ad166436bc628e9ffb215b96b979cf10a56352640aefb22a858ab05e1fa9153c684af162bf89813331e1c2b12450a0cf2fcd3646 sphinx-autobuild-0.7.1.tar.gz
+a5ce0b1c725a1844aa5e62a8f9e5157f34c2a36b08a178cbdeeeedf780494e1f0934bdd9ef1bc1d96893d36879c7f513b14d8789f8cb133949a832d6f11ee2b9 fix-requires.patch"