[crux-commits] ports/opt (3.6): graphviz: fix build if swig is installed but tcl is not

crux at crux.nu crux at crux.nu
Wed Feb 17 13:12:54 UTC 2021


commit 342e893cc193400b660237535d65c31760d838e0
Author: Juergen Daubert <jue at jue.li>
Date:   Wed Feb 17 14:12:32 2021 +0100

    graphviz: fix build if swig is installed but tcl is not

diff --git a/graphviz/.signature b/graphviz/.signature
index 77d77380c..175c01790 100644
--- a/graphviz/.signature
+++ b/graphviz/.signature
@@ -1,5 +1,5 @@
 untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/XlLkQPamiGOHEwpS95KngfPeiNRjhFVQ3cGryNkcaRUkA4gP51+cQ2fTRA1dThpIiRHmNkW5/v5Mo/lhxv4OgM=
-SHA256 (Pkgfile) = 96c470569e59ad8f33535d2d33ecef68750587d089e05c76c2068bc022c414f6
+RWSE3ohX2g5d/fLAZuzqpUU4coupnDRSgr8AXyXUlOmBMflg4OhTm6o5YIfdpoR0U+0rivOkXcedTu5Wddb23TAoM9mv4r0a2Qs=
+SHA256 (Pkgfile) = 0c65d20c571ce915573a1505af972eb900b7776371e354bea1ad3b2d6e8ff1f7
 SHA256 (.footprint) = dd5dc11353c9f8957d6ffee42fb55bfde198411678314a2c6fdf1855f83ea8b8
 SHA256 (graphviz-2.46.1.tar.bz2) = e5d7580b3dfcbeb0b86f28dd3c2df76f32086bb428f67c8ae8512e5fd969324d
diff --git a/graphviz/Pkgfile b/graphviz/Pkgfile
index c91794c6e..c27739054 100644
--- a/graphviz/Pkgfile
+++ b/graphviz/Pkgfile
@@ -5,14 +5,22 @@
 
 name=graphviz
 version=2.46.1
-release=1
+release=2
 source=(https://gitlab.com/graphviz/graphviz/-/archive/$version/$name-$version.tar.bz2)
 
 build() {
 	cd $name-$version
+
+	# build fails if swig is installed but tcl is not
+	prt-get isinst swig && ! prt-get isinst tcl && PKGMK_GRAPHVIZ='--disable-swig'
+
+	# don't install into /usr/lib64
+	sed 's/LIBPOSTFIX="64"/LIBPOSTFIX=""/' -i configure.ac
+
 	./autogen.sh
-	./configure --prefix=/usr
-	make
+	./configure --prefix=/usr $PKGMK_GRAPHVIZ
+	make -j1
 	make DESTDIR=$PKG install
+
 	rm -r $PKG/usr/share/graphviz/doc
 }


More information about the crux-commits mailing list