From cbd6f0a16af7fa6fa87ca8dc75ba103fb3002794 Mon Sep 17 00:00:00 2001 From: Dmitry Sivachenko Date: Sun, 28 Sep 2014 10:40:54 +0000 Subject: Fix ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48/libgfortran.so.3 not found error when importing numpy module. PR: 188114 Patch by Thierry Thomas --- math/py-numpy/Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'math/py-numpy') diff --git a/math/py-numpy/Makefile b/math/py-numpy/Makefile index afa698ccf9bf..bd323a206888 100644 --- a/math/py-numpy/Makefile +++ b/math/py-numpy/Makefile @@ -3,7 +3,7 @@ PORTNAME= numpy PORTVERSION= 1.8.1 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= math python MASTER_SITES= http://docs.scipy.org/doc/${PORTNAME}/:doc \ @@ -23,6 +23,7 @@ RUN_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose USES= fortran python USE_PYTHON= concurrent distutils py3kplist +LDFLAGS+= -shared OPTIONS_DEFINE= ATLAS SUITESPARSE DOCS OPTIONS_DEFAULT= SUITESPARSE @@ -48,14 +49,12 @@ PLIST_FILES+= man/man1/f2py.1.gz .endif post-extract: - @${CP} ${DISTDIR}/numpy-ref-${PORTVERSION}.pdf ${WRKDIR} - @${CP} ${DISTDIR}/numpy-user-${PORTVERSION}.pdf ${WRKDIR} + ${CP} ${DISTDIR}/numpy-ref-${PORTVERSION}.pdf ${WRKDIR} + ${CP} ${DISTDIR}/numpy-user-${PORTVERSION}.pdf ${WRKDIR} post-patch: - @${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" ${WRKSRC}/numpy/distutils/fcompiler/gnu.py - @${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg -# ignore LDFLAGS from env, as it overrides internal flags (e.g. -shared) for some reason - @${REINPLACE_CMD} -e "s|'LDFLAGS'|None|" ${WRKSRC}/numpy/distutils/fcompiler/__init__.py + ${REINPLACE_CMD} -e "s+%%FC%%+${FC}+" ${WRKSRC}/numpy/distutils/fcompiler/gnu.py + ${CP} ${FILESDIR}/site.cfg ${WRKSRC}/site.cfg GCCLIBDIR_CMDS= ${FC} -print-file-name=libgfortran.so|${SED} -e s/libgfortran.so// -- cgit v1.2.3