From 2c0ca4dbd24800a1aadf57bfeafcf59a8579a0f8 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 19 Jan 2014 20:15:43 +0000 Subject: Readd py-dot package in proper dir. --- graphics/py-dot/DESCR | 7 +++++++ graphics/py-dot/Makefile | 24 ++++++++++++++++++++++++ graphics/py-dot/PLIST | 8 ++++++++ graphics/py-dot/distinfo | 6 ++++++ graphics/py-dot/patches/patch-dot__parser.py | 23 +++++++++++++++++++++++ 5 files changed, 68 insertions(+) create mode 100644 graphics/py-dot/DESCR create mode 100644 graphics/py-dot/Makefile create mode 100644 graphics/py-dot/PLIST create mode 100644 graphics/py-dot/distinfo create mode 100644 graphics/py-dot/patches/patch-dot__parser.py (limited to 'graphics/py-dot') 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): -- cgit v1.2.3