[40731] trunk/dports/lang/python25/Portfile

jmr at macports.org jmr at macports.org
Mon Oct 13 04:37:26 PDT 2008


Revision: 40731
          http://trac.macports.org/changeset/40731
Author:   jmr at macports.org
Date:     2008-10-13 04:37:23 -0700 (Mon, 13 Oct 2008)
Log Message:
-----------
python25: respect applications_dir (maintainer timeout, #16775)

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

Modified: trunk/dports/lang/python25/Portfile
===================================================================
--- trunk/dports/lang/python25/Portfile	2008-10-13 08:41:33 UTC (rev 40730)
+++ trunk/dports/lang/python25/Portfile	2008-10-13 11:37:23 UTC (rev 40731)
@@ -43,9 +43,13 @@
 
 use_parallel_build      no
 
+if {![info exists applications_dir]} {
+    set applications_dir /Applications/MacPorts
+}
+
 post-patch {
         reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
-        reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \
+        reinplace "s|/Applications/MacPython|${applications_dir}/MacPython|g" \
                 Mac/Makefile.in Mac/IDLE/Makefile.in \
                 Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \
                 Mac/PythonLauncher/Makefile.in \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081013/3bf44873/attachment.html 


More information about the macports-changes mailing list