[25164] trunk/dports/lang/python24/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Tue May 15 00:15:03 PDT 2007


Revision: 25164
          http://trac.macosforge.org/projects/macports/changeset/25164
Author:   jann at macports.org
Date:     2007-05-15 00:15:03 -0700 (Tue, 15 May 2007)

Log Message:
-----------
attempt to fix build problems on case-sensitve file systems

Modified Paths:
--------------
    trunk/dports/lang/python24/Portfile

Modified: trunk/dports/lang/python24/Portfile
===================================================================
--- trunk/dports/lang/python24/Portfile	2007-05-15 07:08:52 UTC (rev 25163)
+++ trunk/dports/lang/python24/Portfile	2007-05-15 07:15:03 UTC (rev 25164)
@@ -44,6 +44,14 @@
     reinplace "s|__PREFIX__|${prefix}|g" Mac/OSX/Makefile.in
 }
 
+# Workaround for case-sensitive file systems
+post-build {
+    if { ![file exists ${worksrcpath}/python.exe] } {
+        cd ${worksrcpath}
+        ln -s python python.exe  
+    }
+}
+
 test.run        yes
 test.target     test
 
@@ -60,22 +68,22 @@
             && ln -sf ${framewdir}/Versions/2.4/bin/pydoc pydoc24"
         system "cd ${destroot}${framewdir}/Versions/2.4/lib/python2.4 \
             && ln -s ${prefix}/lib/python2.4/config config"
-    	system "cd ${destroot}${prefix}/lib && \
+        system "cd ${destroot}${prefix}/lib && \
         ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib \
             libpython${version}.dylib && \
         ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib \
             libpython${major_version}.dylib && \
         ln -s ${framewdir}/Versions/2.4/lib/libpython${major_version}.${minor_version}.dylib \
             libpython.dylib"
-	} else {
-	    system "cd ${destroot}${prefix}/lib && \
+    } else {
+        system "cd ${destroot}${prefix}/lib && \
         ln -s libpython${major_version}.${minor_version}.dylib \
             libpython${version}.dylib && \
         ln -s libpython${major_version}.${minor_version}.dylib \
             libpython${major_version}.dylib && \
         ln -s libpython${major_version}.${minor_version}.dylib \
             libpython.dylib"
-	}
+    }
 }
 
 platform puredarwin {
@@ -92,4 +100,3 @@
 livecheck.check regex
 livecheck.url   http://www.python.org/download/releases/
 livecheck.regex Python (2.4.\[0-9\]+)
-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070515/f831f292/attachment.html


More information about the macports-changes mailing list