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

blb at macports.org blb at macports.org
Wed Mar 18 22:52:15 PDT 2009


Revision: 48319
          http://trac.macports.org/changeset/48319
Author:   blb at macports.org
Date:     2009-03-18 22:52:14 -0700 (Wed, 18 Mar 2009)
Log Message:
-----------
lang/python24 - whitespace changes for better consistency

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

Modified: trunk/dports/lang/python24/Portfile
===================================================================
--- trunk/dports/lang/python24/Portfile	2009-03-19 03:52:06 UTC (rev 48318)
+++ trunk/dports/lang/python24/Portfile	2009-03-19 05:52:14 UTC (rev 48319)
@@ -51,14 +51,14 @@
 use_parallel_build      no
 
 post-patch {
-        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py \
-           ${worksrcpath}/Lib/site.py ${worksrcpath}/setup.py
-        reinplace "s|__FRAMEWORKS_DIR__|${frameworks_dir}|g" \
-           ${worksrcpath}/Mac/OSX/Makefile.in
-        reinplace "s|__APPLICATIONS_DIR__|${applications_dir}|g" \
-           ${worksrcpath}/Mac/OSX/IDLE/Makefile.in \
-           ${worksrcpath}/Mac/OSX/Makefile.in \
-           ${worksrcpath}/Mac/OSX/PythonLauncher/Makefile.in
+    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py \
+        ${worksrcpath}/Lib/site.py ${worksrcpath}/setup.py
+    reinplace "s|__FRAMEWORKS_DIR__|${frameworks_dir}|g" \
+        ${worksrcpath}/Mac/OSX/Makefile.in
+    reinplace "s|__APPLICATIONS_DIR__|${applications_dir}|g" \
+        ${worksrcpath}/Mac/OSX/IDLE/Makefile.in \
+        ${worksrcpath}/Mac/OSX/Makefile.in \
+        ${worksrcpath}/Mac/OSX/PythonLauncher/Makefile.in
 }
 
 build.target            all
@@ -76,7 +76,7 @@
 destroot.target         frameworkinstall maninstall
 
 platform macosx {
-post-destroot {
+    post-destroot {
         set framewpath ${frameworks_dir}/Python.framework
         set framewdir  ${framewpath}/Versions/${branch}
 
@@ -113,8 +113,8 @@
         # full path to the proper Python framework file (which becomes
         # ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/Python)
         reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${prefix}/lib/python${branch}/config/Makefile
+    }
 }
-}
 
 post-activate {
     ui_msg "\nTo fully complete your installation and make python $branch the default, please run
@@ -123,22 +123,22 @@
 }
 
 platform darwin {
-        post-configure {
-                # See http://trac.macports.org/ticket/18376
-                system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
-        }
+    post-configure {
+        # See http://trac.macports.org/ticket/18376
+        system "cd ${worksrcpath} && ed - pyconfig.h < ${filespath}/pyconfig.ed"
+    }
 }
 
 platform darwin 9 {
-        configure.cppflags-append       -D__DARWIN_UNIX03
+    configure.cppflags-append       -D__DARWIN_UNIX03
 }
 
 platform puredarwin {
-        configure.args-delete   --enable-framework=${frameworks_dir}
-        configure.args-append   --disable-toolbox-glue --disable-framework
-        destroot.target     install maninstall
+    configure.args-delete   --enable-framework=${frameworks_dir}
+    configure.args-append   --disable-toolbox-glue --disable-framework
+    destroot.target         install maninstall
 
-post-destroot {
+    post-destroot {
         # delete symlinks without version suffix, use python_select instead to choose version
         foreach bin { python pythonw idle pydoc smtpd.py python-config } {
             file delete ${destroot}${prefix}/bin/${bin}
@@ -149,11 +149,11 @@
         # install select file for python_select
         xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
         xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
+    }
 }
-}
 
 variant universal {
-        configure.args-append           --enable-universalsdk=${universal_sysroot}
+    configure.args-append           --enable-universalsdk=${universal_sysroot}
 }
 
 livecheck.check         regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090318/5b7b0d29/attachment-0001.html>


More information about the macports-changes mailing list