diff graphics/graphviz/graphviz.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents ddab65a5b3f5
children 27d1a83dc8d6
line wrap: on
line diff
--- a/graphics/graphviz/graphviz.sh	Wed Jul 28 15:24:46 2021 +0200
+++ b/graphics/graphviz/graphviz.sh	Wed Sep 29 13:49:32 2021 +0200
@@ -101,64 +101,61 @@
 	with_expat="--without-expat"
 fi
 
-build()
-{
-	rm -rf $PKGNAME-$PKGVERSION
-	tar xvf $PKGNAME-$PKGVERSION.tar.gz
-	cd $PKGNAME-$PKGVERSION
+rm -rf $PKGNAME-$PKGVERSION
+tar xvf $PKGNAME-$PKGVERSION.tar.gz
+cd $PKGNAME-$PKGVERSION
 
-	# TODO: enable features as they become available.
-	# --disable-tcl because it installs to /lib64.
-	CONFIG_SHELL=/bin/bash \
-	CC="$CC" \
-	CFLAGS="$CFLAGS" \
-	CXX="$CXX" \
-	CXXFLAGS="$CXXFLAGS" \
-	LDFLAGS="$LDFLAGS" \
-	LIBS="$LIBS" \
-	./configure \
-		--build=$CBUILD \
-		--host=$CHOST \
-		--prefix= \
-		--libdir=/lib \
-		--disable-tcl \
-		--disable-ltdl-install \
-		--without-included-ltdl \
-		--without-qt \
-		--without-devil \
-		--without-poppler \
-		--without-rsvg \
-		--without-ghostscript \
-		--without-visio \
-		--without-lasi \
-		--without-glitz \
-		--without-gtkgl \
-		--without-gtkglext \
-		--without-gts \
-		--without-ann \
-		--without-glade \
-		--without-ming \
-		--without-qt\
-		--without-quartz \
-		--without-gdiplus \
-		--without-glut \
-		--without-smyrna \
-		--without-ortho \
-		--without-digcola \
-		--without-ipsepcola \
-		--with-sfdp \
-		$with_fontconfig \
-		$with_gd \
-		$with_gtk \
-		$with_pango \
-		$with_ttf \
-		$with_webp \
-		$with_x \
-		$with_xml
-	make
-	make install DESTDIR=$DESTDIR
-	find $DESTDIR -type f -name "*.la" -delete
+# TODO: enable features as they become available.
+# --disable-tcl because it installs to /lib64.
+CONFIG_SHELL=/bin/bash \
+CC="$CC" \
+CFLAGS="$CFLAGS" \
+CXX="$CXX" \
+CXXFLAGS="$CXXFLAGS" \
+LDFLAGS="$LDFLAGS" \
+LIBS="$LIBS" \
+./configure \
+	--build=$CBUILD \
+	--host=$CHOST \
+	--prefix= \
+	--libdir=/lib \
+	--disable-tcl \
+	--disable-ltdl-install \
+	--without-included-ltdl \
+	--without-qt \
+	--without-devil \
+	--without-poppler \
+	--without-rsvg \
+	--without-ghostscript \
+	--without-visio \
+	--without-lasi \
+	--without-glitz \
+	--without-gtkgl \
+	--without-gtkglext \
+	--without-gts \
+	--without-ann \
+	--without-glade \
+	--without-ming \
+	--without-qt\
+	--without-quartz \
+	--without-gdiplus \
+	--without-glut \
+	--without-smyrna \
+	--without-ortho \
+	--without-digcola \
+	--without-ipsepcola \
+	--with-sfdp \
+	$with_fontconfig \
+	$with_gd \
+	$with_gtk \
+	$with_pango \
+	$with_ttf \
+	$with_webp \
+	$with_x \
+	$with_xml
+make
+make install DESTDIR=$DESTDIR
+find $DESTDIR -type f -name "*.la" -delete
 
-	cd ..
-	rm -rf $PKGNAME-$PKGVERSION
-}
+cd ..
+rm -rf $PKGNAME-$PKGVERSION