diff options
Diffstat (limited to 'math/py-Scientific/Makefile')
-rw-r--r-- | math/py-Scientific/Makefile | 52 |
1 files changed, 25 insertions, 27 deletions
diff --git a/math/py-Scientific/Makefile b/math/py-Scientific/Makefile index 494cdf44cc1..4c1b07232d7 100644 --- a/math/py-Scientific/Makefile +++ b/math/py-Scientific/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.4 2001/03/29 01:00:10 jtb Exp $ +# $NetBSD: Makefile,v 1.5 2001/03/30 22:23:07 jtb Exp $ -DISTNAME= ScientificPython-2.0.1 -PKGNAME= py-Scientific-2.0.1 +DISTNAME= ScientificPython-2.2 +PKGNAME= py-Scientific-2.2 CATEGORIES= math MASTER_SITES= http://starship.python.net/crew/hinsen/ \ http://dirac.cnrs-orleans.fr/programs/ @@ -23,39 +23,37 @@ PLIST_SRC= ${WRKDIR}/.PLIST_SRC EVAL_PREFIX+= PYPREFIX=python NETCDFPREFIX=netcdf MPICHPREFIX=mpich do-configure: - ${SED} -e "s|@NETCDFPREFIX@|${NETCDFPREFIX}|g" \ - -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \ - < ${FILESDIR}/Setup.in > ${WRKSRC}/Src/Setup.in + ${SED} -e "s|@NETCDFPREFIX@|${NETCDFPREFIX}|g" \ + -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \ + ${WRKSRC}/setup.py > ${WRKSRC}/setup.py.tmp + ${MV} -f ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py + ${SED} -e "s|@MPICHPREFIX@|${MPICHPREFIX}|g" \ + ${FILESDIR}/Setup.in > ${WRKSRC}/Src/MPI/Setup.in do-build: - (cd ${WRKSRC}/Src && ${PYPREFIX}/bin/python compile.py) + cd ${WRKSRC} && ${PYPREFIX}/bin/python setup.py build + cd ${WRKSRC}/Src/MPI && ${PYPREFIX}/bin/python compile.py post-build: - (eval `${PYPREFIX}/bin/python ${FILESDIR}/printpypath.py` && \ - ${SED} "s|PYINC|$${PYINC}|g;s|PYSITELIB|$${PYSITELIB}|g" \ - < ${PKGDIR}/PLIST > ${PLIST_SRC}) + (eval `${PYPREFIX}/bin/python ${FILESDIR}/printpypath.py` && \ + ${SED} "s|PYINC|$${PYINC}|g;s|PYSITELIB|$${PYSITELIB}|g" \ + ${PKGDIR}/PLIST > ${PLIST_SRC}) do-install: - (cd ${WRKSRC} && ${PYPREFIX}/bin/python install.py) - ${INSTALL_DATA_DIR} ${PREFIX}/include/python2.0/Scientific - @for f in ${WRKSRC}/Scientific/Include/Scientific/*; do \ - i="${INSTALL_DATA} $$f ${PREFIX}/include/python2.0/Scientific/"; \ - ${ECHO} $$i; $$i; \ - done + cd ${WRKSRC} && ${PYPREFIX}/bin/python setup.py install + ${INSTALL_PROGRAM} ${WRKSRC}/Src/MPI/mpipython ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/${PYINC}/Scientific + ${INSTALL_DATA} ${WRKSRC}/Include/Scientific/* \ + ${PREFIX}/${PYINC}/Scientific/ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-Scientific - @for f in README COPYRIGHT Doc/PDF/manual.pdf; do \ - i="${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/py-Scientific/"; \ - ${ECHO} $$i; $$i; \ + for f in README COPYRIGHT Doc/PDF/manual.pdf; do \ + ${INSTALL_DATA} ${WRKSRC}/$$f ${PREFIX}/share/doc/py-Scientific/; \ done ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/py-Scientific - @for f in ${WRKSRC}/Doc/HTML/*; do \ - i="${INSTALL_DATA} $$f ${PREFIX}/share/doc/html/py-Scientific/"; \ - ${ECHO} $$i; $$i; \ - done + ${INSTALL_DATA} ${WRKSRC}/Doc/HTML/* \ + ${PREFIX}/share/doc/html/py-Scientific/ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-Scientific - @for f in ${WRKSRC}/Examples/*; do \ - i="${INSTALL_DATA} $$f ${PREFIX}/share/examples/py-Scientific/"; \ - ${ECHO} $$i; $$i; \ - done + ${INSTALL_DATA} ${WRKSRC}/Examples/* \ + ${PREFIX}/share/examples/py-Scientific/ .include "../../mk/bsd.pkg.mk" |