aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-numeric/Makefile
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-09-04 20:35:31 +0800
committertg <tg@FreeBSD.org>2000-09-04 20:35:31 +0800
commitbce3ef322de842be4868ecd641ba659147f78cc3 (patch)
treed55065a75fd5222e239e13217313466a20207614 /math/py-numeric/Makefile
parentd0c7308cf02d1fc844f56ec9f16f11813ec1ecb2 (diff)
downloadfreebsd-ports-gnome-bce3ef322de842be4868ecd641ba659147f78cc3.tar.gz
freebsd-ports-gnome-bce3ef322de842be4868ecd641ba659147f78cc3.tar.zst
freebsd-ports-gnome-bce3ef322de842be4868ecd641ba659147f78cc3.zip
Upgrade to 16.0.
Some parts (patch-Makefile, Makefile mods) taken from a patch set submitted by sobomax.
Diffstat (limited to 'math/py-numeric/Makefile')
-rw-r--r--math/py-numeric/Makefile26
1 files changed, 18 insertions, 8 deletions
diff --git a/math/py-numeric/Makefile b/math/py-numeric/Makefile
index e42838ee283f..142d5fe10eb6 100644
--- a/math/py-numeric/Makefile
+++ b/math/py-numeric/Makefile
@@ -6,27 +6,37 @@
#
PORTNAME= numeric
-PORTVERSION= 15.3
+PORTVERSION= 16.0
CATEGORIES= math python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= numpy
PKGNAMEPREFIX= py-
-DISTNAME= Numerical-${PORTVERSION}
-EXTRACT_SUFX= .tgz
+DISTNAME= Numeric-${PORTVERSION}
MAINTAINER= tg@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/lib/python1.5/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
+BUILD_DEPENDS= python:${PORTSDIR}/lang/python \
+ ${PYDISTUTILS}
+LIB_DEPENDS= lapack.3:${PORTSDIR}/math/lapack \
+ blas.2:${PORTSDIR}/math/lapack
RUN_DEPENDS= python:${PORTSDIR}/lang/python
+MAKE_ENV= BLASLIBDIR=${LOCALBASE}/lib LAPACKLIBDIR=${LOCALBASE}/lib
+PLIST_SUB= PYVERSION="python${PYVERSION}"
+
DOCDIR= ${PREFIX}/share/doc/py-numeric
EXAMPLEDIR= ${PREFIX}/share/examples/py-numeric
+PYVERSION!= python -c 'import string, sys; \
+ print string.split(sys.version)[0][:3]' \
+ || echo "1.5"
-do-build:
- @(cd ${WRKSRC}; python setup.py build)
+.if ${PYVERSION} == "2.0"
+PYDISTUTILS= ${LOCALBASE}/lib/python${PYVERSION}/distutils/core.py:${PORTSDIR}/lang/python
+.else
+PYDISTUTILS= ${LOCALBASE}/lib/python${PYVERSION}/site-packages/distutils/core.py:${PORTSDIR}/misc/py-distutils
+.endif
-do-install:
- @(cd ${WRKSRC}; python setup.py install)
+post-install:
@${MKDIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/Demo/*.py ${EXAMPLEDIR}
@${MKDIR} ${EXAMPLEDIR}/NumTut