Date: Mon, 24 Dec 2001 19:11:09 -0800 (PST) From: Hye-Shik Chang <perky@fallin.lv> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/33159: New port: graphics/py-graphviz Message-ID: <200112250311.fBP3B9W85235@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 33159 >Category: ports >Synopsis: New port: graphics/py-graphviz >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: wish >Submitter-Id: current-users >Arrival-Date: Mon Dec 24 19:20:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Hye-Shik Chang >Release: FreeBSD 4.4 >Organization: Yonsei University >Environment: FreeBSD kornet.hanirc.org 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Sep 24 14:46:54 KST 2001 root@kornet.hanirc.org:/home/src/sys/compile/HANIRC i386 >Description: New port for python interface to graphics/graphviz. Because graphics/graphviz doesn't provide any library outside, this port builds some libraries from original source. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-graphviz # py-graphviz/Makefile # py-graphviz/distinfo # py-graphviz/pkg-comment # py-graphviz/pkg-descr # py-graphviz/pkg-plist # py-graphviz/files # py-graphviz/files/setup.py # echo c - py-graphviz mkdir -p py-graphviz > /dev/null 2>&1 echo x - py-graphviz/Makefile sed 's/^X//' >py-graphviz/Makefile << 'END-of-py-graphviz/Makefile' X# New ports collection makefile for: py-graphviz X# Date created: 25 December 2001 X# Whom: Hye-Shik Chang <perky@fallin.lv> X# X# $FreeBSD$ X XPORTNAME= graphviz XPORTVERSION= 0.1 XCATEGORIES= graphics python XMASTER_SITES= http://www.cs.brown.edu/~er/software/Agraph.py/ \ X http://www.research.att.com/sw/tools/graphviz/dist/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} XDISTFILES= ${MODFILES} ${PORTNAME}-${GV_VERSION}.tgz XEXTRACT_ONLY= ${PORTNAME}-${GV_VERSION}.tgz XDIST_SUBDIR= ${PORTNAME} X XMAINTAINER= perky@fallin.lv X XBUILD_DEPENDS= ${SWIG_CMD}:${PORTSDIR}/devel/SWIG X XMODFILES= gv.i __init__.py XWRKSRC= ${WRKDIR}/graphviz-${GV_VERSION}/agraph XGV_VERSION?= 1.7.7 X XUSE_PYTHON= yes XSWIG_CMD= ${LOCALBASE}/bin/swig XPLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S,^${LOCALBASE}/,,g} X Xpost-patch: X @ ${CP} ${DISTDIR}/graphviz/gv.i ${FILESDIR}/setup.py ${WRKSRC} X @ ${MKDIR} ${WRKSRC}/graphviz X @ ${CP} ${DISTDIR}/graphviz/__init__.py ${WRKSRC}/graphviz X Xdo-build: X @ cd ${WRKSRC} && ( \ X ${SWIG_CMD} -python gv.i; \ X ${PYTHON_CMD} setup.py build; \ X ) X Xdo-install: X @ cd ${WRKSRC} && ${PYTHON_CMD} setup.py install X X.include <bsd.port.mk> END-of-py-graphviz/Makefile echo x - py-graphviz/distinfo sed 's/^X//' >py-graphviz/distinfo << 'END-of-py-graphviz/distinfo' XMD5 (graphviz/gv.i) = d1aa60d521c7b80d2af05aa24189923b XMD5 (graphviz/__init__.py) = a6338b4692d49ffff0635357a158714b XMD5 (graphviz/graphviz-1.7.7.tgz) = e04a6031b34d07ebceacc6ccb0745eb5 END-of-py-graphviz/distinfo echo x - py-graphviz/pkg-comment sed 's/^X//' >py-graphviz/pkg-comment << 'END-of-py-graphviz/pkg-comment' XPython interface to GraphViz Agraph END-of-py-graphviz/pkg-comment echo x - py-graphviz/pkg-descr sed 's/^X//' >py-graphviz/pkg-descr << 'END-of-py-graphviz/pkg-descr' XThis is a interface to graphviz agraph. XAll code is covered by the Brown Copyright. X XWWW: http://www.cs.brown.edu/~er/software/ END-of-py-graphviz/pkg-descr echo x - py-graphviz/pkg-plist sed 's/^X//' >py-graphviz/pkg-plist << 'END-of-py-graphviz/pkg-plist' X%%PYTHON_SITELIBDIR%%/graphviz/__init__.py X%%PYTHON_SITELIBDIR%%/graphviz/__init__.pyc X%%PYTHON_SITELIBDIR%%/graphviz/graphviz.so X@dirrm %%PYTHON_SITELIBDIR%%/graphviz END-of-py-graphviz/pkg-plist echo c - py-graphviz/files mkdir -p py-graphviz/files > /dev/null 2>&1 echo x - py-graphviz/files/setup.py sed 's/^X//' >py-graphviz/files/setup.py << 'END-of-py-graphviz/files/setup.py' X# $FreeBSD$ X Xfrom distutils.core import setup, Extension X XVERSION = '"py-agraph 1.0"' Xagraph_srcs = [ X 'apply.c', 'attr.c', 'edge.c', 'agerror.c', 'flatten.c', X 'grammar.c', 'graph.c', 'id.c', 'imap.c', 'io.c', 'mem.c', X 'node.c', 'obj.c', 'pend.c', 'rec.c', 'refstr.c', 'scan.c', X 'subg.c', 'utils.c', 'write.c' X] Xcdt_srcs = [ X 'dtclose.c', 'dtdisc.c', 'dtflatten.c', 'dthash.c', 'dtmethod.c', X 'dtopen.c', 'dtsize.c', 'dtextract.c', 'dtrestore.c', 'dtlist.c', X 'dtstat.c', 'dttree.c', 'dtview.c', 'dtrenew.c', 'dtwalk.c', 'dtstrhash.c' X] Xcdt_srcs = ['../cdt/'+f for f in cdt_srcs] X Xsetup(name = 'graphviz', X version = '0.1', X description = 'Python Interface to GraphViz', X author = 'Manos Renieris', X packages = ['graphviz'], X ext_modules = [Extension('graphviz.graphviz', ['gv_wrap.c'] + cdt_srcs + agraph_srcs, X include_dirs=['../cdt', '.'], X define_macros=[('ulong','u_long'), ('VERSION', VERSION)])] X) END-of-py-graphviz/files/setup.py exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112250311.fBP3B9W85235>