pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics allows to easily create both directed and non...
details: https://anonhg.NetBSD.org/pkgsrc/rev/410dc97cc7f0
branches: trunk
changeset: 622013:410dc97cc7f0
user: richard <richard%pkgsrc.org@localhost>
date: Mon Jul 22 12:16:18 2013 +0000
description:
allows to easily create both directed and non directed graphs from Python.
Currently all attributes implemented in the Dot language are supported (up to
Graphviz 2.26.3).
Output can be inlined in Postscript into interactive scientific environments
like TeXmacs, or output in any of the format's supported by the Graphviz tools
dot, neato, twopi.
diffstat:
graphics/Makefile | 3 ++-
graphics/py-pydot/DESCR | 7 +++++++
graphics/py-pydot/Makefile | 24 ++++++++++++++++++++++++
graphics/py-pydot/PLIST | 7 +++++++
graphics/py-pydot/distinfo | 6 ++++++
graphics/py-pydot/patches/patch-dot__parser.py | 23 +++++++++++++++++++++++
6 files changed, 69 insertions(+), 1 deletions(-)
diffs (104 lines):
diff -r 477003c97352 -r 410dc97cc7f0 graphics/Makefile
--- a/graphics/Makefile Mon Jul 22 12:00:50 2013 +0000
+++ b/graphics/Makefile Mon Jul 22 12:16:18 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.659 2013/07/21 12:02:18 richard Exp $
+# $NetBSD: Makefile,v 1.660 2013/07/22 12:16:18 richard Exp $
#
COMMENT= Graphics tools and libraries
@@ -390,6 +390,7 @@
SUBDIR+= py-nwdiag
SUBDIR+= py-piddle
SUBDIR+= py-pycha
+SUBDIR+= py-pydot
SUBDIR+= py-pyfits
SUBDIR+= py-seqdiag
SUBDIR+= py-sk1libs
diff -r 477003c97352 -r 410dc97cc7f0 graphics/py-pydot/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-pydot/DESCR Mon Jul 22 12:16:18 2013 +0000
@@ -0,0 +1,7 @@
+allows to easily create both directed and non directed graphs from Python.
+Currently all attributes implemented in the Dot language are supported (up to
+Graphviz 2.26.3).
+
+Output can be inlined in Postscript into interactive scientific environments
+like TeXmacs, or output in any of the format's supported by the Graphviz tools
+dot, neato, twopi.
diff -r 477003c97352 -r 410dc97cc7f0 graphics/py-pydot/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-pydot/Makefile Mon Jul 22 12:16:18 2013 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2013/07/22 12:16:18 richard Exp $
+DISTNAME= pydot-1.0.28
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= graphics python
+MASTER_SITES= http://pydot.googlecode.com/files/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://code.google.com/p/pydot/
+COMMENT= Python interface to Graphviz's Dot language
+LICENSE= mit
+
+PYTHON_VERSIONS_INCLUDE_3X = no
+PYDISTUTILSPKG= yes
+
+DEPENDS+= ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing
+DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
+
+post-install:
+ ${RM} ${DESTDIR}${PREFIX}/README
+ ${RM} ${DESTDIR}${PREFIX}/LICENSE
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 477003c97352 -r 410dc97cc7f0 graphics/py-pydot/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-pydot/PLIST Mon Jul 22 12:16:18 2013 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2013/07/22 12:16:18 richard Exp $
+${PYSITELIB}/dot_parser.py
+${PYSITELIB}/dot_parser.pyc
+${PYSITELIB}/dot_parser.pyo
+${PYSITELIB}/pydot.py
+${PYSITELIB}/pydot.pyc
+${PYSITELIB}/pydot.pyo
diff -r 477003c97352 -r 410dc97cc7f0 graphics/py-pydot/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-pydot/distinfo Mon Jul 22 12:16:18 2013 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2013/07/22 12:16:18 richard Exp $
+
+SHA1 (pydot-1.0.28.tar.gz) = 3945af1765943807d72e773c7ac853f008ebb0b2
+RMD160 (pydot-1.0.28.tar.gz) = a67336f5edf55a81fe654df3258a12a8ff92d4f6
+Size (pydot-1.0.28.tar.gz) = 19711 bytes
+SHA1 (patch-dot__parser.py) = 9ce92c76bb5878ac990a3557e550679364a2d7b2
diff -r 477003c97352 -r 410dc97cc7f0 graphics/py-pydot/patches/patch-dot__parser.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/py-pydot/patches/patch-dot__parser.py Mon Jul 22 12:16:18 2013 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-dot__parser.py,v 1.1 2013/07/22 12:16:18 richard Exp $
+
+_noncomma is obsoleted in the latest pyparsing, fix to work with all versions.
+
+--- dot_parser.py.orig 2012-01-02 23:23:26.000000000 +0000
++++ dot_parser.py
+@@ -25,7 +25,7 @@ from pyparsing import __version__ as pyp
+ from pyparsing import ( nestedExpr, Literal, CaselessLiteral, Word, Upcase, OneOrMore, ZeroOrMore,
+ Forward, NotAny, delimitedList, oneOf, Group, Optional, Combine, alphas, nums,
+ restOfLine, cStyleComment, nums, alphanums, printables, empty, quotedString,
+- ParseException, ParseResults, CharsNotIn, _noncomma, dblQuotedString, QuotedString, ParserElement )
++ ParseException, ParseResults, CharsNotIn, dblQuotedString, QuotedString, ParserElement )
+
+
+ class P_AttrList:
+@@ -414,6 +414,7 @@ def graph_definition():
+
+ double_quoted_string = QuotedString('"', multiline=True, unquoteResults=False) # dblQuotedString
+
++ _noncomma = "".join( [ c for c in printables if c != "," ] )
+ alphastring_ = OneOrMore(CharsNotIn(_noncomma + ' '))
+
+ def parse_html(s, loc, toks):
Home |
Main Index |
Thread Index |
Old Index