NetBSD Problem Report #47377

From www@NetBSD.org  Sat Dec 29 18:14:27 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 7686C63EB00
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 29 Dec 2012 18:14:27 +0000 (UTC)
Message-Id: <20121229181426.0116563EB00@www.NetBSD.org>
Date: Sat, 29 Dec 2012 18:14:25 +0000 (UTC)
From: richard.palo@baou.fr
Reply-To: richard.palo@baou.fr
To: gnats-bugs@NetBSD.org
Subject: add pkgsrc/graphics/py-pydot using pydot-1.0.28 supporting up to but not including python3
X-Send-Pr-Version: www-1.0

>Number:         47377
>Category:       pkg
>Synopsis:       add pkgsrc/graphics/py-pydot using pydot-1.0.28 supporting up to but not including python3
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 29 18:15:00 +0000 2012
>Originator:     Richard PALO
>Release:        pkgsrc trunk
>Organization:
>Environment:
SunOS devzoneX 5.11 oi_151a7 i86pc i386 i86pc Solaris

>Description:
https://code.google.com/p/pydot/
pydot 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. 


support for Python 3 reserved for a future revision as pyparsing needs a as well new version.
>How-To-Repeat:

>Fix:
here is the cvs diff to create this project:

Index: DESCR
===================================================================
RCS file: DESCR
diff -N DESCR
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ DESCR	29 Dec 2012 18:13:50 -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.
Index: Makefile
===================================================================
RCS file: Makefile
diff -N Makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Makefile	29 Dec 2012 18:13:50 -0000
@@ -0,0 +1,32 @@
+# $NetBSD$
+DISTNAME=		pydot-1.0.28
+PKGNAME=		${PYPKGPREFIX}-${DISTNAME}
+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
+
+CONFIGURE_ENV+=	PYTHON=${PYTHONBIN:Q}
+CONFIGURE_ENV+=	PYTH_CONFIGDIR=${BUILDLINK_PREFIX.${PYPACKAGE}}/${PYLIB}/config
+INSTALL_TARGET=	installshared
+PY_PATCHPLIST=	yes
+PLIST_SUBST+=	PYLIB=${PYLIB:Q} PYPKGPREFIX=${PYPKGPREFIX:Q}
+
+PYTHON_VERSIONS_INCLUDE_3X = no
+PYDISTUTILSPKG= yes
+
+DEPENDS+=       ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing157
+DEPENDS+=  		graphviz-[0-9]*:../../graphics/graphviz
+
+DOCDIR=			${PREFIX}/share/doc/${PYPKGPREFIX}-pydot
+
+post-install:
+				${INSTALL_DATA_DIR} ${DESTDIR:Q}${DOCDIR}
+				${INSTALL_DATA} ${WRKSRC}/README \
+					${DESTDIR:Q}${DOCDIR}
+
+.include "../../lang/python/extension.mk"
+.include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: PLIST
diff -N PLIST
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ PLIST	29 Dec 2012 18:13:50 -0000
@@ -0,0 +1,8 @@
+@comment $NetBSD$
+${PYSITELIB}/dot_parser.py
+${PYSITELIB}/dot_parser.pyc
+${PYSITELIB}/dot_parser.pyo
+${PYSITELIB}/pydot.py
+${PYSITELIB}/pydot.pyc
+${PYSITELIB}/pydot.pyo
+share/doc/${PYPKGPREFIX}-pydot/README
Index: distinfo
===================================================================
RCS file: distinfo
diff -N distinfo
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ distinfo	29 Dec 2012 18:13:50 -0000
@@ -0,0 +1,5 @@
+$NetBSD$
+
+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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.