[151021] trunk/dports/lang/python33/Portfile

jwa at macports.org jwa at macports.org
Fri Aug 5 09:42:32 PDT 2016


Revision: 151021
          https://trac.macports.org/changeset/151021
Author:   jwa at macports.org
Date:     2016-08-05 09:42:31 -0700 (Fri, 05 Aug 2016)
Log Message:
-----------
python33: whitespace only + replace tabs with spaces

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

Modified: trunk/dports/lang/python33/Portfile
===================================================================
--- trunk/dports/lang/python33/Portfile	2016-08-05 16:30:53 UTC (rev 151020)
+++ trunk/dports/lang/python33/Portfile	2016-08-05 16:42:31 UTC (rev 151021)
@@ -4,96 +4,96 @@
 PortSystem 1.0
 PortGroup select 1.0
 
-name                    python33
+name                python33
 
 # Remember to keep py33-tkinter and py33-gdbm's versions sync'd with this
-version                 3.3.6
-revision                6
+version             3.3.6
+revision            6
 
-epoch                   20141012
+epoch               20141012
 
-set major               [lindex [split $version .] 0]
-set branch              [join [lrange [split ${version} .] 0 1] .]
-categories              lang
-license                 PSF
-platforms               darwin
-maintainers             jwa openmaintainer
+set major           [lindex [split $version .] 0]
+set branch          [join [lrange [split ${version} .] 0 1] .]
+categories          lang
+license             PSF
+platforms           darwin
+maintainers         jwa openmaintainer
 
-description             An interpreted, object-oriented programming language
-long_description        Python is an interpreted, interactive, object-oriented \
-                        programming language.
+description         An interpreted, object-oriented programming language
+long_description    Python is an interpreted, interactive, object-oriented \
+                    programming language.
 
-homepage                http://www.python.org/
-#master_sites            ${homepage}ftp/python/${version}/
-master_sites            ${homepage}ftp/python/${version}/
+homepage            http://www.python.org/
+#master_sites        ${homepage}ftp/python/${version}/
+master_sites        ${homepage}ftp/python/${version}/
 
-distname                Python-${version}
+distname            Python-${version}
 
-use_xz					yes
+use_xz              yes
 
 checksums           rmd160  e45909eedf3648408ef8b34775ab24654181d9bd \
                     sha256  5226e4bf7a530c3ff2bcde0c94e0e09e59a8bcde0114fe0268bc925bdabb5d3f
 
-patchfiles              patch-setup.py.diff \
-                        patch-Lib-cgi.py.diff \
-                        patch-Lib-distutils-dist.py.diff \
-                        patch-configure.diff \
-                        patch-setup.py-disabled_modules.diff \
-                        patch-libedit.diff \
-                        omit-local-site-packages.patch
+patchfiles          patch-setup.py.diff \
+                    patch-Lib-cgi.py.diff \
+                    patch-Lib-distutils-dist.py.diff \
+                    patch-configure.diff \
+                    patch-setup.py-disabled_modules.diff \
+                    patch-libedit.diff \
+                    omit-local-site-packages.patch
 
 # http://bugs.python.org/issue21811
-patchfiles-append       yosemite-configure-fixes.patch \
-                        yosemite-python-fixes.patch
+patchfiles-append   yosemite-configure-fixes.patch \
+                    yosemite-python-fixes.patch
 
-depends_lib             port:zlib path:lib/libssl.dylib:openssl \
-                        port:sqlite3 port:ncurses \
-                        port:bzip2 port:libedit port:gettext \
-                        port:xz
-depends_run             port:python_select \
-                        port:python3_select
+depends_lib         port:zlib path:lib/libssl.dylib:openssl \
+                    port:sqlite3 port:ncurses \
+                    port:bzip2 port:libedit port:gettext \
+                    port:xz
+depends_run         port:python_select \
+                    port:python3_select
 
 # blacklist llvm-gcc-4.2 compiler known to produce bad code
-compiler.blacklist      *llvm-gcc-4.2
+compiler.blacklist  *llvm-gcc-4.2
 
-configure.args          --enable-framework=${frameworks_dir} \
-                        --enable-ipv6 \
-                        --with-computed-gotos
-configure.ccache        no
+configure.args      --enable-framework=${frameworks_dir} \
+                    --enable-ipv6 \
+                    --with-computed-gotos
+configure.ccache    no
 
-use_parallel_build      yes
+use_parallel_build  yes
 
 post-patch {
-   reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Lib/cgi.py
+    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Lib/cgi.py
 
-   reinplace "s|/setup.py|/setup.py --no-user-cfg|" ${worksrcpath}/Makefile.pre.in
+    reinplace "s|/setup.py|/setup.py --no-user-cfg|" ${worksrcpath}/Makefile.pre.in
 
-   # replace /Applications with ${applications_dir}
-   reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" \
+    # replace /Applications with ${applications_dir}
+    reinplace "s|@@APPLICATIONS_DIR@@|${applications_dir}|" \
       ${worksrcpath}/configure
 
-   # See http://trac.macports.org/changeset/37861
-   reinplace "s|xargs -0 rm -r|/usr/bin/xargs -0 /bin/rm -r|g" \
+    # See http://trac.macports.org/changeset/37861
+    reinplace "s|xargs -0 rm -r|/usr/bin/xargs -0 /bin/rm -r|g" \
       ${worksrcpath}/Mac/PythonLauncher/Makefile.in
 }
 
