[151024] trunk/dports/lang/python35/Portfile
jwa at macports.org
jwa at macports.org
Fri Aug 5 10:06:06 PDT 2016
Revision: 151024
https://trac.macports.org/changeset/151024
Author: jwa at macports.org
Date: 2016-08-05 10:06:06 -0700 (Fri, 05 Aug 2016)
Log Message:
-----------
python35: whitespace only + replace tabs with spaces
Modified Paths:
--------------
trunk/dports/lang/python35/Portfile
Modified: trunk/dports/lang/python35/Portfile
===================================================================
--- trunk/dports/lang/python35/Portfile 2016-08-05 16:53:36 UTC (rev 151023)
+++ trunk/dports/lang/python35/Portfile 2016-08-05 17:06:06 UTC (rev 151024)
@@ -4,97 +4,97 @@
PortSystem 1.0
PortGroup select 1.0
-name python35
+name python35
# Remember to keep py35-tkinter and py35-gdbm's versions sync'd with this
-version 3.5.2
+version 3.5.2
-epoch 20160627
+epoch 20160627
-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}/
+homepage http://www.python.org/
+master_sites ${homepage}ftp/python/${version}/
-distname Python-${version}
+distname Python-${version}
-use_xz yes
+use_xz yes
checksums rmd160 709be7df28045c4fc8ed40cadd299478439f9522 \
sha256 0010f56100b9b74259ebcd5d4b295a32324b58b517403a10d1a2aa7cb22bca40
-patchfiles patch-setup.py.diff \
- patch-Lib-cgi.py.diff \
- patch-configure.diff \
- patch-setup.py-disabled_modules.diff \
- patch-Lib-ctypes-macholib-dyld.py.diff \
- patch-libedit.diff \
- omit-local-site-packages.patch \
- patch-xcode4bug.diff
+patchfiles patch-setup.py.diff \
+ patch-Lib-cgi.py.diff \
+ patch-configure.diff \
+ patch-setup.py-disabled_modules.diff \
+ patch-Lib-ctypes-macholib-dyld.py.diff \
+ patch-libedit.diff \
+ omit-local-site-packages.patch \
+ patch-xcode4bug.diff
-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
# ensurepip arg may be removed later, now conflicts with pip and setuptools
# packages
-configure.args --enable-framework=${frameworks_dir} \
- --enable-ipv6 \
- --with-computed-gotos \
- --with-ensurepip=no
+configure.args --enable-framework=${frameworks_dir} \
+ --enable-ipv6 \
+ --with-computed-gotos \
+ --with-ensurepip=no
-configure.ccache no
+configure.ccache no
-use_parallel_build yes
+use_parallel_build yes
post-patch {
- reinplace "s|@@PREFIX@@|${prefix}|g" \
- ${worksrcpath}/Lib/cgi.py \
- ${worksrcpath}/Lib/ctypes/macholib/dyld.py
+ reinplace "s|@@PREFIX@@|${prefix}|g" \
+ ${worksrcpath}/Lib/cgi.py \
+ ${worksrcpath}/Lib/ctypes/macholib/dyld.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
@@ -114,42 +114,42 @@
"
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
foreach unversioned {2to3 idle3 pydoc3 python3 python3-config pyvenv} {
delete ${destroot}${prefix}/bin/${unversioned}
}
}
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 readline description {Use readline instead of libedit} {
- patchfiles-delete patch-libedit.diff
- depends_lib-append port:readline
- depends_lib-delete port:libedit
+ patchfiles-delete patch-libedit.diff
+ depends_lib-append port:readline
+ depends_lib-delete port:libedit
}
variant universal {
@@ -163,12 +163,12 @@
}
}
reinplace \
- "s|UNIVERSAL_ARCH_FLAGS=\".*\"|UNIVERSAL_ARCH_FLAGS=\"${universal_arch_flags}\"|" \
- ${worksrcpath}/configure
+ "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}\"|" \
- ${worksrcpath}/configure
+ "s|ARCH_RUN_32BIT=\".*\"|ARCH_RUN_32BIT=\"arch ${arch_run_32bit}\"|" \
+ ${worksrcpath}/configure
}
}
if {${configure.sdkroot} != ""} {
@@ -187,9 +187,9 @@
}
}
-livecheck.type regex
-#livecheck.url ${homepage}download/releases/
-livecheck.url ${homepage}downloads/source/
-livecheck.regex Python (${branch}(?:\\.\\d+)*)
+livecheck.type regex
+#livecheck.url ${homepage}download/releases/
+livecheck.url ${homepage}downloads/source/
+livecheck.regex Python (${branch}(?:\\.\\d+)*)
#regex below just for test releases, proper above
-#livecheck.regex Python\[ \]+(3.5.0\[abrc\]+\[0-9\])
+#livecheck.regex Python\[ \]+(3.5.0\[abrc\]+\[0-9\])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160805/62e0e9cf/attachment.html>
More information about the macports-changes
mailing list