Ticket #16863: python25.diff

File python25.diff, 1.7 KB (added by afb@…, 16 years ago)
  • Portfile

     
    7373
    7474destroot.target         frameworkinstall maninstall
    7575
     76platform macosx {
    7677post-destroot {
    7778        set framewpath ${prefix}/Library/Frameworks/Python.framework
    7879        set framewdir  ${framewpath}/Versions/${branch}
     
    104105        xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
    105106        xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
    106107}
     108}
    107109
    108110post-activate {
    109111    ui_msg "\nTo fully complete your installation and make python $branch the default, please run
     
    134136        configure.cppflags-append       -D__DARWIN_UNIX03
    135137}
    136138
     139platform puredarwin {
     140        patchfiles-append       patch-Modules-posixmodule.c.diff
     141        configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
     142        configure.args-append   --disable-toolbox-glue --disable-framework
     143        destroot.target     install maninstall
     144
     145post-destroot {
     146        # delete symlinks without version suffix, use python_select instead to choose version
     147        foreach bin { python pythonw idle pydoc smtpd.py python-config } {
     148            file delete ${destroot}${prefix}/bin/${bin}
     149        }
     150
     151        file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
     152
     153        # install select file for python_select
     154        xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
     155        xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
     156}
     157}
     158
    137159variant universal {
    138160        configure.args-append           --enable-universalsdk
    139161}