aboutsummaryrefslogtreecommitdiff
path: root/graphics/py-graph
diff options
context:
space:
mode:
authorYi-Jheng Lin <yzlin@FreeBSD.org>2010-05-12 13:39:30 +0000
committerYi-Jheng Lin <yzlin@FreeBSD.org>2010-05-12 13:39:30 +0000
commit7eb81e0db9b476cf083e4ab4e26ab550b9eca671 (patch)
treed9549ccedd4fdac5e7fa855e8a47150447f5c945 /graphics/py-graph
parent336f38fdca2dea308c5b05b2a2ede66d2e5ba276 (diff)
Notes
Diffstat (limited to 'graphics/py-graph')
-rw-r--r--graphics/py-graph/Makefile53
-rw-r--r--graphics/py-graph/distinfo3
-rw-r--r--graphics/py-graph/files/patch-setup.py26
-rw-r--r--graphics/py-graph/pkg-plist64
4 files changed, 9 insertions, 137 deletions
diff --git a/graphics/py-graph/Makefile b/graphics/py-graph/Makefile
index 051162d32686..150fe677b8e6 100644
--- a/graphics/py-graph/Makefile
+++ b/graphics/py-graph/Makefile
@@ -6,59 +6,24 @@
#
PORTNAME= graph
-PORTVERSION= 1.6.1
-PORTREVISION= 2
+PORTVERSION= 1.7.0
CATEGORIES= graphics python
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+MASTER_SITES= # empty
+DISTFILES= # none
+EXTRACT_ONLY= # empty
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= python-graph-${PORTVERSION}
MAINTAINER= yzlin@FreeBSD.org
COMMENT= A library for working with graphs in Python
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pydot>=0:${PORTSDIR}/graphics/py-pydot
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}graph-core>=${PORTVERSION}:${PORTSDIR}/graphics/py-graph-core \
+ ${PYTHON_PKGNAMEPREFIX}graph-dot>=${PORTVERSION}:${PORTSDIR}/graphics/py-graph-dot
-PROJECTHOST= python-graph
USE_PYTHON= yes
-USE_PYDISTUTILS= easy_install
-PYDISTUTILS_PKGNAME= python_graph
-USE_BZIP2= yes
+NO_BUILD= yes
-DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
-EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
-
-TESTFILES= unittests-accessibility.py \
- unittests-cycles.py \
- unittests-digraph.py \
- unittests-filters.py \
- unittests-graph.py \
- unittests-heuristics.py \
- unittests-readwrite.py \
- unittests-searching.py \
- unittests-sorting.py \
-
-post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for f in COPYING Changelog README
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-.endfor
- ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
-.endif
-
-# This target is only meant to be used by the port maintainer.
-x-regression-test: install
-.for f in ${TESTFILES}
- @${ECHO} "" >> ${WRKSRC}/tests/${f}
- @${ECHO} "if __name__ == '__main__':" >> ${WRKSRC}/tests/${f}
- @${ECHO} " unittest.main()" >> ${WRKSRC}/tests/${f}
- @${ECHO} "Unit-testing ${f}..."
- @(cd ${WRKSRC}/tests && ${PYTHON_CMD} ${f})
-.endfor
+do-install:
+ ${DO_NADA}
.include <bsd.port.mk>
diff --git a/graphics/py-graph/distinfo b/graphics/py-graph/distinfo
deleted file mode 100644
index 23e589b9ce49..000000000000
--- a/graphics/py-graph/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (python-graph-1.6.1.tar.bz2) = 4c52cb006e139e7578f9bdf2338d166d
-SHA256 (python-graph-1.6.1.tar.bz2) = 33279db94653f83ba58c3cc114b99c55d9fbd187caeff2c8998e95a36c02487a
-SIZE (python-graph-1.6.1.tar.bz2) = 54402
diff --git a/graphics/py-graph/files/patch-setup.py b/graphics/py-graph/files/patch-setup.py
deleted file mode 100644
index 89d543f758fd..000000000000
--- a/graphics/py-graph/files/patch-setup.py
+++ /dev/null
@@ -1,26 +0,0 @@
---- setup.py.orig
-+++ setup.py
-@@ -4,12 +4,7 @@
- import os
- import logging
-
--try:
-- from setuptools import setup, find_packages
--except ImportError, ie:
-- import ez_setup
-- ez_setup.use_setuptools()
-- from setuptools import setup, find_packages
-+from setuptools import setup, find_packages
-
- # Startup
- appname = "python-graph"
-@@ -40,9 +35,6 @@
- name = appname,
- version = appversion,
- packages = ['pygraph', 'pygraph.algorithms', 'pygraph.algorithms.filters', 'pygraph.algorithms.heuristics', 'pygraph.classes', 'pygraph.readwrite'],
-- data_files = [(docsdir,docsfiles),
-- (datadir,datafiles)],
-- install_requires = ['pydot'],
- author = "Pedro Matiello",
- author_email = "pmatiello@gmail.com",
- description = "A library for working with graphs in Python",
diff --git a/graphics/py-graph/pkg-plist b/graphics/py-graph/pkg-plist
deleted file mode 100644
index 13223b5f9c46..000000000000
--- a/graphics/py-graph/pkg-plist
+++ /dev/null
@@ -1,64 +0,0 @@
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/critical.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/draw.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/drawhyper.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ex1.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.tls
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graph.xml
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/lts2graph.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/read.py
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/write.py
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/Changelog
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/api-objects.txt
-%%PORTDOCS%%%%DOCSDIR%%/class-tree.html
-%%PORTDOCS%%%%DOCSDIR%%/crarr.png
-%%PORTDOCS%%%%DOCSDIR%%/epydoc.css
-%%PORTDOCS%%%%DOCSDIR%%/epydoc.js
-%%PORTDOCS%%%%DOCSDIR%%/help.html
-%%PORTDOCS%%%%DOCSDIR%%/identifier-index.html
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/module-tree.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.accessibility-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.critical-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.cycles-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters.Find-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters.Find.find-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters.Null-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters.Null.null-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters.Radius-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.filters.Radius.radius-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.generators-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.heuristics-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.heuristics.Chow-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.heuristics.Chow.chow-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.heuristics.Euclidean-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.heuristics.Euclidean.euclidean-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.minmax-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.searching-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.sorting-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.traversal-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.utils-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.utils.HeapItem-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.algorithms.utils.priority_queue-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Digraph-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Digraph.digraph-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Exceptions-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Exceptions.GraphError-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Exceptions.InvalidGraphType-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Exceptions.NodeUnreachable-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Graph-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Graph.graph-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Hypergraph-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.classes.Hypergraph.hypergraph-class.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.readwrite-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.readwrite.dot-module.html
-%%PORTDOCS%%%%DOCSDIR%%/pygraph.readwrite.markup-module.html
-%%PORTDOCS%%%%DOCSDIR%%/redirect.html
-%%PORTDOCS%%@dirrm %%DOCSDIR%%