mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- 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@
This commit is contained in:
parent
521bd688a5
commit
8aeb4c225a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365328
@ -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}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user