Subject: | Graphviz 2.12 installed but Makefile.PL won't accept |
When a Graphviz version greater than 2.9 is installed (e.g., 2.12),
Makefile.PL wrongly asserts that the Graphviz is not greater than 2.2. A
patch to fix the problem is attached.
Subject: | gds.patch |
--- Makefile.PL.orig 2007-07-10 17:03:07.000000000 -0700
+++ Makefile.PL 2007-07-10 17:11:01.000000000 -0700
@@ -8,8 +8,10 @@
die "You must install the graphviz package (http://www.graphviz.org) before using this module.\n";
}
else {
- my ($v) = ($dot_version =~ /dot version (.*?) /);
- die "You must have at least version 2.2 of dot to use this module" if ($v+0 < 2.2);
+ my (@v) = ($dot_version =~ /dot (?:- Graphviz) version (\d+)\.(\d+) /);
+ 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])";
+ }
}
WriteMakefile(