aboutsummaryrefslogtreecommitdiff
path: root/math/py-numpy
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2014-02-20 08:03:41 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2014-02-20 08:03:41 +0000
commitc8608f042f9a8ac3dd535eed2cf0608add02c928 (patch)
treebaf002ce53c922f4e018c21ce58f3557fe17f461 /math/py-numpy
parent365e1a66d77717e0159848643eb039df4b26d1fd (diff)
downloadports-c8608f042f9a8ac3dd535eed2cf0608add02c928.tar.gz
ports-c8608f042f9a8ac3dd535eed2cf0608add02c928.zip
Notes
Diffstat (limited to 'math/py-numpy')
-rw-r--r--math/py-numpy/Makefile46
-rw-r--r--math/py-numpy/distinfo8
-rw-r--r--math/py-numpy/files/fenv.patch66
3 files changed, 2 insertions, 118 deletions
diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile
index 042bbbc4ede4..7bd37e69b4c5 100644
--- a/math/py-numpy/Makefile
+++ b/math/py-numpy/Makefile
@@ -25,7 +25,7 @@ OPTIONS_DEFAULT= SUITESPARSE
ATLAS_DESC= Use optimized blas library
SUITESPARSE_DESC= Use AMD and UMFPACK in SuiteSparse
-USES= fortran
+USE_FORTRAN= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_CONFIGUREARGS+= --fcompiler=gnu95
@@ -33,28 +33,10 @@ PYDISTUTILS_BUILDARGS+= --fcompiler=gnu95
PYTHON_PY3K_PLIST_HACK= yes
PORTDOCS= *
-LATEST_LINK= py-${PORTNAME}
WRKSRC= ${WRKDIR}/${DISTNAME:S/r/rc/}
.include <bsd.port.pre.mk>
-.if (${OSVERSION} <= 703100 || \
-(${OSVERSION} >= 800000 && ${OSVERSION} <= 800502) || \
-(${OSVERSION} >= 900000 && ${OSVERSION} <= 900009)) && \
-(${ARCH} == "i386" || ${ARCH} == "amd64")
-WITH_FIXED_FENV= yes
-.endif
-
-.if defined(WITH_FIXED_FENV)
-MASTER_SITES+= http://svn.freebsd.org/base/head/lib/msun/:fp
-.if ${ARCH} == "i386"
-FP_ARCH= i387
-.elif ${ARCH} == "amd64"
-FP_ARCH= ${ARCH}
-.endif
-DISTFILES+= ${FP_ARCH}/fenv.c?p=203441:fp ${FP_ARCH}/fenv.h?p=203441:fp
-.endif
-
.if ${PORT_OPTIONS:MATLAS}
LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
.else
@@ -77,15 +59,8 @@ post-patch:
@${REINPLACE_CMD} -e "s|'LDFLAGS'|None|" ${WRKSRC}/numpy/distutils/fcompiler/__init__.py
GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so|${SED} -e s/libgfortran.so//
+
pre-configure:
-.if defined(WITH_FIXED_FENV)
- @if [ "`${PKG_VERSION} -t \"\`\\\`${CC} -print-prog-name=as\\\` --version | ${AWK} 'NR==1 {sub(/\(GNU Binutils\)/,""); print $$3}'\`\" 2.18.49`" = ">" ] ; then \
- ${CP} ${DISTDIR}/${FP_ARCH}/fenv.c?p=203441 ${WRKSRC}/numpy/core/include/numpy/fenv/fenv.c; \
- ${CP} ${DISTDIR}/${FP_ARCH}/fenv.h?p=203441 ${WRKSRC}/numpy/core/include/numpy/fenv/fenv.h; \
- ${REINPLACE_CMD} -e 's|<fenv.h>|"fenv.h"|' ${WRKSRC}/numpy/core/include/numpy/fenv/fenv.c; \
- ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/fenv.patch; \
- fi
-.endif
.if ${PORT_OPTIONS:MATLAS}
@${REINPLACE_CMD} -e "s+%%ATLASLIBS%%+alapack, f77blas, cblas, atlas+" ${WRKSRC}/site.cfg
.else
@@ -99,27 +74,10 @@ pre-configure:
${WRKSRC}/site.cfg
@${REINPLACE_CMD} -e "s+%%GCCLIBDIR%%+$$(${GCCLIBDIR_CMDS})+" ${WRKSRC}/numpy/distutils/system_info.py
-pre-install:
-.if defined(WITH_FIXED_FENV)
- @if [ "`${PKG_VERSION} -t \"\`\\\`${CC} -print-prog-name=as\\\` --version | ${AWK} 'NR==1 {sub(/\(GNU Binutils\)/,""); print $$3}'\`\" 2.18.49`" = ">" ] ; then \
- ${RM} ${WRKSRC}/numpy/core/include/numpy/fenv/fenv.c.bak; \
- fi
-.endif
-
post-install:
${INSTALL_MAN} ${WRKSRC}/numpy/f2py/f2py.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/numpy-ref-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/numpy-user-${PORTVERSION}.pdf ${STAGEDIR}${DOCSDIR}
-.if defined(WITH_FIXED_FENV)
- @if [ "`${PKG_VERSION} -t \"\`\\\`${CC} -print-prog-name=as\\\` --version | ${AWK} 'NR==1 {sub(/\(GNU Binutils\)/,""); print $$3}'\`\" 2.18.49`" = ">" ] ; then \
- ${REINPLACE_CMD} -e "s|%%FENV%%||g" ${TMPPLIST}; \
- else \
- ${REINPLACE_CMD} -e "s|%%FENV%%|@comment |g" ${TMPPLIST}; \
- fi
-.else
- @${REINPLACE_CMD} -e "s|%%FENV%%|@comment |g" ${TMPPLIST}
-.endif
-
.include <bsd.port.post.mk>
diff --git a/math/py-numpy/distinfo b/math/py-numpy/distinfo
index 249962c662a7..eb41d8aba803 100644
--- a/math/py-numpy/distinfo
+++ b/math/py-numpy/distinfo
@@ -4,11 +4,3 @@ SHA256 (numpy-ref-1.8.0.pdf) = 49ecb1d768eb48598439cc63058f830ca3522fe1cfeba1a32
SIZE (numpy-ref-1.8.0.pdf) = 5324229
SHA256 (numpy-user-1.8.0.pdf) = a8c30360f9e46c63cfdf48fa594971d94d68ce59ece08c13d4acde8b14032cfe
SIZE (numpy-user-1.8.0.pdf) = 408447
-SHA256 (i387/fenv.c?p=203441) = c7c558ddb6ab6604c83062fe0655d3ce8cf4d60edb4c9c82777962c49d23ca54
-SIZE (i387/fenv.c?p=203441) = 4791
-SHA256 (i387/fenv.h?p=203441) = 40c72f3cdd6990076394056e06461e1daeb6087b6a32f1962d3c33b0a00c0e0d
-SIZE (i387/fenv.h?p=203441) = 6774
-SHA256 (amd64/fenv.c?p=203441) = 9741a9ad3f8406f8292a268b0bc288dc7cb042e3e102440696d48c9a8b7955f0
-SIZE (amd64/fenv.c?p=203441) = 3601
-SHA256 (amd64/fenv.h?p=203441) = 2daf607fea1bf7e8de5e174599d963fc3bbbe48e293cf2ff08e221351472c9d6
-SIZE (amd64/fenv.h?p=203441) = 5810
diff --git a/math/py-numpy/files/fenv.patch b/math/py-numpy/files/fenv.patch
deleted file mode 100644
index 66bedfdd039e..000000000000
--- a/math/py-numpy/files/fenv.patch
+++ /dev/null
@@ -1,66 +0,0 @@
---- numpy/core/include/numpy/ufuncobject.h.orig 2011-07-20 13:25:27.000000000 -0500
-+++ numpy/core/include/numpy/ufuncobject.h 2011-12-07 20:42:53.811178415 -0600
-@@ -229,7 +229,11 @@
-
- #if defined(__GLIBC__) || defined(__APPLE__) || \
- defined(__MINGW32__) || defined(__FreeBSD__)
-+#if defined(__FreeBSD__) && (__FreeBSD_version <= 900009)
-+#include "fenv/fenv.c"
-+#else
- #include <fenv.h>
-+#endif
- #elif defined(__CYGWIN__)
- #include "fenv/fenv.c"
- #endif
---- numpy/numarray/_capi.c.orig 2010-11-21 01:34:43.000000000 -0600
-+++ numpy/numarray/_capi.c 2011-12-07 20:45:35.038394561 -0600
-@@ -10,7 +10,12 @@
- #endif
-
- #if defined(__GLIBC__) || defined(__APPLE__) || defined(__MINGW32__) || (defined(__FreeBSD__) && (__FreeBSD_version >= 502114))
-+#if defined(__FreeBSD__) && (__FreeBSD_version <= 900009)
-+#include "numpy/fenv/fenv.h"
-+#include "numpy/fenv/fenv.c"
-+#else
- #include <fenv.h>
-+#endif
- #elif defined(__CYGWIN__)
- #include "numpy/fenv/fenv.h"
- #include "numpy/fenv/fenv.c"
---- numpy/core/setupscons.py.orig 2010-11-21 01:34:42.000000000 -0600
-+++ numpy/core/setupscons.py 2011-12-07 21:48:34.674089097 -0600
-@@ -98,7 +98,7 @@
- config.numpy_include_dirs.extend(config.paths('include'))
-
- # Don't install fenv unless we need them.
-- if sys.platform == 'cygwin':
-+ if sys.platform == 'cygwin' or sys.platform.startswith('freebsd'):
- config.add_data_dir('include/numpy/fenv')
-
- config.add_data_dir('tests')
---- numpy/core/setup.py.orig 2011-07-20 13:25:27.000000000 -0500
-+++ numpy/core/setup.py 2011-12-07 21:48:51.360904277 -0600
-@@ -664,7 +664,7 @@
- ]
-
- # Don't install fenv unless we need them.
-- if sys.platform == 'cygwin':
-+ if sys.platform == 'cygwin' or sys.platform.startswith('freebsd'):
- config.add_data_dir('include/numpy/fenv')
-
- config.add_extension('_sort',
---- numpy/core/src/npymath/ieee754.c.src.orig 2011-03-10 23:56:15.000000000 -0600
-+++ numpy/core/src/npymath/ieee754.c.src 2011-12-07 20:52:14.671971546 -0600
-@@ -585,7 +585,11 @@
-
- # if defined(__GLIBC__) || defined(__APPLE__) || \
- defined(__MINGW32__) || defined(__FreeBSD__)
--# include <fenv.h>
-+# if defined(__FreeBSD__) && (__FreeBSD_version <= 900009)
-+# include "numpy/fenv/fenv.h"
-+# else
-+# include <fenv.h>
-+# endif
- # elif defined(__CYGWIN__)
- # include "fenv/fenv.c"
- # endif