| @@ -1,23 +1,53 @@ | | | @@ -1,23 +1,53 @@ |
1 | # $NetBSD: Makefile,v 1.25 2018/02/01 21:00:25 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.26 2018/05/07 15:27:09 khorben Exp $ |
2 | | | 2 | |
3 | DISTNAME= networkx-2.1 | | 3 | DISTNAME= networkx-2.1 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= math python | | 6 | CATEGORIES= math python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/networkx/} | | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=n/networkx/} |
7 | EXTRACT_SUFX= .zip | | 8 | EXTRACT_SUFX= .zip |
8 | | | 9 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://networkx.github.io/ | | 11 | HOMEPAGE= http://networkx.github.io/ |
11 | COMMENT= Python package for creating and manipulating graphs and networks | | 12 | COMMENT= Python package for creating and manipulating graphs and networks |
12 | LICENSE= modified-bsd | | 13 | LICENSE= modified-bsd |
13 | | | 14 | |
14 | DEPENDS+= ${PYPKGPREFIX}-decorator>=4.1.0:../../devel/py-decorator | | 15 | DEPENDS+= ${PYPKGPREFIX}-decorator>=4.1.0:../../devel/py-decorator |
15 | | | 16 | |
16 | USE_LANGUAGES= # none | | 17 | USE_LANGUAGES= # none |
17 | | | 18 | |
| | | 19 | REPLACE_INTERPRETER+= python |
| | | 20 | REPLACE.python.old= /usr/bin/env python |
| | | 21 | REPLACE.python.new= ${PYTHONBIN} |
| | | 22 | REPLACE_FILES.python= \ |
| | | 23 | examples/drawing/*.py \ |
| | | 24 | examples/advanced/*.py \ |
| | | 25 | examples/graph/*.py \ |
| | | 26 | examples/applications/*.py \ |
| | | 27 | examples/algorithms/*.py \ |
| | | 28 | examples/pygraphviz/*.py \ |
| | | 29 | examples/basic/*.py \ |
| | | 30 | examples/jit/*.py \ |
| | | 31 | doc/release/*.py \ |
| | | 32 | networkx/readwrite/tests/*.py \ |
| | | 33 | networkx/utils/tests/*.py \ |
| | | 34 | networkx/generators/tests/*.py \ |
| | | 35 | networkx/classes/tests/*.py \ |
| | | 36 | networkx/algorithms/components/tests/*.py \ |
| | | 37 | networkx/algorithms/isomorphism/tests/*.py \ |
| | | 38 | networkx/algorithms/link_analysis/tests/*.py \ |
| | | 39 | networkx/algorithms/centrality/tests/*.py \ |
| | | 40 | networkx/algorithms/bipartite/tests/*.py \ |
| | | 41 | networkx/algorithms/traversal/tests/*.py \ |
| | | 42 | networkx/algorithms/approximation/tests/*.py \ |
| | | 43 | networkx/algorithms/assortativity/tests/*.py \ |
| | | 44 | networkx/algorithms/shortest_paths/tests/*.py \ |
| | | 45 | networkx/algorithms/tests/*.py \ |
| | | 46 | networkx/tests/*.py |
| | | 47 | |
18 | post-install: | | 48 | post-install: |
19 | ${RM} -f -r ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} | | 49 | ${RM} -f -r ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} |
20 | ${MV} ${DESTDIR}${PREFIX}/share/doc/${DISTNAME} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} | | 50 | ${MV} ${DESTDIR}${PREFIX}/share/doc/${DISTNAME} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} |
21 | | | 51 | |
22 | .include "../../lang/python/egg.mk" | | 52 | .include "../../lang/python/egg.mk" |
23 | .include "../../mk/bsd.pkg.mk" | | 53 | .include "../../mk/bsd.pkg.mk" |