diff options
author | wiz <wiz@pkgsrc.org> | 2014-01-19 20:15:43 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2014-01-19 20:15:43 +0000 |
commit | 98a4a8df1f24ee5ecd56ed349c1cd8763f9f6b30 (patch) | |
tree | 55d73b63bf23fafb78a50f6b442786bbad48e827 /graphics | |
parent | 748d6bb7d8eb7e78aaee771d6478b0dec39bb433 (diff) | |
download | pkgsrc-98a4a8df1f24ee5ecd56ed349c1cd8763f9f6b30.tar.gz |
Readd py-dot package in proper dir.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/py-dot/DESCR | 7 | ||||
-rw-r--r-- | graphics/py-dot/Makefile | 24 | ||||
-rw-r--r-- | graphics/py-dot/PLIST | 8 | ||||
-rw-r--r-- | graphics/py-dot/distinfo | 6 | ||||
-rw-r--r-- | graphics/py-dot/patches/patch-dot__parser.py | 23 |
5 files changed, 68 insertions, 0 deletions
diff --git a/graphics/py-dot/DESCR b/graphics/py-dot/DESCR new file mode 100644 index 00000000000..d2b99b49580 --- /dev/null +++ b/graphics/py-dot/DESCR @@ -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 --git a/graphics/py-dot/Makefile b/graphics/py-dot/Makefile new file mode 100644 index 00000000000..9e6bfa265e4 --- /dev/null +++ b/graphics/py-dot/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2014/01/19 20:15:43 wiz Exp $ + +DISTNAME= pydot-1.0.28 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} +CATEGORIES= graphics python +MASTER_SITES= http://pydot.googlecode.com/files/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://code.google.com/p/pydot/ +COMMENT= Python interface to Graphviz's Dot language +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing +DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz + +PYTHON_VERSIONS_INCOMPATIBLE= 33 # not yet ported as of 1.0.28 + +post-install: + ${RM} ${DESTDIR}${PREFIX}/README + ${RM} ${DESTDIR}${PREFIX}/LICENSE + +.include "../../lang/python/application.mk" +.include "../../lang/python/distutils.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/py-dot/PLIST b/graphics/py-dot/PLIST new file mode 100644 index 00000000000..e54150d2e2c --- /dev/null +++ b/graphics/py-dot/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1 2014/01/19 20:15:43 wiz Exp $ +${PYSITELIB}/dot_parser.py +${PYSITELIB}/dot_parser.pyc +${PYSITELIB}/dot_parser.pyo +${PYSITELIB}/${EGG_FILE} +${PYSITELIB}/pydot.py +${PYSITELIB}/pydot.pyc +${PYSITELIB}/pydot.pyo diff --git a/graphics/py-dot/distinfo b/graphics/py-dot/distinfo new file mode 100644 index 00000000000..8d61fb4469d --- /dev/null +++ b/graphics/py-dot/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2014/01/19 20:15:43 wiz 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 --git a/graphics/py-dot/patches/patch-dot__parser.py b/graphics/py-dot/patches/patch-dot__parser.py new file mode 100644 index 00000000000..80a02e8c27e --- /dev/null +++ b/graphics/py-dot/patches/patch-dot__parser.py @@ -0,0 +1,23 @@ +$NetBSD: patch-dot__parser.py,v 1.1 2014/01/19 20:15:43 wiz 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): |