Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 May 2014 14:08:42 +0000 (UTC)
From:      Jimmy Olgeni <olgeni@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r355023 - head/devel/ipython
Message-ID:  <201405241408.s4OE8gOT014369@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: olgeni
Date: Sat May 24 14:08:42 2014
New Revision: 355023
URL: http://svnweb.freebsd.org/changeset/ports/355023
QAT: https://qat.redports.org/buildarchive/r355023/

Log:
  Borrow a fix for numpy for french/eficas: set LD_LIBRARY_PATH to
  _GCC_RUNTIME to avoid linker errors when importing matplotlib.

Modified:
  head/devel/ipython/Makefile

Modified: head/devel/ipython/Makefile
==============================================================================
--- head/devel/ipython/Makefile	Sat May 24 14:05:30 2014	(r355022)
+++ head/devel/ipython/Makefile	Sat May 24 14:08:42 2014	(r355023)
@@ -3,6 +3,7 @@
 
 PORTNAME=	ipython
 PORTVERSION=	2.1.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -16,6 +17,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pexp
 
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
+USE_GCC=        yes # To be removed - Needed as a work-around for numpy, see PR ports/188114
 PYDISTUTILS_AUTOPLIST=yes
 
 OPTIONS_DEFINE=	X11 HTML_NOTEBOOK ZMQ
@@ -49,6 +51,15 @@ post-install:
 .if ${PORT_OPTIONS:MEXAMPLES}
 	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
 .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>
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405241408.s4OE8gOT014369>