1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Borrow a fix for numpy for french/eficas: set LD_LIBRARY_PATH to

_GCC_RUNTIME to avoid linker errors when importing matplotlib.
This commit is contained in:
Jimmy Olgeni 2014-05-24 14:08:42 +00:00
parent 4623ec9ce2
commit 1e61cff2b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355023

View File

@ -3,6 +3,7 @@
PORTNAME= ipython PORTNAME= ipython
PORTVERSION= 2.1.0 PORTVERSION= 2.1.0
PORTREVISION= 1
CATEGORIES= devel python CATEGORIES= devel python
MASTER_SITES= CHEESESHOP MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -16,6 +17,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pexpect>=2:${PORTSDIR}/misc/py-pexpect \
USE_PYTHON= yes USE_PYTHON= yes
USE_PYDISTUTILS=yes USE_PYDISTUTILS=yes
USE_GCC= yes # To be removed - Needed as a work-around for numpy, see PR ports/188114
PYDISTUTILS_AUTOPLIST=yes PYDISTUTILS_AUTOPLIST=yes
OPTIONS_DEFINE= X11 HTML_NOTEBOOK ZMQ OPTIONS_DEFINE= X11 HTML_NOTEBOOK ZMQ
@ -49,6 +51,15 @@ post-install:
.if ${PORT_OPTIONS:MEXAMPLES} .if ${PORT_OPTIONS:MEXAMPLES}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endif .endif
@${ECHO_CMD} "/EASY-INSTALL" > ${WRKDIR}/ex.script
@${ECHO_CMD} "a" >> ${WRKDIR}/ex.script
@${ECHO_CMD} "import os" >> ${WRKDIR}/ex.script
@${ECHO_CMD} "os.environ[\"LD_LIBRARY_PATH\"]=\"${_GCC_RUNTIME}\"" >> ${WRKDIR}/ex.script
@${ECHO_CMD} "." >> ${WRKDIR}/ex.script
@${ECHO_CMD} "x!" >> ${WRKDIR}/ex.script
@for file in ${STAGEDIR}${PREFIX}/bin/*; do \
ex $${file} < ${WRKDIR}/ex.script > /dev/null; \
done
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>