[39015] trunk/dports/lang/python21
jmr at macports.org
jmr at macports.org
Wed Aug 6 00:41:46 PDT 2008
Revision: 39015
http://trac.macosforge.org/projects/macports/changeset/39015
Author: jmr at macports.org
Date: 2008-08-06 00:41:46 -0700 (Wed, 06 Aug 2008)
Log Message:
-----------
python21: fix building on Leopard (#16212)
Modified Paths:
--------------
trunk/dports/lang/python21/Portfile
Added Paths:
-----------
trunk/dports/lang/python21/files/
trunk/dports/lang/python21/files/patch-configure.diff
Modified: trunk/dports/lang/python21/Portfile
===================================================================
--- trunk/dports/lang/python21/Portfile 2008-08-06 07:40:54 UTC (rev 39014)
+++ trunk/dports/lang/python21/Portfile 2008-08-06 07:41:46 UTC (rev 39015)
@@ -22,6 +22,8 @@
depends_lib lib:expat.0:expat
extract.only Python-${version}${extract.suffix}
+patchfiles patch-configure.diff
+
post-patch { reinplace "s|MANDIR=.*/|&share/|" ${worksrcpath}/Makefile.pre.in
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/setup.py
reinplace "s|'Tools/scripts/pydoc'||" ${worksrcpath}/setup.py
Added: trunk/dports/lang/python21/files/patch-configure.diff
===================================================================
--- trunk/dports/lang/python21/files/patch-configure.diff (rev 0)
+++ trunk/dports/lang/python21/files/patch-configure.diff 2008-08-06 07:41:46 UTC (rev 39015)
@@ -0,0 +1,20 @@
+--- configure.orig 2001-12-28 08:55:46.000000000 +1100
++++ configure 2008-08-06 17:33:48.000000000 +1000
+@@ -3038,6 +3038,7 @@
+ # crt1.o) gets erroneously defined as common, which breaks dynamic
+ # loading of any modules which reference it in System.framework
+ next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
++ Darwin/9*) LINKFORSHARED="-framework System -framework Foundation" ;;
+ Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
+ UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";;
+ SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
+--- configure.in.orig 2001-12-28 08:55:46.000000000 +1100
++++ configure.in 2008-08-06 17:33:27.000000000 +1000
+@@ -692,6 +692,7 @@
+ # crt1.o) gets erroneously defined as common, which breaks dynamic
+ # loading of any modules which reference it in System.framework
+ next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
++ Darwin/9*) LINKFORSHARED="-framework System -framework Foundation" ;;
+ Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
+ UnixWare*) LINKFORSHARED="-dy -Bdynamic -Wl,-Bexport";;
+ SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080806/44e38572/attachment.html
More information about the macports-changes
mailing list