[49490] trunk/dports/lang/python25/Portfile
raimue at macports.org
raimue at macports.org
Fri Apr 10 18:10:55 PDT 2009
Revision: 49490
http://trac.macports.org/changeset/49490
Author: raimue at macports.org
Date: 2009-04-10 18:10:55 -0700 (Fri, 10 Apr 2009)
Log Message:
-----------
lang/python25:
Fix LINKFORSHARED value in the same way as for python26.
Modified Paths:
--------------
trunk/dports/lang/python25/Portfile
Modified: trunk/dports/lang/python25/Portfile
===================================================================
--- trunk/dports/lang/python25/Portfile 2009-04-11 00:52:51 UTC (rev 49489)
+++ trunk/dports/lang/python25/Portfile 2009-04-11 01:10:55 UTC (rev 49490)
@@ -5,7 +5,7 @@
name python25
version 2.5.4
-revision 1
+revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
categories lang
platforms darwin
@@ -80,6 +80,14 @@
set framewpath ${frameworks_dir}/Python.framework
set framewdir ${framewpath}/Versions/${branch}
+ # Without this, LINKFORSHARED is set to
+ # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
+ # (this becomes Python.framework/Versions/2.5/Python) which doesn't
+ # quite work (see ticket #15099); instead specifically list the
+ # full path to the proper Python framework file (which becomes
+ # ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/Python)
+ reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config/Makefile
+
foreach dir { lib include } {
file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090410/0992bee7/attachment-0001.html>
More information about the macports-changes
mailing list