浏览代码

fix building under with_perl=yes

Ralf S. Engelschall 16 年之前
父节点
当前提交
a7a38a9824
共有 2 个文件被更改,包括 14 次插入1 次删除
  1. 12 0
      graphviz/graphviz.patch
  2. 2 1
      graphviz/graphviz.spec

+ 12 - 0
graphviz/graphviz.patch

@@ -82,3 +82,15 @@ Index: plugin/gd/gvtextlayout_gd.c
  #if defined(HAVE_LIBGD) && defined(HAVE_GD_FREETYPE)
  
  /* fontsize at which text is omitted entirely */
+Index: GraphViz-Data-Structure-0.17/Makefile.PL
+--- GraphViz-Data-Structure-0.17/Makefile.PL.orig	2007-09-13 20:17:00 +0200
++++ GraphViz-Data-Structure-0.17/Makefile.PL	2009-03-12 17:36:27 +0100
+@@ -8,7 +8,7 @@
+   die "You must install the graphviz package (http://www.graphviz.org) before using this module.\n";
+ }
+ else {
+-  my (@v) = ($dot_version =~ /dot (?:- Graphviz )?version (\d+)\.(\d+)/);
++  my (@v) = ($dot_version =~ /dot (?:- Graphviz )?version (\d+)\.(\d+)/i);
+   if ( $v[0] < 2 || $v[1] < 2 ) {
+     die "You must have at least version 2.2 of dot to use this module (found $v[0].$v[1])";
+   }

+ 2 - 1
graphviz/graphviz.spec

@@ -37,7 +37,7 @@ Class:        BASE
 Group:        Diagram
 License:      GPL
 Version:      %{V_graphviz}
-Release:      20090311
+Release:      20090312
 
 #   package options
 %option       with_x11   no
@@ -163,6 +163,7 @@ AutoReqProv:  no
 %if "%{with_perl}" == "yes"
     #   build Perl API
     %{l_prefix}/bin/perl-openpkg prepare
+    ln cmd/dot/dot_static cmd/dot/dot
     PATH="`pwd`/cmd/dot:$PATH"
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build
     %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build