summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorwiz <wiz>2014-01-19 20:12:16 +0000
committerwiz <wiz>2014-01-19 20:12:16 +0000
commitfac4eb89ec5054c77257044b750bbae48c116561 (patch)
treed1d039eeb80401606ffd98945f604f89c29f24d1 /graphics
parent1ac3c241efaf0635d5553afb9f51f33308b28974 (diff)
downloadpkgsrc-fac4eb89ec5054c77257044b750bbae48c116561.tar.gz
Make py-dot package name match pkgsrc python package name standards.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/py-pydot/Makefile24
-rw-r--r--graphics/py-pydot/PLIST8
-rw-r--r--graphics/py-pydot/patches/patch-dot__parser.py23
3 files changed, 32 insertions, 23 deletions
diff --git a/graphics/py-pydot/Makefile b/graphics/py-pydot/Makefile
new file mode 100644
index 00000000000..68415fed6ec
--- /dev/null
+++ b/graphics/py-pydot/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.3 2014/01/19 20:12:16 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-pydot/PLIST b/graphics/py-pydot/PLIST
new file mode 100644
index 00000000000..becc0c26f77
--- /dev/null
+++ b/graphics/py-pydot/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.3 2014/01/19 20:12:16 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-pydot/patches/patch-dot__parser.py b/graphics/py-pydot/patches/patch-dot__parser.py
deleted file mode 100644
index db0e809b3c5..00000000000
--- a/graphics/py-pydot/patches/patch-dot__parser.py
+++ /dev/null
@@ -1,23 +0,0 @@
-$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):