Ticket #16933: Portfile.diff

File Portfile.diff, 2.9 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    44
    55name                    python26
    66version                 2.6
    7 revision                2
     7revision                3
    88set major               [lindex [split $version .] 0]
    99set branch              [join [lrange [split ${version} .] 0 1] .]
    1010categories              lang
     
    5151
    5252configure.args          --enable-shared \
    5353                        --enable-framework=${frameworks_dir} \
    54                         --mandir=${prefix}/share/man \
    55                         --without-readline \
    56                         --disable-tk \
    5754                        --enable-ipv6
    5855
    5956use_parallel_build      no
     
    6461      ${worksrcpath}/Mac/Makefile.in ${worksrcpath}/Mac/IDLE/Makefile.in \
    6562      ${worksrcpath}/Mac/Tools/Doc/setup.py \
    6663      ${worksrcpath}/Mac/PythonLauncher/Makefile.in
    67    reinplace "s|xargs -0 rm -r|xargs -0 rm -rf|g" \
     64
     65   # See http://trac.macports.org/changeset/37861
     66   reinplace "s|xargs -0 rm -r|/usr/bin/xargs -0 /bin/rm -r|g" \
    6867      ${worksrcpath}/Mac/PythonLauncher/Makefile.in
    6968}
    7069
     
    7978   set framewpath ${frameworks_dir}/Python.framework
    8079   set framewdir  ${framewpath}/Versions/${branch}
    8180
    82    foreach dir { lib include } {
    83       file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
    84       ln -s ${prefix}/${dir}/python${branch} ${destroot}${framewdir}/${dir}/python${branch}
    85    }
    86 
    87    ln -s ${framewdir}/Python ${destroot}${prefix}/lib/libpython${branch}.dylib
    88 
    89    file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
    90 
    91    # delete symlinks without version suffix, use python_select instead to choose version
    92    foreach bin { python pythonw idle pydoc smtpd.py python-config } {
    93       file delete ${destroot}${prefix}/bin/${bin}
    94    }
    95    foreach bin [list python${branch} pythonw${branch} idle${branch} pydoc${branch} smtpd${branch}.py python${branch}-config] {
    96       file rename -force ${destroot}${framewdir}/bin/${bin} ${destroot}${prefix}/bin
    97       ln -s ${prefix}/bin/${bin} ${destroot}${framewdir}/bin/${bin}
    98    }
    99 
    10081   foreach dir { Headers Resources Python Versions/Current } {
    10182      file delete ${destroot}${framewpath}/${dir}
    10283   }
    10384
     85   ln -s ${framewdir}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
     86
    10487   # install select file for python_select
    10588   xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
    10689   xinstall -m 644 ${filespath}/${name} ${destroot}${prefix}/etc/select/python/
     
    11093   ui_msg "\nTo fully complete your installation and make python $branch the default, please run
    11194\n\tsudo port install python_select \
    11295\n\tsudo python_select $name\n"
     96   ui_msg "The program IDLE will not run until py26-tkinter is installed.\n"
    11397}
    11498
    11599platform darwin 7 {