Revision: 116593 https://trac.macports.org/changeset/116593 Author: sean@macports.org Date: 2014-01-29 11:37:00 -0800 (Wed, 29 Jan 2014) Log Message: ----------- ufc: specify python path to avoid linking to the system python; fixes #42306 Modified Paths: -------------- trunk/dports/math/dolfin/Portfile trunk/dports/math/ufc/Portfile Modified: trunk/dports/math/dolfin/Portfile =================================================================== --- trunk/dports/math/dolfin/Portfile 2014-01-29 19:05:39 UTC (rev 116592) +++ trunk/dports/math/dolfin/Portfile 2014-01-29 19:37:00 UTC (rev 116593) @@ -58,6 +58,9 @@ # for the macports version delete ${worksrcpath}/cmake/post-install/ reinplace "s,add_subdirectory(cmake/post-install),," ${worksrcpath}/CMakeLists.txt + + # we also need to find and replace all instances of '/usr/bin/env python' + system -W ${worksrcpath} "find . -type f -exec perl -pi -e 's,/usr/bin/env python,${prefix}/bin/python2.7,' {} +" } # dolfin's configure seems to be too good at find default compilers so we Modified: trunk/dports/math/ufc/Portfile =================================================================== --- trunk/dports/math/ufc/Portfile 2014-01-29 19:05:39 UTC (rev 116592) +++ trunk/dports/math/ufc/Portfile 2014-01-29 19:37:00 UTC (rev 116593) @@ -6,6 +6,7 @@ PortGroup bitbucket 1.0 bitbucket.setup fenics-project ufc 2.3.0 ufc- +revision 1 categories math science python platforms darwin maintainers sean openmaintainer @@ -25,6 +26,11 @@ port:swig-python \ port:boost +configure.args-append \ + -DPYTHON_EXECUTABLE:FILEPATH=${prefix}/bin/python2.7 \ + -DPYTHON_INCLUDE_DIR:PATH=${frameworks_dir}/Python.framework/Headers \ + -DPYTHON_LIBRARY:FILEPATH=${prefix}/lib/libpython2.7.dylib + post-destroot { xinstall -d ${destroot}${frameworks_dir}/Python.framework/Versions/2.7 move ${destroot}${prefix}/lib ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib
participants (1)
-
sean@macports.org