aboutsummaryrefslogtreecommitdiffstats
path: root/main/asciidoc/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-27 01:39:42 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-27 09:44:28 +0100
commit2f78cb7781fb6d3a27eadb2312a14824349485ec (patch)
tree14dab0855c44ea880de6da83d76fcc47a0cb487d /main/asciidoc/APKBUILD
parentec8bed83e80b4543043ad2c985163b094088b750 (diff)
downloadaports-2f78cb7781fb6d3a27eadb2312a14824349485ec.tar.bz2
aports-2f78cb7781fb6d3a27eadb2312a14824349485ec.tar.xz
main/asciidoc: switch to python3
Import patches from Fedora and use the same source as them.
Diffstat (limited to 'main/asciidoc/APKBUILD')
-rw-r--r--main/asciidoc/APKBUILD26
1 files changed, 16 insertions, 10 deletions
diff --git a/main/asciidoc/APKBUILD b/main/asciidoc/APKBUILD
index 4113918a82..5637fde52c 100644
--- a/main/asciidoc/APKBUILD
+++ b/main/asciidoc/APKBUILD
@@ -1,24 +1,28 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=asciidoc
pkgver=8.6.10
-pkgrel=0
+pkgrel=1
+_commit=986f99d743d0b6ddc2014bdc8dcfa991ab9b4863
pkgdesc="Text based documentation"
url="http://asciidoc.org/"
arch="noarch"
-license="GPL-2.0"
-depends="python2 libxml2-utils docbook-xsl"
-makedepends="autoconf"
+license="GPL-2.0-or-later and GPL-1.0-or-later"
+depends="python3 libxml2-utils docbook-xsl"
+makedepends="autoconf automake"
subpackages="$pkgname-doc $pkgname-vim::noarch"
-source="$pkgname-$pkgver.tar.gz::https://github.com/asciidoc/asciidoc/archive/$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
+source="$pkgname-$_commit.tar.gz::https://github.com/asciidoc/asciidoc-py3/archive/$_commit/asciidoc-py3-$_commit.tar.gz
+ asciidoc-python3.patch
+ asciidoc-python3-a2x-decode-fix.patch
+ asciidoc-python3-deprecation-warning.patch
+ "
+builddir="$srcdir/asciidoc-py3-$_commit"
prepare() {
default_prepare
- autoconf
+ autoreconf -fi
}
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -30,7 +34,6 @@ build() {
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}
@@ -41,4 +44,7 @@ vim() {
"$subpkgdir"/usr/share/vim/vimfiles/syntax/$pkgname.vim
}
-sha512sums="6ecc86977baaf1c756691e3f661e43ef2bb24e606898f6075bfa6f174d1fdc5e77d00853ffe014847e295364349d6ad34f3b8209cb97870e0233012fc38a281a asciidoc-8.6.10.tar.gz"
+sha512sums="758362cac485cbe4fd504224f7a8d24d20955464dd56af258e9a70deac8dc89d0f07f8e4567cfbbd3e1cbe6336704e9d12590bade662dd5bf228ea7e611676d1 asciidoc-986f99d743d0b6ddc2014bdc8dcfa991ab9b4863.tar.gz
+331d7c1a6e8ec6bdd11c2998c0d76285e282914ca12a0de79e04199926f7fd10a7b24a3602fd01d3cbdf7fb8f718000eb8d5063236354c894a9187ab54194aa6 asciidoc-python3.patch
+dfa4b288c894373aecebafbadf726aadcb51cf4578c0903433936c114a587b086695f85c97bf712140d94adc916c83d0c861c5af8cf15195a3364ca8e4e8414e asciidoc-python3-a2x-decode-fix.patch
+de4687009f4c5dd4d3f7727634e6577d1e6df3f4c812dd4d4c9828a31d529b8e520ae43a53a63cb4c154664d51d5bad96728f05feb9e9ec0889849903cae739e asciidoc-python3-deprecation-warning.patch"