diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2013-11-11 17:08:48 +0100 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-11 10:58:08 -0600 |
commit | ab0a12d213fc6a4c7731941be5893bd1ca217291 (patch) | |
tree | eb90d277a6d8de0eeea0d827eb9a4e901a6fd809 | |
parent | 105dd168d1d21e498d5b12cc4bef4f22ad18ba58 (diff) | |
download | slackbuilds-ab0a12d213fc6a4c7731941be5893bd1ca217291.tar.gz |
graphics/graphviz: Fixed handling of LIBDIRSUFFIX in graphviz.ini.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | graphics/graphviz/graphviz.SlackBuild | 5 | ||||
-rw-r--r-- | graphics/graphviz/graphviz.ini | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/graphics/graphviz/graphviz.SlackBuild b/graphics/graphviz/graphviz.SlackBuild index 6da583c016..f53dfa164d 100644 --- a/graphics/graphviz/graphviz.SlackBuild +++ b/graphics/graphviz/graphviz.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=graphviz VERSION=${VERSION:-2.30.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -87,7 +87,8 @@ make make install-strip DESTDIR=$PKG # Install config file for PHP. -install -D -m 0644 $CWD/graphviz.ini $PKG/etc/php/graphviz.ini.new +mkdir -p $PKG/etc/php +sed "s|@LIBDIRSUFFIX@|$LIBDIRSUFFIX|" $CWD/graphviz.ini > $PKG/etc/php/graphviz.ini.new find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done diff --git a/graphics/graphviz/graphviz.ini b/graphics/graphviz/graphviz.ini index 6561f21010..86c17067c5 100644 --- a/graphics/graphviz/graphviz.ini +++ b/graphics/graphviz/graphviz.ini @@ -8,5 +8,5 @@ ; In case you still prefer to use the wrapper class you have to ; include it using its absolute path: ; <?php -; include ('/usr/lib/graphviz/php/gv.php'); +; include ('/usr/lib@LIBDIRSUFFIX@/graphviz/php/gv.php'); ; ?> |