Ticket #23122: python26-puredarwin.diff

File python26-puredarwin.diff, 1.5 KB (added by afb@…, 14 years ago)
  • Portfile

    Property changes on: files/patch-Modules-posixmodule.c.diff
    ___________________________________________________________________
    Added: svn:mergeinfo
    
     
    8989select.group            python
    9090select.file             ${filespath}/python[string map {. {}} ${branch}]
    9191
     92platform macosx {
    9293post-destroot {
    9394   set framewpath ${frameworks_dir}/Python.framework
    9495   set framewdir  ${framewpath}/Versions/${branch}
     
    113114      delete ${destroot}${prefix}/bin/${unversionedFile}
    114115   }
    115116}
     117}
    116118
    117119post-activate {
    118120   ui_msg "\nTo fully complete your installation and make python $branch the default, please run
     
    127129   }
    128130}
    129131
     132platform puredarwin {
     133        patchfiles-append       patch-Modules-posixmodule.c.diff
     134        configure.args-append   --enable-shared
     135        configure.args-delete   --enable-framework=${frameworks_dir}
     136        configure.args-append   --disable-toolbox-glue --disable-framework
     137        destroot.target     install maninstall
     138
     139post-destroot {
     140   file rename ${destroot}${prefix}/share/man/man1/python.1 ${destroot}${prefix}/share/man/man1/python${branch}.1
     141   file rename ${destroot}${prefix}/bin/2to3 ${destroot}${prefix}/bin/2to3-${branch}
     142
     143   foreach unversionedFile {idle pydoc python python-config smtpd.py} {
     144      delete ${destroot}${prefix}/bin/${unversionedFile}
     145   }
     146}
     147}
     148
    130149variant universal {
    131150   post-patch {
    132151      set universal_arch_flags {}