Browse Source

ap/graphviz: Updated for Slackware64-14.2.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
c29e53fe06
  1. 18
      ap/graphviz/graphviz-2.38.0-ghostscript-9.19.patch
  2. 9
      ap/graphviz/graphviz.SlackBuild

18
ap/graphviz/graphviz-2.38.0-ghostscript-9.19.patch

@ -0,0 +1,18 @@
diff -Naur graphviz-2.38.0.orig/plugin/gs/gvloadimage_gs.c graphviz-2.38.0/plugin/gs/gvloadimage_gs.c
--- graphviz-2.38.0.orig/plugin/gs/gvloadimage_gs.c 2014-04-13 22:40:25.000000000 +0200
+++ graphviz-2.38.0/plugin/gs/gvloadimage_gs.c 2016-07-24 10:48:20.611298993 +0200
@@ -72,11 +72,11 @@
assert (err < 0);
- if (err >= e_VMerror)
+ if (err >= gs_error_VMerror)
errsrc = "PostScript Level 1";
- else if (err >= e_unregistered)
+ else if (err >= gs_error_unregistered)
errsrc = "PostScript Level 2";
- else if (err >= e_invalidid)
+ else if (err >= gs_error_invalidid)
errsrc = "DPS error";
else
errsrc = "Ghostscript internal error";

9
ap/graphviz/graphviz.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010,2012,2013,2015 Damien Goutte-Gattat
# Copyright (C) 2009,2010,2012,2013,2015,2016 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -33,7 +33,7 @@ WGET=${WGET:-http://www.graphviz.org/pub/graphviz/stable/SOURCES/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-graphviz}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -84,6 +84,8 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Adapt to changes in Ghostscript headers
patch -p 1 < $CWD/graphviz-2.38.0-ghostscript-9.19.patch
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -94,7 +96,8 @@ CXXFLAGS=$CPUOPT \
--disable-static \
--enable-ltdl \
--disable-ocaml \
--disable-php
--disable-php \
--disable-lua
make -j $JOBS
make install-strip DESTDIR=$PKG

Loading…
Cancel
Save