diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2012-01-21 20:05:59 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2012-01-21 20:05:59 +0000 |
commit | ba1a5e5dee0ed816cc3842d9942096be9445b6f4 (patch) | |
tree | c1dbe764a7bf00c6758d125180afb2885491bcbe /math/py-networkx | |
parent | 0e2dbd67bf5becb60c354695c60c8fc9bac1a9ce (diff) | |
download | ports-ba1a5e5dee0ed816cc3842d9942096be9445b6f4.tar.gz ports-ba1a5e5dee0ed816cc3842d9942096be9445b6f4.zip |
Notes
Diffstat (limited to 'math/py-networkx')
-rw-r--r-- | math/py-networkx/Makefile | 7 | ||||
-rw-r--r-- | math/py-networkx/files/patch-setup.py | 30 |
2 files changed, 31 insertions, 6 deletions
diff --git a/math/py-networkx/Makefile b/math/py-networkx/Makefile index 42725e383d2e..9b5d60cf8561 100644 --- a/math/py-networkx/Makefile +++ b/math/py-networkx/Makefile @@ -17,11 +17,6 @@ USE_PYTHON= yes USE_PYDISTUTILS=easy_install PYSETUP= setup_egg.py -.include <bsd.port.pre.mk> - -post-patch: - ${REINPLACE_CMD} "s,^docdirbase =.*,docdirbase = '${DOCSDIR}'," ${WRKSRC}/setup.py - post-install: .if !defined(NOPORTEXAMPLES) ${MKDIR} ${EXAMPLESDIR} @@ -32,4 +27,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/math/py-networkx/files/patch-setup.py b/math/py-networkx/files/patch-setup.py new file mode 100644 index 000000000000..82da57ee9c96 --- /dev/null +++ b/math/py-networkx/files/patch-setup.py @@ -0,0 +1,30 @@ +--- setup.py.orig 2011-11-19 02:31:31.000000000 +0100 ++++ setup.py 2012-01-21 21:04:35.000000000 +0100 +@@ -53,26 +53,7 @@ + "networkx.tests", + "networkx.utils"] + +-docdirbase = 'share/doc/networkx-%s' % version +-# add basic documentation +-data = [(docdirbase, glob("*.txt"))] +-# add examples +-for d in ['advanced', +- 'algorithms', +- 'basic', +- '3d_drawing', +- 'drawing', +- 'graph', +- 'multigraph', +- 'pygraphviz', +- 'readwrite']: +- dd=os.path.join(docdirbase,'examples',d) +- pp=os.path.join('examples',d) +- data.append((dd,glob(os.path.join(pp,"*.py")))) +- data.append((dd,glob(os.path.join(pp,"*.bz2")))) +- data.append((dd,glob(os.path.join(pp,"*.gz")))) +- data.append((dd,glob(os.path.join(pp,"*.mbox")))) +- data.append((dd,glob(os.path.join(pp,"*.edgelist")))) ++data = [ ] + + # add the tests + package_data = { |