summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-26 18:57:41 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-26 18:57:41 -0600
commit2c40a6b649023769772323aebe09e816fd123073 (patch)
tree76a005448f9fa38bac94ce054b29d8211a8749d7 /user
parent754b3fc000a30529e63362a7b4921bf697468232 (diff)
downloadpackages-2c40a6b649023769772323aebe09e816fd123073.tar.gz
packages-2c40a6b649023769772323aebe09e816fd123073.tar.bz2
packages-2c40a6b649023769772323aebe09e816fd123073.tar.xz
packages-2c40a6b649023769772323aebe09e816fd123073.zip
user/graphviz: Re-add language bindings
Diffstat (limited to 'user')
-rw-r--r--user/graphviz/APKBUILD32
1 files changed, 25 insertions, 7 deletions
diff --git a/user/graphviz/APKBUILD b/user/graphviz/APKBUILD
index 5b2418896..f02cec944 100644
--- a/user/graphviz/APKBUILD
+++ b/user/graphviz/APKBUILD
@@ -13,12 +13,12 @@ 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 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"
+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
@@ -66,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() {
@@ -88,6 +94,18 @@ graphs() {
"$subpkgdir"/usr/share/graphviz/
}
+_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"