Ticket #16863: python24.diff

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

     
    7070
    7171destroot.target         frameworkinstall maninstall
    7272
     73platform macosx {
    7374post-destroot {
    7475        set framewpath ${prefix}/Library/Frameworks/Python.framework
    7576        set framewdir  ${framewpath}/Versions/${branch}
     
    101102        xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
    102103        xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
    103104}
     105}
    104106
    105107post-activate {
    106108    ui_msg "\nTo fully complete your installation and make python $branch the default, please run
     
    117119        configure.cppflags-append       -D__DARWIN_UNIX03
    118120}
    119121
     122platform puredarwin {
     123        configure.args-delete   --enable-framework=${prefix}/Library/Frameworks
     124        configure.args-append   --disable-toolbox-glue --disable-framework
     125        destroot.target     install maninstall
     126
     127post-destroot {
     128        # delete symlinks without version suffix, use python_select instead to choose version
     129        foreach bin { python pythonw idle pydoc smtpd.py python-config } {
     130            file delete ${destroot}${prefix}/bin/${bin}
     131        }
     132
     133        file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
     134
     135        # install select file for python_select
     136        xinstall -m 755 -d ${destroot}${prefix}/etc/select/python
     137        xinstall -m 644 ${filespath}/python[string map {. {}} ${branch}] ${destroot}${prefix}/etc/select/python/
     138}
     139}
     140
    120141# TODO: test if this universal variant actually works
    121142# variant universal {
    122143        # configure.args-append           --enable-universalsdk