[36461] branches/python-frameworks/dports/lang/python25/Portfile
raimue at macports.org
raimue at macports.org
Fri May 2 17:27:21 PDT 2008
Revision: 36461
http://trac.macosforge.org/projects/macports/changeset/36461
Author: raimue at macports.org
Date: 2008-05-02 17:27:21 -0700 (Fri, 02 May 2008)
Log Message:
-----------
lang/python25:
Tabs to spaces
Modified Paths:
--------------
branches/python-frameworks/dports/lang/python25/Portfile
Modified: branches/python-frameworks/dports/lang/python25/Portfile
===================================================================
--- branches/python-frameworks/dports/lang/python25/Portfile 2008-05-03 00:22:04 UTC (rev 36460)
+++ branches/python-frameworks/dports/lang/python25/Portfile 2008-05-03 00:27:21 UTC (rev 36461)
@@ -2,25 +2,25 @@
PortSystem 1.0
-name python25
-version 2.5.2
-revision 2
-categories lang
-platforms darwin
-maintainers mww
+name python25
+version 2.5.2
+revision 2
+categories lang
+platforms darwin
+maintainers mww
-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}/ \
- ftp://ftp.python.org/pub/python/${version}/ \
- ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \
- ftp://ftp.python.jp/pub/python/${version}/
+homepage http://www.python.org/
+master_sites ${homepage}/ftp/python/${version}/ \
+ ftp://ftp.python.org/pub/python/${version}/ \
+ ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \
+ ftp://ftp.python.jp/pub/python/${version}/
-distname Python-${version}
-use_bzip2 yes
+distname Python-${version}
+use_bzip2 yes
checksums md5 afb5451049eda91fbde10bd5a4b7fadc \
sha1 4755d212f50af704c20224a6966e23acc5aea60f \
@@ -30,48 +30,48 @@
patchfiles patch-Makefile.pre.in.diff \
patch-setup.py.diff \
- patch-Lib-cgi.py.diff
+ patch-Lib-cgi.py.diff
-configure.args --enable-shared \
- --enable-framework=${prefix}/Library/Frameworks \
- --without-readline \
- --enable-ipv6
+configure.args --enable-shared \
+ --enable-framework=${prefix}/Library/Frameworks \
+ --without-readline \
+ --enable-ipv6
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|__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
}
-test.run yes
-test.target test
+test.run yes
+test.target test
destroot.target libpython2.5.dylib frameworkinstall maninstall
post-destroot {
- system "cd ${destroot}${prefix}/bin && \
- rm idle python pythonw pydoc python-config smtpd.py"
- system "cd ${destroot}${prefix}/share/man/man1 && \
- ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/share/man/man1/python.1 python2.5.1"
+ system "cd ${destroot}${prefix}/bin && \
+ rm idle python pythonw pydoc python-config smtpd.py"
+ system "cd ${destroot}${prefix}/share/man/man1 && \
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/share/man/man1/python.1 python2.5.1"
- system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework && \
- rm -f Headers Resources Python && \
- rm -f Versions/Current"
- xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
- xinstall -m 644 ${filespath}/python25 ${destroot}${prefix}/etc/select/python/
- system "mkdir -p ${destroot}${prefix}/include && \
- cd ${destroot}${prefix}/include && \
- ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5"
+ system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework && \
+ rm -f Headers Resources Python && \
+ rm -f Versions/Current"
+ xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
+ xinstall -m 644 ${filespath}/python25 ${destroot}${prefix}/etc/select/python/
+ system "mkdir -p ${destroot}${prefix}/include && \
+ cd ${destroot}${prefix}/include && \
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5"
- system "cd ${destroot}${prefix}/lib && \
- ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/libpython2.5.dylib && \
- ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5"
+ system "cd ${destroot}${prefix}/lib && \
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/libpython2.5.dylib && \
+ ln -sf ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5"
- system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.5/share/man/man1/ && \
- gzip python.1"
+ system "cd ${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.5/share/man/man1/ && \
+ gzip python.1"
}
@@ -80,26 +80,26 @@
}
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 {
- configure.args-append --with-cxx=/usr/bin/g++-4.0
+ configure.args-append --with-cxx=/usr/bin/g++-4.0
}
platform darwin 9 {
- configure.cppflags-append -D__DARWIN_UNIX03
- configure.args-append --with-cxx=/usr/bin/g++-4.0
+ configure.cppflags-append -D__DARWIN_UNIX03
+ configure.args-append --with-cxx=/usr/bin/g++-4.0
}
variant universal {
@@ -108,10 +108,10 @@
# for w/o quicktime sdk, etc. (be prepared for framework build, though)
platform puredarwin {
-# configure.args-delete --enable-framework=${prefix}/Library/Frameworks
- configure.args-append --disable-toolbox-glue --disable-framework
+# configure.args-delete --enable-framework=${prefix}/Library/Frameworks
+ configure.args-append --disable-toolbox-glue --disable-framework
}
-livecheck.check regex
+livecheck.check regex
livecheck.url ${homepage}download/releases/
livecheck.regex {Python (2\.5(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080502/18ea0519/attachment.html
More information about the macports-changes
mailing list