-build.target            all
+build.target        all
 
 # test_cmd_line fails
 # see http://bugs.python.org/issue4388 and
 #     http://bugs.python.org/issue4474
-test.run                yes
-test.target             test
+test.run            yes
+test.target         test
 
-destroot.target         frameworkinstall maninstall
+destroot.target     frameworkinstall maninstall
 
 # ensure that correct compiler is used
-build.args-append       MAKE="${build.cmd} CC=${configure.cc}"
+build.args-append   MAKE="${build.cmd} CC=${configure.cc}"
 destroot.args-append    MAKE="${destroot.cmd} CC=${configure.cc}"
 
 set pythonNoDot python[string map {. {}} $branch]
-select.entries          [list python python-$pythonNoDot $pythonNoDot] \
-                        [list python3 python3-$pythonNoDot $pythonNoDot]
+select.entries      [list python python-$pythonNoDot $pythonNoDot] \
+                    [list python3 python3-$pythonNoDot $pythonNoDot]
 
 set confdir config-${branch}m
 
@@ -106,62 +106,62 @@
 "
 
 post-destroot {
-   set framewpath ${frameworks_dir}/Python.framework
-   set framewdir  ${framewpath}/Versions/${branch}
+    set framewpath ${frameworks_dir}/Python.framework
+    set framewdir  ${framewpath}/Versions/${branch}
 
-   foreach dir { Headers Resources Python Versions/Current } {
-      file delete ${destroot}${framewpath}/${dir}
-   }
+    foreach dir { Headers Resources Python Versions/Current } {
+        file delete ${destroot}${framewpath}/${dir}
+    }
 
-   ln -s ${framewdir}/share/man/man1/python${branch}.1 ${destroot}${prefix}/share/man/man1/
+    ln -s ${framewdir}/share/man/man1/python${branch}.1 ${destroot}${prefix}/share/man/man1/
 
-   # Without this, LINKFORSHARED is set to
-   # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
-   # (this becomes Python.framework/Versions/3.2/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/3.2/Python)
+    # Without this, LINKFORSHARED is set to
+    # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
+    # (this becomes Python.framework/Versions/3.2/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/3.2/Python)
     reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
 
-   # remove -arch flags from the config
+    # remove -arch flags from the config
     reinplace -E {s|-arch [a-z0-9_]+||g} \
-       ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
+      ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
 }
 
 platform darwin {
-   post-configure {
-      # See http://trac.macports.org/ticket/18376
-      system -W ${worksrcpath} "ed - pyconfig.h < ${filespath}/pyconfig.ed"
-   }
+    post-configure {
+        # See http://trac.macports.org/ticket/18376
+        system -W ${worksrcpath} "ed - pyconfig.h < ${filespath}/pyconfig.ed"
+    }
 }
 
 variant universal {
-   post-patch {
-      set universal_arch_flags {}
-      set arch_run_32bit {}
-      foreach arch ${universal_archs} {
-         lappend universal_arch_flags -arch ${arch}
-         if {${arch} eq "i386" || ${arch} eq "ppc"} {
-            lappend arch_run_32bit -${arch}
-         }
-      }
-      reinplace \
-         "s|UNIVERSAL_ARCH_FLAGS=\".*\"|UNIVERSAL_ARCH_FLAGS=\"${universal_arch_flags}\"|" \
+    post-patch {
+        set universal_arch_flags {}
+        set arch_run_32bit {}
+        foreach arch ${universal_archs} {
+            lappend universal_arch_flags -arch ${arch}
+            if {${arch} eq "i386" || ${arch} eq "ppc"} {
+                lappend arch_run_32bit -${arch}
+            }
+        }
+        reinplace \
+          "s|UNIVERSAL_ARCH_FLAGS=\".*\"|UNIVERSAL_ARCH_FLAGS=\"${universal_arch_flags}\"|" \
          ${worksrcpath}/configure
-      if { ${arch_run_32bit} != "" } {
-         reinplace \
-            "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \
+        if { ${arch_run_32bit} != "" } {
+            reinplace \
+              "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \
             ${worksrcpath}/configure
-      }
-   }
-   if {${configure.sdkroot} != ""} {
-      configure.args-append   --enable-universalsdk=${configure.sdkroot}
-   } else {
-      configure.args-append   --enable-universalsdk=/
-   }
-   post-configure {
-      system -W ${worksrcpath} "ed - pyconfig.h < ${filespath}/pyconfig.h-universal.ed"
-   }
+        }
+    }
+    if {${configure.sdkroot} != ""} {
+        configure.args-append   --enable-universalsdk=${configure.sdkroot}
+    } else {
+        configure.args-append   --enable-universalsdk=/
+    }
+    post-configure {
+        system -W ${worksrcpath} "ed - pyconfig.h < ${filespath}/pyconfig.h-universal.ed"
+    }
 
     post-destroot {
         foreach unversioned {python3-32} {
@@ -170,7 +170,7 @@
     }
 }
 
-livecheck.type          regex
-#livecheck.url           ${homepage}download/releases/
-livecheck.url           ${homepage}downloads/
-livecheck.regex         Python (${branch}(?:\\.\\d+)*)
+livecheck.type      regex
+#livecheck.url       ${homepage}download/releases/
+livecheck.url       ${homepage}downloads/
+livecheck.regex     Python (${branch}(?:\\.\\d+)*)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160805/97cb8575/attachment.html>


More information about the macports-changes mailing list