graphics/dia: Build HTML documentation.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Philip Lacroix 2015-10-11 14:50:22 +07:00 committed by Willy Sudiarto Raharjo
parent 2a9889a9b5
commit 5772615d86
2 changed files with 43 additions and 1 deletions

View file

@ -0,0 +1,26 @@
diff -u a/configure.in b/configure.in
--- a/configure.in 2015-10-10 20:23:14.257728818 +0200
+++ b/configure.in 2015-10-10 20:23:44.512728478 +0200
@@ -532,10 +532,10 @@
AM_CONDITIONAL(WITH_JW, test "xno" != "xno")
fi
hardbook_ok=no
-xsltproc_ok=no
+xsltproc_ok=yes
if test "x$with_hardbooks" = "xno"; then
AM_CONDITIONAL(WITH_JW, test "xno" != "xno")
- AM_CONDITIONAL(WITH_HTMLDOC, test "xno" != "xno")
+ AM_CONDITIONAL(WITH_HTMLDOC, test "x$xsltproc" != "xno")
AM_CONDITIONAL(WITH_PDFDOC, test "xno" != "xno")
AM_CONDITIONAL(WITH_PSDOC, test "xno" != "xno")
else
@@ -549,9 +549,6 @@
hardbook_ok=yes
fi
fi
- if test "x$xsltproc" != "xno" ; then
- xsltproc_ok=yes
- fi
fi

View file

@ -5,11 +5,19 @@
# Originally written by Matt Hayes <dominian at slackadelic dot com> # Originally written by Matt Hayes <dominian at slackadelic dot com>
# Updated for 64bit by Ash Wiren <ash at spooksoftware dot com> (19.08.2009) # Updated for 64bit by Ash Wiren <ash at spooksoftware dot com> (19.08.2009)
# Maintained by Dugan Chen <thedoogster at gmail dot com> (<= 18.09.2015) # Maintained by Dugan Chen <thedoogster at gmail dot com> (<= 18.09.2015)
#
# Updated and currently maintained by Philip Lacroix <slackph at posteo dot de> # Updated and currently maintained by Philip Lacroix <slackph at posteo dot de>
#
# 19.09.2015:
# - reviewed and updated for dia 0.97.3.
# 10.10.2015:
# - enabled HTML documentation (based on patch by Mike Gorse, SUSE);
# - enabled python and cairo plug-ins, SWIG;
# - disabled gnome code (deprecated).
PRGNAM=dia PRGNAM=dia
VERSION=${VERSION:-0.97.3} VERSION=${VERSION:-0.97.3}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -55,6 +63,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Enable HTML documentation, necessary for online help functionality.
patch configure.in < $CWD/dia-enable-html-docs.patch
autoreconf -fi autoreconf -fi
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
@ -64,6 +75,11 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \ --mandir=/usr/man \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--docdir=/usr/doc/$PRGNAM-$VERSION \ --docdir=/usr/doc/$PRGNAM-$VERSION \
--with-swig \
--with-cairo \
--with-python \
--disable-gnome \
--disable-static \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make