Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #16765: 0002-Basic-housekeeping-not-affecting-final-result.patch

File 0002-Basic-housekeeping-not-affecting-final-result.patch, 3.6 KB (added by blb@…, 3 months ago)

0002-Basic-housekeeping-not-affecting-final-result.patch

  • Portfile

    diff --git a/Portfile b/Portfile
    index 53c9c44..d761e08 100644
    a b  
    55name                    python26 
    66version                 2.6 
    77revision                1 
    8 set major               2 
    9 set branch              2.6 
     8set major               [lindex [split $version .] 0] 
     9set branch              [join [lrange [split ${version} .] 0 1] .] 
    1010categories              lang 
    1111platforms               darwin 
    12 maintainers             nomaintainer 
     12maintainers             blb 
    1313 
    1414description             An interpreted, object-oriented programming language 
    1515long_description        Python is an interpreted, interactive, object-oriented \ 
    1616                        programming language. 
    1717 
    18 homepage                http://www.python.org/ 
     18homepage                http://www.python.org 
    1919master_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}/ 
    2323 
    2424distname                Python-${version} 
    2525extract.suffix          .tgz 
     
    4646post-patch { 
    4747   reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/cgi.py 
    4848   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 
    5353   reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \ 
    54       Mac/PythonLauncher/Makefile.in 
     54      ${worksrcpath}/Mac/PythonLauncher/Makefile.in 
    5555} 
    5656 
    5757build.target            all libpython${branch}.dylib 
    5858 
    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  
    6759test.run                yes 
    6860test.target             test 
    6961 
     
    9890 
    9991   # install select file for python_select 
    10092   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/ 
    10294} 
    10395 
    10496post-activate { 
     
    110102platform darwin 7 { 
    111103   # there is no SystemStubs on 10.3 
    112104   post-patch { 
    113       reinplace "s|-lSystemStubs||g" configure configure.in 
     105      reinplace "s|-lSystemStubs||g" ${worksrcpath}/configure \ 
     106         ${worksrcpath}/configure.in 
    114107   } 
    115108   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 
    117111   } 
    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) 
    119113   configure.ldflags-append   "-lcc_dynamic" 
    120114} 
    121115