Hello community,
here is the log from the commit of package perl-GraphViz for openSUSE:Factory checked in at 2014-05-13 20:46:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-GraphViz (Old)
and /work/SRC/openSUSE:Factory/.perl-GraphViz.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-GraphViz"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-GraphViz/perl-GraphViz.changes 2011-11-21 12:40:46.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-GraphViz.new/perl-GraphViz.changes 2014-05-13 20:46:47.000000000 +0200
@@ -1,0 +2,15 @@
+Mon May 12 08:09:52 UTC 2014 - vcizek@suse.com
+
+- update to 2.15
+ * fixes build on Factory
+ * changes:
+ - Fix double-quote escaping bug in GraphViz's _attributes() method. See RT#90528.
+ - Patch t/foo.t to not assume text appears on specific lines of the output test files.
+ - Re-package distro because users get errors during testing. See RT#80709.
+ - For pre-reqs such as strict, warnings, etc, which ship with Perl, set the version # to 0.
+ Reported as RT#80663 by Father Chrysostomos for Tree::DAG_Node.
+ - Add VDX as an output format.
+ - Accept a patch kindly supplied by Alexander Kriegisch, to change handling of the rankdir attribute.
+ - Patch this file to replace BST with GMT, since both DateTime::Format::HTTP and DateTime::Format::Strptime
+
+-------------------------------------------------------------------
Old:
----
GraphViz-2.08.tgz
New:
----
GraphViz-2.15.tgz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-GraphViz.spec ++++++
--- /var/tmp/diff_new_pack.M1GtEe/_old 2014-05-13 20:46:48.000000000 +0200
+++ /var/tmp/diff_new_pack.M1GtEe/_new 2014-05-13 20:46:48.000000000 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-GraphViz
#
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,15 +16,14 @@
#
-
Name: perl-GraphViz
-Version: 2.08
-Release: 1
-License: GPL-1.0+ or Artistic-1.0
+Version: 2.15
+Release: 0
%define cpan_name GraphViz
Summary: Interface to AT&T's GraphViz. Deprecated. See GraphViz2
-Url: http://search.cpan.org/dist/GraphViz/
+License: GPL-1.0+ or Artistic-1.0
Group: Development/Libraries/Perl
+Url: http://search.cpan.org/dist/GraphViz/
Source: http://www.cpan.org/authors/id/R/RS/RSAVAGE/%{cpan_name}-%{version}.tgz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -44,11 +43,15 @@
Requires: perl(Parse::RecDescent) >= 1.965001
Requires: perl(XML::Twig) >= 3.38
Requires: perl(XML::XPath) >= 1.13
+
%{perl_requires}
# MANUAL BEGIN
BuildRequires: graphviz
# graphviz-gnome is required so that dot -Tpng works.
-Requires: graphviz graphviz-gnome pango cairo
+Requires: cairo
+Requires: graphviz
+Requires: graphviz-gnome
+Requires: pango
# MANUAL END
%description
@@ -77,6 +80,6 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changelog.ini CHANGES examples README
+%doc Changelog.ini examples README
%changelog
++++++ GraphViz-2.08.tgz -> GraphViz-2.15.tgz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/Build.PL new/GraphViz-2.15/Build.PL
--- old/GraphViz-2.08/Build.PL 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/Build.PL 2013-11-28 01:49:12.000000000 +0100
@@ -1,49 +1,50 @@
-use Module::Build;
+use strict;
+use warnings;
-eval "require File::Which";
+use Module::Build;
-if ($@)
+if (open my $fh, '|dot', )
{
- die "Error: GraphViz requires File::Which to run Build.PL and Makefile.PL. \n";
+ close $fh;
}
-
-if (! File::Which::which('dot') )
+else
{
- die "Error: Did not find 'dot'. Please install graphviz from http://www.graphviz.org/";
+ die "Please install Graphviz from http://www.graphviz.org/.\n";
}
Module::Build -> new
(
- module_name => 'GraphViz',
- license => 'perl',
- dist_abstract => 'Interface to the GraphViz graphing tool',
- dist_author => 'Leon Brocard ',
- build_requires =>
- {
- Test::More => 0.47,
- Test::Pod => 1.44,
- },
- configure_requires =>
- {
- Module::Build => 0.3800,
- },
- requires =>
- {
- Carp => 1.01,
- Config => 0,
- File::Which => 1.09,
- Getopt::Long => 2.34,
- IO::Dir => 1.04,
- IO::File => 1.10,
- IPC::Run => 0.6,
- LWP::Simple => 6.00,
- Parse::RecDescent => 1.965001,
- Pod::Usage => 1.16,
- strict => 1.03,
- Time::HiRes => 1.51,
- vars => 1.01,
- warnings => 1.03,
- XML::Twig => 3.38,
- XML::XPath => 1.13,
- },
+ module_name => 'GraphViz',
+ license => 'artistic_2',
+ dist_abstract => "Interface to AT&T's GraphViz. Deprecated. See GraphViz2",
+ dist_author => 'Leon Brocard ',
+ build_requires =>
+ {
+ 'Test::More' => 0.47,
+# 'Test::Pod' => 1.45, # Make it optional. See t/pod.t
+ },
+ configure_requires =>
+ {
+ 'Module::Build' => 0.3800,
+ },
+ requires =>
+ {
+ 'Carp' => 1.01,
+ 'Config' => 0,
+ 'File::Which' => 1.09,
+ 'Getopt::Long' => 2.34,
+ 'IO::Dir' => 1.04,
+ 'IO::File' => 1.10,
+ 'IPC::Run' => 0.6,
+ 'lib' => 0,
+ 'LWP::Simple' => 6.00,
+ 'Parse::RecDescent' => 1.965001,
+ 'Pod::Usage' => 1.16,
+ 'strict' => 0,
+ 'Time::HiRes' => 1.51,
+ 'vars' => 0,
+ 'warnings' => 0,
+ 'XML::Twig' => 3.38,
+ 'XML::XPath' => 1.13,
+ },
) -> create_build_script();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/CHANGES new/GraphViz-2.15/CHANGES
--- old/GraphViz-2.08/CHANGES 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/CHANGES 1970-01-01 01:00:00.000000000 +0100
@@ -1,226 +0,0 @@
-Revision history for Perl module GraphViz.
-
-2.08 Tue Nov 1 10:55:00 2011
- - Wind back pre-reqs for various modules to match what was shipped with Perl V 5.8.1.
- Many thanx to Brian Cassidy for the error report: https://rt.cpan.org/Ticket/Display.html?id=72068.
-
-2.07 Sun Oct 30 16:08:00 2011
- - Rewrite Build.PL and Makefile.PL to try loading File::Which rather than assuming it is installed.
- This avoids the chicken-and-egg problem whereby these 2 programs need File::Which::which to find 'dot'.
- Many thanx to Richard Clamp for the error report: https://rt.cpan.org/Public/Bug/Display.html?id=71971.
-
-2.06 Tue Oct 25 08:09:00 2011
- - Add File::Which to the pre-reqs in Build.PL and Makefile.PL.
-
-2.05 Thu Oct 20 10:52:00 2011
- - Add 'Deprecated. See GraphViz2' to the docs.
- - Add Build.PL.
- - Add ability to set ORIENTATION. Thanx to Christian Lackas for the patch. See RT#71787.
- - Add Changelog.ini.
- - Add META.json, MYMETA.json and MYMETA.yml.
- - Add MANIFEST.SKIP.
- - Ensure all modules contain a version number.
- - Update the docs regarding the list of modules shipped in this distro.
- - Remove examples/remote.pl because GraphViz::Remote is no longer shipped.
- - Clean up examples/clusters2.pl.
- - Clean up Makefile.PL.
-
-2.04 Fri Dec 12 21:31:24 GMT 2008
- - perltidy everything
- - add human- and machine-readable license
- - add use warnings
-
-2.03 Sun Nov 18 14:40:20 GMT 2007
- - make the graph name configurable (patch by Ruslan Zakirov)
-
-2.02 Fri Jan 7 18:51:06 GMT 2005
- - remove dependencies on Graph and Math::Bezier
- - make GraphViz HTML-Like labels work (spotted by Patrice Dehais)
- - updated (including much documentation) to support newer additions
- to the dot language (by Max Baker)
- - new test which tests the POD
-
-2.01 Fri Sep 24 17:02:29 BST 2004
- - no longer *always* quote the label in add_node() in order to
- let GraphViz::Data::Structure work again (sorry)
-
-2.00 Wed Aug 25 16:30:53 BST 2004
- - thanks to Ron Savage, patched to work under systems
- which have an executable extension, such as Windows
-
-1.9 Tue Aug 24 15:30:31 BST 2004
- - check for "dot" in the Makefile.PL instead of a test, as
- suggested by Autrijus Tang
- - renamed Changes to CHANGES
- - clusters can now take attributes as a hashref, thanks to
- patch from Richard A.Wells (see clusters2.pl)
- - fix docbug in GraphViz::Parse::Yapp (spotted by Mark Fowler)
- - better quoting (patch by Barrie Slaymaker)
- - document as_debug (suggested by Richard Clamp)
-
-1.8 Sun Feb 23 09:15:14 GMT 2003
- - support for client-side image maps by Dan Boorstein
-
-1.7 Sun Jan 19 21:55:14 GMT 2003
- - quote bgcolor so that HSV works
-
-1.6 Sat Jan 18 15:47:26 GMT 2003
- - moved tests to Test::More
- - new test which checks if graphviz is installed
- - new 'layout' graph attribute to support twopi - you
- may have to change your programs!
- - new bgcolor graph attribute (idea by Scott Murman)
- - labels named "graph" now work
-
-1.5 Sun Jan 13 16:59:14 GMT 2002
- - updated code reference docs slightly
- - removed GraphViz::Remote as it was no longer working
- - new no_overlap graph attribute which tells the graph solver
- to not overlap the nodes (idea by Chris Ball)
- - added patches by Barrie Slaymaker to make GraphViz
- work under Win32!
- - this is the Flight 63 edition
-
-1.4 Wed Oct 3 07:57:42 BST 2001
- - added new filehandle, scalar reference, and code reference
- scheme to as_* to allow streaming of data, rather than
- accumulating potentially very large output in memory (based
- on patch by Dave Rolsky)
- - new pagewidth and pageheight graph attributes for creating
- PostScript mosaics of large graphs (idea by Nelson Loyola)
-
-1.3 Sun Aug 19 15:43:02 BST 2001
- - labels can now contain quotes
- - fixed bug: labels can now start with a number
- - fixed bug in Devel::GraphVizProf so that packages
- are now grouped seperately (lines with the same text used to
- be grouped together)
- - fixed undefined warning in GraphViz::Parse::RecDescent
- - increased coverage of tests
- - new 'rank' node attribute allows nodes to be ranked
- at the same level
- - make empty cluster names do nothing (patch by Barrie
- Slaymaker)
-
-1.2 Fri Aug 10 18:54:21 BST 2001
- - removed the images in the examples directory and added
- a file (make_all.pl) to, errr, make all the images
- - This is the HAL2001 edition
-
-1.1 Tue Jul 24 23:54:42 BST 2001
- - added extra parameter to as_* to allow easy saving of
- images: $graph->as_png("pretty.png")
- - added new GraphViz::Parse::Yapp module to visualise
- Parse::Yapp grammars
- - added new GraphViz::Parse::Yacc module to visualise
- Parse::Yacc grammars
- - This is the TPC5 edition
-
-1.00 Thu Jun 14 15:10:28 BST 2001
- - finally released as version 1.00!
- - added a reference to brian d foy's DDJ article on
- Devel::GraphVizProf
- - put the entire Perl regular expression test suite through
- GraphViz::Regex and fixed all the bugs
- - no longer sort nodes by default (idea by Stephen Riehm),
- which makes graphs just work better. Not documented, do
- you want it to be?
-
-0.14 Thu May 3 17:57:57 BST 2001
- - added support for InterpLit node in RecDescent grammars
- - added cumulative effect for node attributes (patch by Diego
- Zamboni)
- - changed the quoting rules again to make it easier to read
- the dot files (idea by Diego Zamboni)
- - make add_edge() automatically add any nodes specified for
- the edge that have not been previously added to stop the
- Graph module complaining (patch by Diego Zamboni)
- - new 'node', 'edge', and 'graph' graph attributes to specify
- global node, edge, and graph attributes (patch by Diego
- Zamboni)
- - removed t/regex.t and documented that GraphViz::Regex may
- not work on various perls
- - added GraphViz::Regex_YAPE module, another way to graph
- a regular expression
-
-0.13 Mon Mar 19 19:31:18 GMT 2001
- - removed 'use warnings' as suggested by David Adler so we
- no longer require Perl 5.6
- - moved all modules into a new 'lib' directory (and updated
- examples) so that Devel::GraphVizProf gets installed
- - new 'concentrate' graph attribute to merge edges in
- cluttered directed graphs
- - new 'random_start' graph attribute, which requests an
- initial random placement for the graph
- - new 'epsilon' graph attribute, which decides how long the
- graph solver tries before finding a graph layout, requested
- by Pierre-Yves Genot
- - an empty cluster now means not clustered
- - added GraphViz::Regex and example regexp.pl which visualises
- a regular expression
- - now an award-winning module!
-
-0.12
- - fixed bug in redcarpet.pl example
- - new rankdir graph attribute, which controls the direction
- the nodes are linked together (patch by Mark Fowler)
- - new 'width' and 'height' graph attributes control the size
- of the bounding box of the drawing in inches, requested by
- Pierre-Yves Genot
-
-0.11 Tue Mar 6 17:37:20 GMT 2001
- - rearranged module naming: Data::GraphViz ->
- GraphViz::Data::Dumper, Parse::RecDescent::GraphViz ->
- GraphViz::Parse::RecDescent, XML::GraphViz -> GraphViz::XML,
- - added GraphViz::Remote so that you do not need to install
- the graphviz tools to use this module
-
-0.10 Mon Mar 5 17:32:14 GMT 2001
- - now allow simple add_edge({$from => $to}) syntax
- (idea by DJ Adams and Brian Ingerson)
- - much better documentation (especially on attributes)
- - new module Parse::RecDescent::GraphViz (and example) for
- graphing Parse::RecDescent grammars (idea by Damian Conway)
- - new module XML::GraphViz (and example) for graphing XML
- - new module Data::GraphViz (and example) for graphing data
- structures
- - new example ppmgraph.pl by Marcel Grunauer which graphs CPAN
- tarball dependencies using ActiveState's package list (thanks
- to Brian Ingerson too ;-)
- - new, better, testsuite
- - better quoting (especially in ports) to allow a greater range
- of characters
- - new undocumented (it may change) as_graph method, which
- returns a graph object with the coordinates of nodes and edges
-
-0.09 Fri Jan 12 15:50:17 GMT 2001
- - moved back to "dot" and "neato" from "dotneato"
- - now allow directed and undirected graphs
- - added GraphViz::No and GraphViz::Small subclasses
- which aid in visualising the structure of large
- graphs
-
-0.08 Sun Dec 3 15:15:29 GMT 2000
- - minor patch to cope with DESTROY
-
-0.07 Sun Oct 1 15:19:55 2000
- - new features: allows clusters and ports
- - includes the talk I gave on this at yapc::Europe 19100
- - many more examples (well, see the examples directory!),
- including quite a few PNGs
-
-0.06 Thu Aug 24 09:33:21 2000
- - better quoting of nodes and edges (they can now have
- really wierd names)
- - new examples directory with xref.pl: "graphing subroutine
- cross-reference reports for Perl modules" and example graph to
- see what kind of things it can do
-
-0.05 Wed Aug 18 13:12:25 2000
- - now use dotneato to layout the graphs and can now ouput in a
- variety of file formats
-
-0.04 Wed Aug 9 16:14:35 2000
- - first released version
-
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/Changelog.ini new/GraphViz-2.15/Changelog.ini
--- old/GraphViz-2.08/Changelog.ini 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/Changelog.ini 2013-11-28 01:49:12.000000000 +0100
@@ -1,7 +1,65 @@
[Module]
Name=GraphViz
-Changelog.Creator=Module::Metadata::Changes V 2.03
-Changelog.Parser=Config::IniFiles V 2.66
+Changelog.Creator=Module::Metadata::Changes V 2.05
+Changelog.Parser=Config::IniFiles V 2.82
+
+[V 2.15]
+Date=2013-11-28T11:23:00
+Comments= <as_png("pretty.png")
- added new GraphViz::Parse::Yapp module to visualise
@@ -135,7 +221,11 @@
- added new GraphViz::Parse::Yacc module to visualise
Parse::Yacc grammars
- This is the TPC5 edition
-1.00 Thu Jun 14 15:10:28 BST 2001
+EOT
+
+[V 1.00]
+Date=2001-06-14T15:10:28
+Comments= <https://rt.cpan.org/Ticket/Display.html?id=72068.
+
+2.07 Sun Oct 30 16:08:00 2011
+ - Rewrite Build.PL and Makefile.PL to try loading File::Which rather than assuming it is installed.
+ This avoids the chicken-and-egg problem whereby these 2 programs need File::Which::which to find 'dot'.
+ Many thanx to Richard Clamp for the error report: https://rt.cpan.org/Public/Bug/Display.html?id=71971.
+
+2.06 Tue Oct 25 08:09:00 2011
+ - Add File::Which to the pre-reqs in Build.PL and Makefile.PL.
+
+2.05 Thu Oct 20 10:52:00 2011
+ - Add 'Deprecated. See GraphViz2' to the docs.
+ - Add Build.PL.
+ - Add ability to set ORIENTATION. Thanx to Christian Lackas for the patch. See RT#71787.
+ - Add Changelog.ini.
+ - Add META.json, MYMETA.json and MYMETA.yml.
+ - Add MANIFEST.SKIP.
+ - Ensure all modules contain a version number.
+ - Update the docs regarding the list of modules shipped in this distro.
+ - Remove examples/remote.pl because GraphViz::Remote is no longer shipped.
+ - Clean up examples/clusters2.pl.
+ - Clean up Makefile.PL.
+
+2.04 Fri Dec 12 21:31:24 GMT 2008
+ - perltidy everything
+ - add human- and machine-readable license
+ - add use warnings
+
+2.03 Sun Nov 18 14:40:20 GMT 2007
+ - make the graph name configurable (patch by Ruslan Zakirov)
+
+2.02 Fri Jan 7 18:51:06 GMT 2005
+ - remove dependencies on Graph and Math::Bezier
+ - make GraphViz HTML-Like labels work (spotted by Patrice Dehais)
+ - updated (including much documentation) to support newer additions
+ to the dot language (by Max Baker)
+ - new test which tests the POD
+
+2.01 Fri Sep 24 17:02:29 GMT 2004
+ - no longer *always* quote the label in add_node() in order to
+ let GraphViz::Data::Structure work again (sorry)
+
+2.00 Wed Aug 25 16:30:53 GMT 2004
+ - thanks to Ron Savage, patched to work under systems
+ which have an executable extension, such as Windows
+
+1.9 Tue Aug 24 15:30:31 GMT 2004
+ - check for "dot" in the Makefile.PL instead of a test, as
+ suggested by Autrijus Tang
+ - renamed Changes to CHANGES
+ - clusters can now take attributes as a hashref, thanks to
+ patch from Richard A.Wells (see clusters2.pl)
+ - fix docbug in GraphViz::Parse::Yapp (spotted by Mark Fowler)
+ - better quoting (patch by Barrie Slaymaker)
+ - document as_debug (suggested by Richard Clamp)
+
+1.8 Sun Feb 23 09:15:14 GMT 2003
+ - support for client-side image maps by Dan Boorstein
+
+1.7 Sun Jan 19 21:55:14 GMT 2003
+ - quote bgcolor so that HSV works
+
+1.6 Sat Jan 18 15:47:26 GMT 2003
+ - moved tests to Test::More
+ - new test which checks if graphviz is installed
+ - new 'layout' graph attribute to support twopi - you
+ may have to change your programs!
+ - new bgcolor graph attribute (idea by Scott Murman)
+ - labels named "graph" now work
+
+1.5 Sun Jan 13 16:59:14 GMT 2002
+ - updated code reference docs slightly
+ - removed GraphViz::Remote as it was no longer working
+ - new no_overlap graph attribute which tells the graph solver
+ to not overlap the nodes (idea by Chris Ball)
+ - added patches by Barrie Slaymaker to make GraphViz
+ work under Win32!
+ - this is the Flight 63 edition
+
+1.4 Wed Oct 3 07:57:42 GMT 2001
+ - added new filehandle, scalar reference, and code reference
+ scheme to as_* to allow streaming of data, rather than
+ accumulating potentially very large output in memory (based
+ on patch by Dave Rolsky)
+ - new pagewidth and pageheight graph attributes for creating
+ PostScript mosaics of large graphs (idea by Nelson Loyola)
+
+1.3 Sun Aug 19 15:43:02 GMT 2001
+ - labels can now contain quotes
+ - fixed bug: labels can now start with a number
+ - fixed bug in Devel::GraphVizProf so that packages
+ are now grouped seperately (lines with the same text used to
+ be grouped together)
+ - fixed undefined warning in GraphViz::Parse::RecDescent
+ - increased coverage of tests
+ - new 'rank' node attribute allows nodes to be ranked
+ at the same level
+ - make empty cluster names do nothing (patch by Barrie
+ Slaymaker)
+
+1.2 Fri Aug 10 18:54:21 GMT 2001
+ - removed the images in the examples directory and added
+ a file (make_all.pl) to, errr, make all the images
+ - This is the HAL2001 edition
+
+1.1 Tue Jul 24 23:54:42 GMT 2001
+ - added extra parameter to as_* to allow easy saving of
+ images: $graph->as_png("pretty.png")
+ - added new GraphViz::Parse::Yapp module to visualise
+ Parse::Yapp grammars
+ - added new GraphViz::Parse::Yacc module to visualise
+ Parse::Yacc grammars
+ - This is the TPC5 edition
+
+1.00 Thu Jun 14 15:10:28 GMT 2001
+ - finally released as version 1.00!
+ - added a reference to brian d foy's DDJ article on
+ Devel::GraphVizProf
+ - put the entire Perl regular expression test suite through
+ GraphViz::Regex and fixed all the bugs
+ - no longer sort nodes by default (idea by Stephen Riehm),
+ which makes graphs just work better. Not documented, do
+ you want it to be?
+
+0.14 Thu May 3 17:57:57 GMT 2001
+ - added support for InterpLit node in RecDescent grammars
+ - added cumulative effect for node attributes (patch by Diego
+ Zamboni)
+ - changed the quoting rules again to make it easier to read
+ the dot files (idea by Diego Zamboni)
+ - make add_edge() automatically add any nodes specified for
+ the edge that have not been previously added to stop the
+ Graph module complaining (patch by Diego Zamboni)
+ - new 'node', 'edge', and 'graph' graph attributes to specify
+ global node, edge, and graph attributes (patch by Diego
+ Zamboni)
+ - removed t/regex.t and documented that GraphViz::Regex may
+ not work on various perls
+ - added GraphViz::Regex_YAPE module, another way to graph
+ a regular expression
+
+0.13 Mon Mar 19 19:31:18 GMT 2001
+ - removed 'use warnings' as suggested by David Adler so we
+ no longer require Perl 5.6
+ - moved all modules into a new 'lib' directory (and updated
+ examples) so that Devel::GraphVizProf gets installed
+ - new 'concentrate' graph attribute to merge edges in
+ cluttered directed graphs
+ - new 'random_start' graph attribute, which requests an
+ initial random placement for the graph
+ - new 'epsilon' graph attribute, which decides how long the
+ graph solver tries before finding a graph layout, requested
+ by Pierre-Yves Genot
+ - an empty cluster now means not clustered
+ - added GraphViz::Regex and example regexp.pl which visualises
+ a regular expression
+ - now an award-winning module!
+
+0.12 Tue Mar 6 17:37:21 GMT 2001
+ - fixed bug in redcarpet.pl example
+ - new rankdir graph attribute, which controls the direction
+ the nodes are linked together (patch by Mark Fowler)
+ - new 'width' and 'height' graph attributes control the size
+ of the bounding box of the drawing in inches, requested by
+ Pierre-Yves Genot
+
+0.11 Tue Mar 6 17:37:20 GMT 2001
+ - rearranged module naming: Data::GraphViz ->
+ GraphViz::Data::Dumper, Parse::RecDescent::GraphViz ->
+ GraphViz::Parse::RecDescent, XML::GraphViz -> GraphViz::XML,
+ - added GraphViz::Remote so that you do not need to install
+ the graphviz tools to use this module
+
+0.10 Mon Mar 5 17:32:14 GMT 2001
+ - now allow simple add_edge({$from => $to}) syntax
+ (idea by DJ Adams and Brian Ingerson)
+ - much better documentation (especially on attributes)
+ - new module Parse::RecDescent::GraphViz (and example) for
+ graphing Parse::RecDescent grammars (idea by Damian Conway)
+ - new module XML::GraphViz (and example) for graphing XML
+ - new module Data::GraphViz (and example) for graphing data
+ structures
+ - new example ppmgraph.pl by Marcel Grunauer which graphs CPAN
+ tarball dependencies using ActiveState's package list (thanks
+ to Brian Ingerson too ;-)
+ - new, better, testsuite
+ - better quoting (especially in ports) to allow a greater range
+ of characters
+ - new undocumented (it may change) as_graph method, which
+ returns a graph object with the coordinates of nodes and edges
+
+0.09 Fri Jan 12 15:50:17 GMT 2001
+ - moved back to "dot" and "neato" from "dotneato"
+ - now allow directed and undirected graphs
+ - added GraphViz::No and GraphViz::Small subclasses
+ which aid in visualising the structure of large
+ graphs
+
+0.08 Sun Dec 3 15:15:29 GMT 2000
+ - minor patch to cope with DESTROY
+
+0.07 Sun Oct 1 15:19:55 2000
+ - new features: allows clusters and ports
+ - includes the talk I gave on this at yapc::Europe 19100
+ - many more examples (well, see the examples directory!),
+ including quite a few PNGs
+
+0.06 Thu Aug 24 09:33:21 2000
+ - better quoting of nodes and edges (they can now have
+ really wierd names)
+ - new examples directory with xref.pl: "graphing subroutine
+ cross-reference reports for Perl modules" and example graph to
+ see what kind of things it can do
+
+0.05 Wed Aug 18 13:12:25 2000
+ - now use dotneato to layout the graphs and can now ouput in a
+ variety of file formats
+
+0.04 Wed Aug 9 16:14:35 2000
+ - first released version
+
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/MANIFEST new/GraphViz-2.15/MANIFEST
--- old/GraphViz-2.08/MANIFEST 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/MANIFEST 2013-11-28 01:49:12.000000000 +0100
@@ -1,6 +1,6 @@
Build.PL
Changelog.ini
-CHANGES
+Changes
examples/clusters.pl
examples/clusters2.pl
examples/directories.pl
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/META.json new/GraphViz-2.15/META.json
--- old/GraphViz-2.08/META.json 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/META.json 2013-11-28 01:49:12.000000000 +0100
@@ -1,12 +1,12 @@
{
- "abstract" : "Interface to the GraphViz graphing tool",
+ "abstract" : "Interface to AT&T's GraphViz. Deprecated. See GraphViz2",
"author" : [
"Leon Brocard "
],
"dynamic_config" : 1,
- "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110930",
+ "generated_by" : "Module::Build version 0.4005, CPAN::Meta::Converter version 2.131560",
"license" : [
- "perl_5"
+ "artistic_2"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
@@ -16,8 +16,7 @@
"prereqs" : {
"build" : {
"requires" : {
- "Test::More" : "0.47",
- "Test::Pod" : "1.44"
+ "Test::More" : "0.47"
}
},
"configure" : {
@@ -28,7 +27,7 @@
"runtime" : {
"requires" : {
"Carp" : "1.01",
- "Config" : 0,
+ "Config" : "0",
"File::Which" : "1.09",
"Getopt::Long" : "2.34",
"IO::Dir" : "1.04",
@@ -40,59 +39,60 @@
"Time::HiRes" : "1.51",
"XML::Twig" : "3.38",
"XML::XPath" : "1.13",
- "strict" : "1.03",
- "vars" : "1.01",
- "warnings" : "1.03"
+ "lib" : "0",
+ "strict" : "0",
+ "vars" : "0",
+ "warnings" : "0"
}
}
},
"provides" : {
"Devel::GraphVizProf" : {
"file" : "lib/Devel/GraphVizProf.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz" : {
"file" : "lib/GraphViz.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::Data::Grapher" : {
"file" : "lib/GraphViz/Data/Grapher.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::No" : {
"file" : "lib/GraphViz/No.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::Parse::RecDescent" : {
"file" : "lib/GraphViz/Parse/RecDescent.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::Parse::Yacc" : {
"file" : "lib/GraphViz/Parse/Yacc.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::Parse::Yapp" : {
"file" : "lib/GraphViz/Parse/Yapp.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::Regex" : {
"file" : "lib/GraphViz/Regex.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::Small" : {
"file" : "lib/GraphViz/Small.pm",
- "version" : "2.08"
+ "version" : "2.15"
},
"GraphViz::XML" : {
"file" : "lib/GraphViz/XML.pm",
- "version" : "2.08"
+ "version" : "2.15"
}
},
"release_status" : "stable",
"resources" : {
"license" : [
- "http://dev.perl.org/licenses/"
+ "http://www.perlfoundation.org/artistic_license_2_0"
]
},
- "version" : "2.08"
+ "version" : "2.15"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/META.yml new/GraphViz-2.15/META.yml
--- old/GraphViz-2.08/META.yml 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/META.yml 2013-11-28 01:49:12.000000000 +0100
@@ -1,15 +1,14 @@
---
-abstract: 'Interface to the GraphViz graphing tool'
+abstract: "Interface to AT&T's GraphViz. Deprecated. See GraphViz2"
author:
- 'Leon Brocard '
build_requires:
Test::More: 0.47
- Test::Pod: 1.44
configure_requires:
Module::Build: 0.38
dynamic_config: 1
-generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110930'
-license: perl
+generated_by: 'Module::Build version 0.4005, CPAN::Meta::Converter version 2.131560'
+license: artistic_2
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
@@ -17,34 +16,34 @@
provides:
Devel::GraphVizProf:
file: lib/Devel/GraphVizProf.pm
- version: 2.08
+ version: 2.15
GraphViz:
file: lib/GraphViz.pm
- version: 2.08
+ version: 2.15
GraphViz::Data::Grapher:
file: lib/GraphViz/Data/Grapher.pm
- version: 2.08
+ version: 2.15
GraphViz::No:
file: lib/GraphViz/No.pm
- version: 2.08
+ version: 2.15
GraphViz::Parse::RecDescent:
file: lib/GraphViz/Parse/RecDescent.pm
- version: 2.08
+ version: 2.15
GraphViz::Parse::Yacc:
file: lib/GraphViz/Parse/Yacc.pm
- version: 2.08
+ version: 2.15
GraphViz::Parse::Yapp:
file: lib/GraphViz/Parse/Yapp.pm
- version: 2.08
+ version: 2.15
GraphViz::Regex:
file: lib/GraphViz/Regex.pm
- version: 2.08
+ version: 2.15
GraphViz::Small:
file: lib/GraphViz/Small.pm
- version: 2.08
+ version: 2.15
GraphViz::XML:
file: lib/GraphViz/XML.pm
- version: 2.08
+ version: 2.15
requires:
Carp: 1.01
Config: 0
@@ -59,9 +58,10 @@
Time::HiRes: 1.51
XML::Twig: 3.38
XML::XPath: 1.13
- strict: 1.03
- vars: 1.01
- warnings: 1.03
+ lib: 0
+ strict: 0
+ vars: 0
+ warnings: 0
resources:
- license: http://dev.perl.org/licenses/
-version: 2.08
+ license: http://www.perlfoundation.org/artistic_license_2_0
+version: 2.15
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/Makefile.PL new/GraphViz-2.15/Makefile.PL
--- old/GraphViz-2.08/Makefile.PL 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/Makefile.PL 2013-11-28 01:49:12.000000000 +0100
@@ -1,52 +1,51 @@
+use strict;
use warnings;
use Config;
use ExtUtils::MakeMaker;
-eval "require File::Which";
-
-if ($@)
+if (open my $fh, '|dot', )
{
- die "Error: GraphViz requires File::Which to run Build.PL and Makefile.PL. \n";
+ close $fh;
}
-
-if (! File::Which::which('dot') )
+else
{
- die "Error: Did not find 'dot'. Please install graphviz from http://www.graphviz.org/";
+ die "Please install Graphviz from http://www.graphviz.org/.\n";
}
WriteMakefile
(
- NAME => 'GraphViz',
- VERSION_FROM => 'lib/GraphViz.pm',
- LICENSE => 'perl',
- AUTHOR => 'Leon Brocard ',
- ABSTRACT => 'Interface to the GraphViz graphing tool',
- PREREQ_PM =>
- {
- Carp => 1.01,
- Config => 0,
- File::Which => 1.09,
- Getopt::Long => 2.34,
- IO::Dir => 1.04,
- IO::File => 1.10,
- IPC::Run => 0.6,
- LWP::Simple => 6.00,
- Parse::RecDescent => 1.965001,
- Pod::Usage => 1.16,
- strict => 1.03,
- Test::More => 0.47,
- Test::Pod => 1.44,
- Time::HiRes => 1.51,
- vars => 1.01,
- warnings => 1.03,
- XML::Twig => 3.38,
- XML::XPath => 1.13,
- },
- dist =>
- {
- COMPRESS => 'gzip -9f',
- SUFFIX => 'gz',
- },
+ NAME => 'GraphViz',
+ VERSION_FROM => 'lib/GraphViz.pm',
+ AUTHOR => 'Leon Brocard ',
+ LICENSE => 'artistic_2',,
+ ABSTRACT => "Interface to AT&T's GraphViz. Deprecated. See GraphViz2",
+ PREREQ_PM =>
+ {
+ 'Carp' => 1.01,
+ 'Config' => 0,
+ 'File::Which' => 1.09,
+ 'Getopt::Long' => 2.34,
+ 'IO::Dir' => 1.04,
+ 'IO::File' => 1.10,
+ 'IPC::Run' => 0.6,
+ 'lib' => 0,
+ 'LWP::Simple' => 6.00,
+ 'Parse::RecDescent' => 1.965001,
+ 'Pod::Usage' => 1.16,
+ 'strict' => 0,
+ 'Test::More' => 0.47,
+# 'Test::Pod' => 1.45, # Make it optional. See t/pod.t
+ 'Time::HiRes' => 1.51,
+ 'vars' => 0,
+ 'warnings' => 0,
+ 'XML::Twig' => 3.38,
+ 'XML::XPath' => 1.13,
+ },
+ dist =>
+ {
+ COMPRESS => 'gzip -9f',
+ SUFFIX => 'gz',
+ },
);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/README new/GraphViz-2.15/README
--- old/GraphViz-2.08/README 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/README 2013-11-28 01:49:12.000000000 +0100
@@ -95,7 +95,7 @@
my $g = GraphViz->new();
my $g = GraphViz->new(directed => 0);
my $g = GraphViz->new(layout => 'neato', ratio => 'compress');
- my $g = GraphViz->new(rankdir => 1);
+ my $g = GraphViz->new(rankdir => 'BT');
my $g = GraphViz->new(width => 8.5, height => 11);
my $g = GraphViz->new(width => 30, height => 20,
pagewidth => 8.5, pageheight => 11);
@@ -125,9 +125,9 @@
undirected graphs (edges do not have arrows).
rankdir
- Another attribute 'rankdir' controls the direction the nodes are
- linked together. If true it will do left->right linking rather than
- the default up-down linking.
+ Another attribute 'rankdir' controls the direction in which the nodes are linked
+ together. The default is 'TB' (arrows from top to bottom). Other legal values
+ are 'BT' (bottom->top), 'LR' (left->right) and 'RL' (right->left).
width, height
The 'width' and 'height' attributes control the size of the bounding
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/Devel/GraphVizProf.pm new/GraphViz-2.15/lib/Devel/GraphVizProf.pm
--- old/GraphViz-2.08/lib/Devel/GraphVizProf.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/Devel/GraphVizProf.pm 2013-11-28 01:49:12.000000000 +0100
@@ -1,6 +1,6 @@
package Devel::GraphVizProf; # To help the CPAN indexer to identify us
-our $VERSION = '2.08';
+our $VERSION = '2.15';
package DB;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/Data/Grapher.pm new/GraphViz-2.15/lib/GraphViz/Data/Grapher.pm
--- old/GraphViz-2.08/lib/GraphViz/Data/Grapher.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/Data/Grapher.pm 2013-11-28 01:49:12.000000000 +0100
@@ -8,7 +8,7 @@
use lib '..';
use GraphViz;
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/No.pm new/GraphViz-2.15/lib/GraphViz/No.pm
--- old/GraphViz-2.08/lib/GraphViz/No.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/No.pm 2013-11-28 01:49:12.000000000 +0100
@@ -7,7 +7,7 @@
@ISA = qw(GraphViz);
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/Parse/RecDescent.pm new/GraphViz-2.15/lib/GraphViz/Parse/RecDescent.pm
--- old/GraphViz-2.08/lib/GraphViz/Parse/RecDescent.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/Parse/RecDescent.pm 2013-11-28 01:49:12.000000000 +0100
@@ -9,7 +9,7 @@
use GraphViz;
use Parse::RecDescent;
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/Parse/Yacc.pm new/GraphViz-2.15/lib/GraphViz/Parse/Yacc.pm
--- old/GraphViz-2.08/lib/GraphViz/Parse/Yacc.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/Parse/Yacc.pm 2013-11-28 01:49:12.000000000 +0100
@@ -8,7 +8,7 @@
use lib '..';
use GraphViz;
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/Parse/Yapp.pm new/GraphViz-2.15/lib/GraphViz/Parse/Yapp.pm
--- old/GraphViz-2.08/lib/GraphViz/Parse/Yapp.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/Parse/Yapp.pm 2013-11-28 01:49:12.000000000 +0100
@@ -8,7 +8,7 @@
use lib '..';
use GraphViz;
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/Regex.pm new/GraphViz-2.15/lib/GraphViz/Regex.pm
--- old/GraphViz-2.08/lib/GraphViz/Regex.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/Regex.pm 2013-11-28 01:49:12.000000000 +0100
@@ -12,7 +12,7 @@
# See perldebguts
-our $VERSION = '2.08';
+our $VERSION = '2.15';
my $DEBUG = 0; # whether debugging statements are shown
@@ -101,7 +101,7 @@
# die "Crap" unless $compiled;
- my $g = GraphViz->new( rankdir => 1 );
+ my $g = GraphViz->new( rankdir => 'LR' );
my %states;
my %following;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/Small.pm new/GraphViz-2.15/lib/GraphViz/Small.pm
--- old/GraphViz-2.08/lib/GraphViz/Small.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/Small.pm 2013-11-28 01:49:12.000000000 +0100
@@ -7,7 +7,7 @@
@ISA = qw(GraphViz);
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz/XML.pm new/GraphViz-2.15/lib/GraphViz/XML.pm
--- old/GraphViz-2.08/lib/GraphViz/XML.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz/XML.pm 2013-11-28 01:49:12.000000000 +0100
@@ -8,7 +8,7 @@
use GraphViz;
use XML::Twig;
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/lib/GraphViz.pm new/GraphViz-2.15/lib/GraphViz.pm
--- old/GraphViz-2.08/lib/GraphViz.pm 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/lib/GraphViz.pm 2013-11-28 01:49:12.000000000 +0100
@@ -8,7 +8,7 @@
use Config;
use IPC::Run qw(run binary);
-our $VERSION = '2.08';
+our $VERSION = '2.15';
=head1 NAME
@@ -147,7 +147,7 @@
my $g = GraphViz->new();
my $g = GraphViz->new(directed => 0);
my $g = GraphViz->new(layout => 'neato', ratio => 'compress');
- my $g = GraphViz->new(rankdir => 1);
+ my $g = GraphViz->new(rankdir => 'BT');
my $g = GraphViz->new(width => 8.5, height => 11);
my $g = GraphViz->new(width => 30, height => 20,
pagewidth => 8.5, pageheight => 11);
@@ -159,7 +159,7 @@
=item layout
The 'layout' attribute determines which layout algorithm GraphViz.pm will
-use. Possible values are:
+use. Possible values are:
=over
@@ -193,9 +193,9 @@
=item rankdir
-Another attribute 'rankdir' controls the direction the nodes are linked
-together. If true it will do left->right linking rather than the
-default up-down linking.
+Another attribute 'rankdir' controls the direction in which the nodes are linked
+together. The default is 'TB' (arrows from top to bottom). Other legal values
+are 'BT' (bottom->top), 'LR' (left->right) and 'RL' (right->left).
=item width, height
@@ -248,13 +248,13 @@
=item true
-(the default) overlaps are retained.
+(the default) overlaps are retained.
=item scale
-overlaps are removed by uniformly scaling in x and y.
+overlaps are removed by uniformly scaling in x and y.
-=item false
+=item false
If the value converts to "false", node overlaps are removed by a Voronoi-based technique.
@@ -269,7 +269,7 @@
which axis is processed first.
B<NOTE>: The methods related to "orthoxy" and "orthoyx" are still evolving. The
-semantics of these may change, or these methods may disappear altogether.
+semantics of these may change, or these methods may disappear altogether.
=item compress
@@ -331,7 +331,7 @@
single page, then size is set to an ``ideal'' value. In particular, the size in
a given dimension will be the smallest integral multiple of the page size in
that dimension which is at least half the current size. The two dimensions are
-then scaled independently to the new size. This feature only works in dot.
+then scaled independently to the new size. This feature only works in dot.
=back
@@ -955,6 +955,12 @@
print $g->as_imap;
+=item as_vdx
+
+Returns a string which contains a VDX-format (Microsoft Visio) file.
+
+ print $g->as_vdx;
+
=item as_vrml
Returns a string which contains a layed-out VRML-format file.
@@ -1021,7 +1027,7 @@
}
if ( $name
- =~ /^as_(ps|hpgl|pcl|mif|pic|gd|gd2|gif|jpeg|png|wbmp|cmapx?|ismap|imap|vrml|vtx|mp|fig|svgz?|dot|canon|plain)$/
+ =~ /^as_(ps|hpgl|pcl|mif|pic|gd|gd2|gif|jpeg|png|wbmp|cmapx?|ismap|imap|vdx|vrml|vtx|mp|fig|svgz?|dot|canon|plain)$/
)
{
my $data = $self->_as_generic( '-T' . $1, $self->_as_debug, $output );
@@ -1047,7 +1053,12 @@
$dot .= $graph_type . " " . $self->{NAME} . " {\n";
# the direction of the graph
- $dot .= "\trankdir=LR;\n" if $self->{RANK_DIR};
+ if ($self->{RANK_DIR}) {
+ $self->{RANK_DIR} = uc $self->{RANK_DIR};
+ my(%valid) = (BT => 1, LR => 1, RL => 1, TB => 1);
+ $self->{RANK_DIR} = 'LR' if (! $valid{$self->{RANK_DIR} });
+ $dot .= "\trankdir=" . $self->{RANK_DIR} . ";\n";
+ }
# the size of the graph
$dot .= "\tsize=\"" . $self->{WIDTH} . "," . $self->{HEIGHT} . "\";\n"
@@ -1272,13 +1283,16 @@
next if $key =~ /^_/;
next if $key =~ /^(to|from|name|cluster|from_port|to_port)$/;
- my $value = $thing->{$key};
- $value =~ s|"|\"|g;
- $value = '"' . $value . '"'
- unless ( $key eq 'label' && $value =~ /^< );
- $value =~ s|\n|\\n|g;
+ my $value = $thing->{$key} || '';
+
+ if ( $key ne 'label' || $value !~ /^< )
+ {
+ $value =~ s|"|\\"|g;
+ $value = '"' . $value . '"'
+ }
+ $value =~ s|\n|\\n|g;
+ $value = '""' if ( ($value eq '') && ($value ne '""') );
- $value = '""' if not defined $value;
push @attributes, "$key=$value";
}
@@ -1289,6 +1303,32 @@
}
}
+=head1 FAQ
+
+=head2 Why do I get error messages like the following?
+
+ Error: <stdin>:1: syntax error near line 1
+ context: digraph >>> Graph <<< {
+
+Graphviz reserves some words as keywords, meaning they can't be used as an ID, e.g. for the name of the graph.
+So, don't do this:
+
+ strict graph graph{...}
+ strict graph Graph{...}
+ strict graph strict{...}
+ etc...
+
+Likewise for non-strict graphs, and digraphs. You can however add double-quotes around such reserved words:
+
+ strict graph "graph"{...}
+
+Even better, use a more meaningful name for your graph...
+
+The keywords are: node, edge, graph, digraph, subgraph and strict. Compass points are not keywords.
+
+See Lhttp://www.graphviz.org/content/dot-language> in the discussion of the syntax of DOT
+for details.
+
=head1 NOTES
Older versions of GraphViz used a slightly different syntax for node
@@ -1309,7 +1349,7 @@
Leon Brocard: E<lt>FE<gt>.
Current maintainer: Ron Savage I.
-
+
=head1 COPYRIGHT
Copyright (C) 2000-4, Leon Brocard
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/t/foo.t new/GraphViz-2.15/t/foo.t
--- old/GraphViz-2.08/t/foo.t 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/t/foo.t 2013-11-28 01:49:12.000000000 +0100
@@ -83,8 +83,8 @@
my @result = @_;
my $expect = <<'EOF';
-Expected something like:
-
+Expected something like (except for the line spacing :-(. Hence the join...):
+
digraph test {
node [ label = "\N" ];
graph [bb= "0,0,66,38"];
@@ -92,11 +92,11 @@
}
EOF
- # have to use regexes cause the output includes numbers that may
- # change each time
- like( $result[0], qr/^digraph test {/ );
- like( $result[1], qr/^\s+graph \[ratio=fill\];/ );
- like( $result[2], qr/^\s*node\s*\[\s*label\s*=\s*"\\N"\s*\];\s*/ );
- like( $result[3], qr/^\s*graph\s*\[bb=.*/ );
- like( $result[4], qr/^\s*node1\s*\[label=London.*\];/ );
+ my($result) = join(' ', @result);
+
+ like( $result, qr/digraph test {/ );
+ like( $result, qr/\s*graph\s*\[bb=.*/ );
+ like( $result, qr/.+ratio=fill/ );
+ like( $result, qr/\s*node\s*\[\s*label\s*=\s*"\\N"\s*\];\s*/ );
+ like( $result, qr/.+label=London,/ );
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/t/pod.t new/GraphViz-2.15/t/pod.t
--- old/GraphViz-2.08/t/pod.t 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/t/pod.t 2013-11-28 01:49:12.000000000 +0100
@@ -2,6 +2,6 @@
use strict;
use warnings;
use Test::More;
-eval "use Test::Pod 1.14";
-plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
+eval "use Test::Pod 1.45";
+plan skip_all => "Test::Pod 1.45 required for testing POD" if $@;
all_pod_files_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/GraphViz-2.08/t/simple.t new/GraphViz-2.15/t/simple.t
--- old/GraphViz-2.08/t/simple.t 2011-11-01 00:59:14.000000000 +0100
+++ new/GraphViz-2.15/t/simple.t 2013-11-28 01:49:12.000000000 +0100
@@ -51,7 +51,7 @@
}
-- test --
-$g = GraphViz->new(rankdir => 1)
+$g = GraphViz->new(rankdir => 'LR')
-- expect --
digraph test {
rankdir=LR;
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org