[40883] trunk/dports/lang/python26/Portfile
blb at macports.org
blb at macports.org
Thu Oct 16 23:27:45 PDT 2008
Revision: 40883
http://trac.macports.org/changeset/40883
Author: blb at macports.org
Date: 2008-10-16 23:27:44 -0700 (Thu, 16 Oct 2008)
Log Message:
-----------
lang/python26 - whitespace changes (patch 1 from #16765)
Modified Paths:
--------------
trunk/dports/lang/python26/Portfile
Modified: trunk/dports/lang/python26/Portfile
===================================================================
--- trunk/dports/lang/python26/Portfile 2008-10-17 05:19:30 UTC (rev 40882)
+++ trunk/dports/lang/python26/Portfile 2008-10-17 06:27:44 UTC (rev 40883)
@@ -44,14 +44,14 @@
use_parallel_build no
post-patch {
- reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
- reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \
- Mac/Makefile.in Mac/IDLE/Makefile.in \
- Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \
- Mac/PythonLauncher/Makefile.in \
- Mac/BuildScript/build-installer.py
- reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \
- Mac/PythonLauncher/Makefile.in
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py
+ reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \
+ Mac/Makefile.in Mac/IDLE/Makefile.in \
+ Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \
+ Mac/PythonLauncher/Makefile.in \
+ Mac/BuildScript/build-installer.py
+ reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \
+ Mac/PythonLauncher/Makefile.in
}
build.target all libpython${branch}.dylib
@@ -59,9 +59,9 @@
# TODO: From python24, do we still need this?
# Workaround for case-sensitive file systems
post-build {
- if { ![file exists ${worksrcpath}/python.exe] } {
- ln -s python ${worksrcpath}/python.exe
- }
+ if { ![file exists ${worksrcpath}/python.exe] } {
+ ln -s python ${worksrcpath}/python.exe
+ }
}
test.run yes
@@ -70,74 +70,73 @@
destroot.target frameworkinstall maninstall
post-destroot {
- set framewpath ${prefix}/Library/Frameworks/Python.framework
- set framewdir ${framewpath}/Versions/${branch}
+ set framewpath ${prefix}/Library/Frameworks/Python.framework
+ set framewdir ${framewpath}/Versions/${branch}
- foreach dir { lib include } {
- file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
- ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
- }
+ foreach dir { lib include } {
+ file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
+ ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
+ }
- file rename ${destroot}${framewdir}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib
- ln -s ${prefix}/lib/libpython${branch}.dylib ${destroot}${framewdir}/lib/libpython${branch}.dylib
+ file rename ${destroot}${framewdir}/lib/libpython${branch}.dylib ${destroot}${prefix}/lib
+ ln -s ${prefix}/lib/libpython${branch}.dylib ${destroot}${framewdir}/lib/libpython${branch}.dylib
- file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
+ file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
- # 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}
- }
- foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {
- file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin
- ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}
- }
+ # 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}
+ }
+ foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {
+ file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin
+ ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}
+ }
- foreach dir { Headers Resources Python Versions/Current } {
- file delete ${destroot}${framewpath}/${dir}
- }
+ foreach dir { Headers Resources Python Versions/Current } {
+ file delete ${destroot}${framewpath}/${dir}
+ }
- # 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/
+ # 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/
}
post-activate {
- ui_msg "\nTo fully complete your installation and make python $branch the default, please run
+ ui_msg "\nTo fully complete your installation and make python $branch the default, please run
\n\tsudo port install python_select \
\n\tsudo python_select $name\n"
}
platform darwin 7 {
- # there is no SystemStubs on 10.3
- post-patch {
- reinplace "s|-lSystemStubs||g" \
- configure configure.in
- }
- post-configure {
- reinplace "s|-lSystemStubs||g" \
- Makefile.pre.in Makefile.pre Makefile
- }
- # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth at gmail.com, ticket #13322)
- configure.ldflags-append "-lcc_dynamic"
+ # there is no SystemStubs on 10.3
+ post-patch {
+ reinplace "s|-lSystemStubs||g" configure configure.in
+ }
+ post-configure {
+ reinplace "s|-lSystemStubs||g" Makefile.pre.in Makefile.pre Makefile
+ }
+ # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth at gmail.com, ticket #13322)
+ configure.ldflags-append "-lcc_dynamic"
}
platform darwin 8 {
- # TODO: would configure.compiler be more appropriate?
- configure.args-append --with-cxx=/usr/bin/g++-4.0
+ # TODO: would configure.compiler be more appropriate?
+ configure.args-append --with-cxx=/usr/bin/g++-4.0
}
platform darwin 9 {
- configure.cppflags-append -D__DARWIN_UNIX03
+ configure.cppflags-append -D__DARWIN_UNIX03
}
platform darwin 10 {
- configure.compiler gcc-4.2
+ configure.compiler gcc-4.2
}
variant universal {
- configure.args-append --enable-universalsdk
+ configure.args-append --enable-universalsdk
}
livecheck.check regex
livecheck.url ${homepage}download/releases/
livecheck.regex Python (${branch}.\[0-9\]+)
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081016/497095f1/attachment.html
More information about the macports-changes
mailing list