summaryrefslogtreecommitdiff
path: root/user/graphviz/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/graphviz/APKBUILD')
-rw-r--r--user/graphviz/APKBUILD50
1 files changed, 29 insertions, 21 deletions
diff --git a/user/graphviz/APKBUILD b/user/graphviz/APKBUILD
index 73aebef87..f02cec944 100644
--- a/user/graphviz/APKBUILD
+++ b/user/graphviz/APKBUILD
@@ -2,8 +2,8 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=graphviz
-pkgver=2.40.1
-pkgrel=2
+pkgver=2.42.3
+pkgrel=0
pkgdesc="Graph visualization software"
url="http://www.graphviz.org/"
arch="all"
@@ -13,27 +13,18 @@ depends=""
depends_dev="zlib-dev libpng-dev libjpeg-turbo-dev expat-dev
fontconfig-dev libsm-dev libxext-dev cairo-dev pango-dev
librsvg-dev gmp-dev freetype-dev"
-makedepends="$depends_dev flex swig guile-dev m4 libtool
- bison gtk+2.0-dev libltdl tcl tcl-dev"
+makedepends="$depends_dev flex swig m4 libtool guile-dev
+ bison gtk+2.0-dev libltdl perl-dev python3-dev tcl tcl-dev"
install="$pkgname.pre-deinstall"
triggers="$pkgname.trigger=/usr/lib/graphviz"
-subpackages="$pkgname-dev $pkgname-doc
- $pkgname-gtk $pkgname-graphs guile-$pkgname:guile"
-source="$pkgname-$pkgver.tar.gz::https://graphviz.gitlab.io/pub/graphviz/stable/SOURCES/graphviz.tar.gz
+subpackages="$pkgname-dev $pkgname-doc guile-$pkgname:guile
+ $pkgname-gtk $pkgname-graphs perl-gv:_pl py3-gv:_py3 tcl-$pkgname:_tcl"
+source="https://www2.graphviz.org/Packages/stable/portable_source/graphviz-2.42.3.tar.gz
$pkgname.trigger
0001-clone-nameclash.patch
"
-prepare() {
- default_prepare
-
- cd "$builddir"
- ./autogen.sh NOCONFIG
-}
-
build() {
- cd "$builddir"
-
LIBPOSTFIX=/ \
./configure \
--build=$CBUILD \
@@ -66,7 +57,6 @@ build() {
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" \
pkgconfigdir=/usr/lib/pkgconfig \
install
@@ -76,11 +66,17 @@ package() {
"$pkgdir"/usr/share/doc/graphviz
}
-guile() {
- pkgdesc="Guile bindings for graphviz"
+_lang() {
+ pkgdesc="$2 bindings for graphviz"
+ depends="$3"
mkdir -p "$subpkgdir"/usr/lib/graphviz
- mv "$pkgdir"/usr/lib/graphviz/guile* \
+ mv "$pkgdir"/usr/lib/graphviz/$1* \
"$subpkgdir"/usr/lib/graphviz/
+ mv "$pkgdir"/usr/lib/$1* "$subpkgdir"/usr/lib/ || true
+}
+
+guile() {
+ _lang guile Guile guile
}
gtk() {
@@ -98,6 +94,18 @@ graphs() {
"$subpkgdir"/usr/share/graphviz/
}
-sha512sums="a3f358a7050523a39b91a259563a95925b37853ffec799e571211af5b686d3af42457c937882954482785745d90416b1abd945caf05f8abb52b3876e07aa70f5 graphviz-2.40.1.tar.gz
+_pl() {
+ _lang perl Perl
+}
+
+_py3() {
+ _lang python3 "Python 3"
+}
+
+_tcl() {
+ _lang tcl "Tcl/Tk"
+}
+
+sha512sums="e03ca6da0ddb1162bd179d159d7dbb379d55012d63bb922aa800260fce52b65beb1a9b5ca1a5199ad3537201b0b4841efc9facee6e03065c6bd02e840f8a29c9 graphviz-2.42.3.tar.gz
50947e6a11929f724759266f7716d52d10923eba6d59704ab39e4bdf18f8471d548c2b11ab051dd4b67cb82742aaf54d6358890d049d5b5982f3383b65f7ae8c graphviz.trigger
aa4cbc341906a949a6bf78cadd96c437d6bcc90369941fe03519aa4447731ecbf6063a0dd0366d3e7aaadf22b69e4bcab3f8632a7da7a01f8e08a3be05c2bc5d 0001-clone-nameclash.patch"