diff --git a/Portfile b/Portfile
index 53c9c44..d761e08 100644
a
|
b
|
PortSystem 1.0 |
5 | 5 | name python26 |
6 | 6 | version 2.6 |
7 | 7 | revision 1 |
8 | | set major 2 |
9 | | set branch 2.6 |
| 8 | set major [lindex [split $version .] 0] |
| 9 | set branch [join [lrange [split ${version} .] 0 1] .] |
10 | 10 | categories lang |
11 | 11 | platforms darwin |
12 | | maintainers nomaintainer |
| 12 | maintainers blb |
13 | 13 | |
14 | 14 | description An interpreted, object-oriented programming language |
15 | 15 | long_description Python is an interpreted, interactive, object-oriented \ |
16 | 16 | programming language. |
17 | 17 | |
18 | | homepage http://www.python.org/ |
| 18 | homepage http://www.python.org |
19 | 19 | master_sites ${homepage}/ftp/python/${version}/ \ |
20 | | ftp://ftp.python.org/pub/python/${version}/ \ |
21 | | ftp://ftp.fastorama.com/mirrors/ftp.python.org/pub/python/${version}/ \ |
22 | | ftp://ftp.python.jp/pub/python/${version}/ |
| 20 | ftp://ftp.python.org/pub/python/${version}/ |
| 21 | # ftp.python.jp works, but no 2.6 as of 2008-10-05 |
| 22 | # ftp://ftp.python.jp/ftp.python.org/python/${version}/ |
23 | 23 | |
24 | 24 | distname Python-${version} |
25 | 25 | extract.suffix .tgz |
… |
… |
use_parallel_build no |
46 | 46 | post-patch { |
47 | 47 | reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py |
48 | 48 | reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" \ |
49 | | Mac/Makefile.in Mac/IDLE/Makefile.in \ |
50 | | Mac/IDLE/Makefile.in Mac/Tools/Doc/setup.py \ |
51 | | Mac/PythonLauncher/Makefile.in \ |
52 | | Mac/BuildScript/build-installer.py |
| 49 | ${worksrcpath}/Mac/Makefile.in ${worksrcpath}/Mac/IDLE/Makefile.in \ |
| 50 | ${worksrcpath}/Mac/Tools/Doc/setup.py \ |
| 51 | ${worksrcpath}/Mac/PythonLauncher/Makefile.in \ |
| 52 | ${worksrcpath}/Mac/BuildScript/build-installer.py |
53 | 53 | reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \ |
54 | | Mac/PythonLauncher/Makefile.in |
| 54 | ${worksrcpath}/Mac/PythonLauncher/Makefile.in |
55 | 55 | } |
56 | 56 | |
57 | 57 | build.target all libpython${branch}.dylib |
58 | 58 | |
59 | | # TODO: From python24, do we still need this? |
60 | | # Workaround for case-sensitive file systems |
61 | | post-build { |
62 | | if { ![file exists ${worksrcpath}/python.exe] } { |
63 | | ln -s python ${worksrcpath}/python.exe |
64 | | } |
65 | | } |
66 | | |
67 | 59 | test.run yes |
68 | 60 | test.target test |
69 | 61 | |
… |
… |
post-destroot { |
98 | 90 | |
99 | 91 | # install select file for python_select |
100 | 92 | xinstall -m 755 -d ${destroot}${prefix}/etc/select/python |
101 | | xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/ |
| 93 | xinstall -m 644 ${filespath}/${name} ${destroot}${prefix}/etc/select/python/ |
102 | 94 | } |
103 | 95 | |
104 | 96 | post-activate { |
… |
… |
post-activate { |
110 | 102 | platform darwin 7 { |
111 | 103 | # there is no SystemStubs on 10.3 |
112 | 104 | post-patch { |
113 | | reinplace "s|-lSystemStubs||g" configure configure.in |
| 105 | reinplace "s|-lSystemStubs||g" ${worksrcpath}/configure \ |
| 106 | ${worksrcpath}/configure.in |
114 | 107 | } |
115 | 108 | post-configure { |
116 | | reinplace "s|-lSystemStubs||g" Makefile.pre.in Makefile.pre Makefile |
| 109 | reinplace "s|-lSystemStubs||g" ${worksrcpath}/Makefile.pre.in \ |
| 110 | ${worksrcpath}/Makefile.pre ${worksrcpath}/Makefile |
117 | 111 | } |
118 | | # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth@gmail.com, ticket #13322) |
| 112 | # To avoid GCC incompatibility issue. See http://nxg.me.uk/note/2004/restFP/ (by ebgssth at gmail.com, ticket #13322) |
119 | 113 | configure.ldflags-append "-lcc_dynamic" |
120 | 114 | } |
121 | 115 | |