Mon May 7 15:27:09 2018 UTC ()
Correctly set the path to the Python interpreter

This notably fixes building with PKG_DEVELOPER=yes.

Bump PKGREVISION as some of the files installed are modified.


(khorben)
diff -r1.25 -r1.26 pkgsrc/math/py-networkx/Makefile

cvs diff -r1.25 -r1.26 pkgsrc/math/py-networkx/Makefile (expand / switch to unified diff)

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