Browse Source

ap/graphviz: Upgraded to graphviz-2.40.1.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
cff611421a
  1. 18
      ap/graphviz/graphviz-2.38.0-ghostscript-9.19.patch
  2. 1
      ap/graphviz/graphviz-2.38.0.tar.gz.sha1
  3. 1
      ap/graphviz/graphviz-2.40.1.tar.gz.sha256
  4. 14
      ap/graphviz/graphviz.SlackBuild

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

@ -1,18 +0,0 @@
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";

1
ap/graphviz/graphviz-2.38.0.tar.gz.sha1

@ -1 +0,0 @@
053c771278909160916ca5464a0a98ebf034c6ef graphviz-2.38.0.tar.gz

1
ap/graphviz/graphviz-2.40.1.tar.gz.sha256

@ -0,0 +1 @@
ca5218fade0204d59947126c38439f432853543b0818d9d728c589dfe7f3a421 graphviz-2.40.1.tar.gz

14
ap/graphviz/graphviz.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010,2012,2013,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2009,2010,2012,2013,2015-2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,13 +27,13 @@
# Source package infos
NAMESRC=${NAMESRC:-graphviz}
VERSION=${VERSION:-2.38.0}
VERSION=${VERSION:-2.40.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://www.graphviz.org/pub/graphviz/stable/SOURCES/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-graphviz}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -76,7 +76,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -84,8 +84,6 @@ 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 \
@ -96,8 +94,8 @@ CXXFLAGS=$CPUOPT \
--disable-static \
--enable-ltdl \
--disable-ocaml \
--disable-php \
--disable-lua
--disable-lua \
--disable-php
make -j $JOBS
make install-strip DESTDIR=$PKG

Loading…
Cancel
Save