@ -26,7 +26,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=graphviz
PRGNAM=graphviz
VERSION=5.0.1
VERSION=7.0.5
BUILD=${BUILD:-1}
BUILD=${BUILD:-1}
TAG=${TAG:-}
TAG=${TAG:-}
@ -72,23 +72,27 @@ patch -p0 << EOF
}
}
EOF
EOF
## The primary purpose of this build is for 'dot' for kscope, tdeedu, ...
## .. output man pages to pdf, sans-serif [helvetica] font, 10pt, indentation, page size, paper size
## To include the pdf and html documentation, build with 'GVZ_DOCS=y ./BUILD-TDE.sh'
## with at least one line before a section heading
[[ ${GVZ_DOCS:-} != [yY1] ]] && {
## User set paper size or as per locale - see groff_font for valid sizes
patch -p0 << EOF
[[ ! ${PS:-} ]] && {
--- Makefile.in
[[ $(locale LC_PAPER) == 297* ]] && PS=a4 || PS=letter
+++ Makefile.in
@@ -614 +614 @@
-SUBDIRS = \$(subdirs) lib plugin cmd tclpkg doc contrib share graphs tests
+SUBDIRS = \$(subdirs) lib plugin cmd tclpkg contrib share graphs tests
EOF
sed -i '/tcldot.html/d' tclpkg/tcldot/Makefile.in
}
}
## relevant if including docs, but not installed otherwise
#
sed -i 's|../doc/||;28,54s|../pdf/|../../../man/man1/|;58,71s|../pdf/|../../../man/man3/|;28,71s|\.pdf|\.gz|' doc/index.html
echo 'patching for man page pdfs'
sed -i '56,62d;s|pages (PDF)|pages|' doc/index.html
find . -name "Makefile.*" | while read file
sed -i '/dotty/d;/lefty/d;/circo/d;/fdp/d;/gv2gxl/d;/neato\.1/d;/twopi/d;/\/graph/d' doc/index.html
do
sed -i '/(PS2PDF)/d' $file
sed -i 's|psfile=$${pdffile%pdf}ps; ||' $file
sed -i 's|$(GROFF) -Tps.*$|sed "s^.PP^^;s^\.SH^\\n\&^" $< \| $(GROFF) -man -Tpdf -fH -rS10 -rIN=4n -dpaper='"$PS"' -P-p'"$PS"' > $$pdffile|' $file
done
#
## the pdfs are installed in the same directory as index.html
sed -i 's|../doc/||;s|../pdf/||' doc/index.html
## add the cgraph tutorial
sed -i 's|libguide.*$|&\n <li><a href="Agraph.pdf">cgraph tutorial</a>|' doc/index.html
sed -i 's|libguide.*$|&\n <li><a href="Agraph.pdf">cgraph tutorial</a>|' doc/index.html
## these don't exist
sed -i '/dotty/d;/lefty/d;/circo/d;/fdp/d;/gv2gxl/d;/neato\.1/d;/twopi/d;/>graph/d;/tkspline/d' doc/index.html
listdocs_fn
listdocs_fn
@ -96,16 +100,19 @@ chown_fn
cd_builddir_fn
cd_builddir_fn
PRFX=/usr/local
## build machine id is based on config.sub which doesn't work for a 32bit os/64bit kernel combination
[[ $(getconf LONG_BIT) == 32 && $(uname -m) == *64 ]] && BLD=--build=i586-pc-linux-gnu
CFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
CC=$COMPILER \
CC=$COMPILER \
CXX=$COMPILER_CXX \
CXX=$COMPILER_CXX \
../configure \
../configure \
--prefix=/usr \
--prefix=$PRFX \
--libdir=/usr/lib$LIBDIRSUFFIX \
--libdir=$PRFX/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--mandir=$PRFX/man \
--enable-man-pdfs=no \
--enable-ocaml=no ${BLD:-}
--enable-ocaml=no
make_fn
make_fn
@ -122,20 +129,20 @@ cat << EOF > $PKG/etc/php.d/graphviz.ini.new
; In case you still prefer to use the wrapper class you have to
; In case you still prefer to use the wrapper class you have to
; include it using its absolute path:
; include it using its absolute path:
; <?php
; <?php
; include ('/usr /lib$LIBDIRSUFFIX/graphviz/php/gv.php');
; include ('$PRFX /lib$LIBDIRSUFFIX/graphviz/php/gv.php');
; ?>
; ?>
EOF
EOF
# Remove empty directories of language bindings that are absent.
# Remove empty directories of language bindings that are absent.
find $PKG/usr /lib$LIBDIRSUFFIX/graphviz -depth -type d -empty -exec rmdir {} \;
find $PKG$PRFX /lib$LIBDIRSUFFIX/graphviz -depth -type d -empty -exec rmdir {} \;
# Configure plugins
# Configure plugins
# (writes $PKG/usr /lib$LIBDIRSUFFIX/graphviz/config6 with available plugin information)
# (writes $PKG$PRFX /lib$LIBDIRSUFFIX/graphviz/config6 with available plugin information)
LD_LIBRARY_PATH=$PKG/usr/lib$LIBDIRSUFFIX $PKG/usr /bin/dot -c
LD_LIBRARY_PATH=$PKG$PRFX/lib$LIBDIRSUFFIX $PKG$PRFX /bin/dot -c
installdocs_fn
installdocs_fn
INSTALL_TDE=/usr
INSTALL_TDE=$PRFX
mangzip_fn
mangzip_fn
strip_fn
strip_fn
@ -175,10 +182,9 @@ $PRGNAM: It has several main graph layout programs. It also has
$PRGNAM: web and interactive graphical interfaces, and auxiliary
$PRGNAM: web and interactive graphical interfaces, and auxiliary
$PRGNAM: tools, libraries, and language bindings.
$PRGNAM: tools, libraries, and language bindings.
$PRGNAM:
$PRGNAM:
$PRGNAM: Homepage: graphviz.org
$PRGNAM: Documentation: $PRFX/share/doc/graphviz/index.html
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM:
$PRGNAM: Homepage: graphviz.org
$PRGNAM:
$PRGNAM:
" > $PKG/install/slack-desc
" > $PKG/install/slack-desc