aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2014-08-19 01:23:37 +0800
committermva <mva@FreeBSD.org>2014-08-19 01:23:37 +0800
commit6f5aba42d0f5bcb0f8eb7baef4c97cab03769d8e (patch)
treecaa6efc985c21ccb627f0abfe626e6e2e69ce89f /math
parentc5540f1ea7c407973c9efcce363355390a5423bd (diff)
downloadfreebsd-ports-gnome-6f5aba42d0f5bcb0f8eb7baef4c97cab03769d8e.tar.gz
freebsd-ports-gnome-6f5aba42d0f5bcb0f8eb7baef4c97cab03769d8e.tar.zst
freebsd-ports-gnome-6f5aba42d0f5bcb0f8eb7baef4c97cab03769d8e.zip
- Convert USE_PYTHON to USES=python
- Enable math/py-numpy to be installed for different Python versions concurrently Phabric: D599 Reviewed by: db With hat: python@
Diffstat (limited to 'math')
-rw-r--r--math/py-numpy/Makefile20
-rw-r--r--math/py-numpy/pkg-plist2
2 files changed, 14 insertions, 8 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index 1fc0fb59a6eb..d007c596d43a 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -3,7 +3,7 @@
PORTNAME= numpy
PORTVERSION= 1.8.1
-PORTREVISION= 1
+PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= math python
MASTER_SITES= http://docs.scipy.org/doc/${PORTNAME}/:doc \
@@ -21,24 +21,27 @@ LICENSE= BSD3CLAUSE
RUN_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose
+USES= fortran python
+USE_PYTHON= concurrent distutils py3kplist
+
OPTIONS_DEFINE= ATLAS SUITESPARSE
OPTIONS_DEFAULT= SUITESPARSE
ATLAS_DESC= Use optimized blas library
SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse
-USES= fortran
-USE_PYTHON= yes
-USE_PYDISTUTILS= yes
PYDISTUTILS_CONFIGUREARGS+= --fcompiler=gnu95
PYDISTUTILS_BUILDARGS+= --fcompiler=gnu95
-PYTHON_PY3K_PLIST_HACK= yes
-INSTALLS_EGGINFO= yes
PORTDOCS= *
WRKSRC= ${WRKDIR}/${DISTNAME:S/r/rc/}
.include <bsd.port.pre.mk>
+PLIST_SUB+= PYTHON_VER=${PYTHON_VER}
+.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
+PLIST_FILES+= man/man1/f2py.1.gz
+.endif
+
.if ${PORT_OPTIONS:MATLAS}
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
.else
@@ -77,7 +80,10 @@ pre-configure:
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" ${WRKSRC}/numpy/distutils/system_info.py
post-install:
- ${INSTALL_MAN} ${WRKSRC}/numpy/f2py/f2py.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/numpy/f2py/f2py.1 ${STAGEDIR}${MANPREFIX}/man/man1/f2py-${PYTHON_VER}.1
+.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
+ ${LN} -sf ${MANPREFIX}/man/man1/f2py-${PYTHON_VER}.1 ${STAGEDIR}${MANPREFIX}/man/man1/f2py.1
+.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/numpy-ref-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/numpy-user-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
diff --git a/math/py-numpy/pkg-plist b/math/py-numpy/pkg-plist
index d8eaae92dd1d..5eb8c58302a0 100644
--- a/math/py-numpy/pkg-plist
+++ b/math/py-numpy/pkg-plist
@@ -942,7 +942,7 @@ bin/f2py
%%PYTHON_SITELIBDIR%%/numpy/version.py
%%PYTHON_SITELIBDIR%%/numpy/version.pyc
%%PYTHON_SITELIBDIR%%/numpy/version.pyo
-man/man1/f2py.1.gz
+man/man1/f2py-%%PYTHON_VER%%.1.gz
@dirrm %%PYTHON_SITELIBDIR%%/numpy/tests
@dirrm %%PYTHON_SITELIBDIR%%/numpy/testing/tests
@dirrm %%PYTHON_SITELIBDIR%%/numpy/testing