1. Audrius Kažukauskas
  2. slackbuilds

Commits

Audrius Kažukauskas  committed a79ce6f

graphics/graphviz: Update for version 2.30.0.

  • Participants
  • Parent commits 5a035a8
  • Branches default

Comments (0)

Files changed (4)

File graphics/graphviz/graphviz.SlackBuild

View file
  • Ignore whitespace
 
 # Slackware build script for graphviz
 
-# Written by Audrius Kažukauskas <audrius@neutrino.lt>
-# Modified by Robby Workman <rworkman@slackbuilds.org>
-# Modified by Heinz Wiesinger <pprkut@slackbuilds.org>
+
+# Copyright 2007 Robby Workman <rworkman@slackbuilds.org>
+# Copyright 2011 Heinz Wiesinger <pprkut@slackbuilds.org>
+# Copyright 2013 Audrius Kažukauskas <audrius@neutrino.lt>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
+#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 PRGNAM=graphviz
-VERSION=${VERSION:-2.28.0}
+VERSION=${VERSION:-2.30.0}
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
 # Install PHP bindings to proper location.
 sed -i 's|/php/modules|/php/extensions|' configure
 
+# Fix for php-5.4
+patch -p1 < $CWD/php_5.4_compat.patch
+
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
 make install-strip DESTDIR=$PKG
 
 # Install config file for PHP.
-install -D -m 644 $CWD/graphviz.ini $PKG/etc/php/graphviz.ini.new
+install -D -m 0644 $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

File graphics/graphviz/graphviz.info

View file
  • Ignore whitespace
 PRGNAM="graphviz"
-VERSION="2.28.0"
+VERSION="2.30.0"
 HOMEPAGE="http://graphviz.org/"
-DOWNLOAD="http://graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.28.0.tar.gz"
-MD5SUM="8d26c1171f30ca3b1dc1b429f7937e58"
+DOWNLOAD="http://graphviz.org/pub/graphviz/stable/SOURCES/graphviz-2.30.0.tar.gz"
+MD5SUM="967ad0a3d2bf164082e076c4416ede95"
 DOWNLOAD_x86_64=""
 MD5SUM_x86_64=""
+REQUIRES=""
 MAINTAINER="Audrius Kažukauskas"
 EMAIL="audrius@neutrino.lt"

File graphics/graphviz/php_5.4_compat.patch

View file
  • Ignore whitespace
+diff -Naur graphviz-2.28.0.orig/tclpkg/gv/gv_php_init.c graphviz-2.28.0/tclpkg/gv/gv_php_init.c
+--- graphviz-2.28.0.orig/tclpkg/gv/gv_php_init.c	2011-01-25 17:30:51.000000000 +0100
++++ graphviz-2.28.0/tclpkg/gv/gv_php_init.c	2012-05-30 04:10:40.657221055 +0200
+@@ -19,11 +19,13 @@
+ 
+ static size_t gv_string_writer (GVJ_t *job, const char *s, size_t len)
+ {
++    TSRMLS_FETCH();
+     return PHPWRITE(s, len);
+ }
+ 
+ static size_t gv_channel_writer (GVJ_t *job, const char *s, size_t len)
+ {
++    TSRMLS_FETCH();
+     return PHPWRITE(s, len);
+ }
+ 

File graphics/graphviz/slack-desc

View file
  • Ignore whitespace
 # HOW TO EDIT THIS FILE:
-# The "handy ruler" below makes it easier to edit a package description.  Line
-# up the first '|' above the ':' following the base package name, and the '|'
-# on the right side marks the last column you can put a character in.  You must
-# make exactly 11 lines for the formatting to be correct.  It's also
-# customary to leave one space after the ':'.
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct.  It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
 
         |-----handy-ruler------------------------------------------------------|
 graphviz: Graphviz (Graph Visualization)