Ticket #11267: patch

File patch, 7.6 KB (added by meissnem@…, 17 years ago)

proposed patch

  • py25-bsddb/Portfile

     
    4242build.cmd               ${prefix}/bin/python2.5 setup.py
    4343build.target    build
    4444destroot.cmd    ${build.cmd}
    45 destroot.destdir        --prefix=${prefix} --root=${destroot}
     45destroot.destdir        --root=${destroot}
    4646
  • py25-bz2/Portfile

     
    4141build.cmd               ${prefix}/bin/python2.5 setup.py
    4242build.target    build
    4343destroot.cmd    ${build.cmd}
    44 destroot.destdir        --prefix=${prefix} --root=${destroot}
     44destroot.destdir        --root=${destroot}
    4545
  • py25-curses/Portfile

     
    4040build.cmd               ${prefix}/bin/python2.5 setup.py
    4141build.target    build
    4242destroot.cmd    ${build.cmd}
    43 destroot.destdir        --prefix=${prefix} --root=${destroot}
     43destroot.destdir        --root=${destroot}
    4444
  • py25-gdbm/Portfile

     
    3939build.cmd               ${prefix}/bin/python2.5 setup.py
    4040build.target    build
    4141destroot.cmd    ${build.cmd}
    42 destroot.destdir        --prefix=${prefix} --root=${destroot}
     42destroot.destdir        --root=${destroot}
    4343
  • py25-hashlib/Portfile

     
    3838build.cmd               ${prefix}/bin/python2.5 setup.py
    3939build.target    build
    4040destroot.cmd    ${build.cmd}
    41 destroot.destdir        --prefix=${prefix} --root=${destroot}
     41destroot.destdir        --root=${destroot}
    4242
  • py25-mx-base/Portfile

     
    2525build.cmd               ${prefix}/bin/python2.5 setup.py
    2626build.target    build
    2727destroot.cmd    ${build.cmd}
    28 destroot.destdir        --prefix=${prefix} --root=${destroot}
     28destroot.destdir        --root=${destroot}
    2929
  • py25-mx-experimental/Portfile

     
    2929build.cmd               ${prefix}/bin/python2.5 setup.py
    3030build.target    build
    3131destroot.cmd    ${build.cmd}
    32 destroot.destdir        --prefix=${prefix} --root=${destroot}
     32destroot.destdir        --root=${destroot}
    3333
  • py25-readline/Portfile

     
    3737build.cmd               ${prefix}/bin/python2.5 setup.py
    3838build.target    build
    3939destroot.cmd    ${build.cmd}
    40 destroot.destdir        --prefix=${prefix} --root=${destroot}
     40destroot.destdir        --root=${destroot}
    4141
  • py25-socket-ssl/Portfile

     
    3737build.cmd               ${prefix}/bin/python2.5 setup.py
    3838build.target    build
    3939destroot.cmd    ${build.cmd}
    40 destroot.destdir        --prefix=${prefix} --root=${destroot}
     40destroot.destdir        --root=${destroot}
    4141
  • py25-sqlite3/Portfile

     
    4141build.cmd               ${prefix}/bin/python2.5 setup.py
    4242build.target    build
    4343destroot.cmd    ${build.cmd}
    44 destroot.destdir        --prefix=${prefix} --root=${destroot}
     44destroot.destdir        --root=${destroot}
    4545
  • py25-tkinter/Portfile

     
    3838build.cmd               ${prefix}/bin/python2.5 setup.py
    3939build.target    build
    4040destroot.cmd    ${build.cmd}
    41 destroot.destdir        --prefix=${prefix} --root=${destroot}
     41destroot.destdir        --root=${destroot}
    4242
  • py25-zlib/Portfile

     
    3939build.cmd               ${prefix}/bin/python2.5 setup.py
    4040build.target    build
    4141destroot.cmd    ${build.cmd}
    42 destroot.destdir        --prefix=${prefix} --root=${destroot}
     42destroot.destdir        --root=${destroot}
    4343
  • py25-zopeinterface/Portfile

     
    2222build.cmd               ${prefix}/bin/python2.5 setup.py
    2323build.target    build
    2424destroot.cmd    ${build.cmd}
    25 destroot.destdir        --prefix=${prefix} --root=${destroot}
     25destroot.destdir        --root=${destroot}
    2626
  • python25/files/patch-setup.py

     
    55 
    66 # This global variable is used to hold the list of modules to be disabled.
    77-disabled_module_list = []
    8 +disabled_module_list = ["zlib","_hashlib","_ssl","_bsddb","_sqlite3","_tkinter","bz2","gdbm","readline","_curses","_curses_panel","pyexpat"]
     8+disabled_module_list = ["zlib","_hashlib","_ssl","_bsddb","_sqlite3","_tkinter","bz2","gdbm","readline","_curses","_curses_panel"]
    99 
    1010 def add_dir_to_list(dirlist, dir):
    1111     """Add the directory 'dir' to the list 'dirlist' (at the front) if
  • python25/Portfile

     
    2626
    2727patchfiles              patch-setup.py
    2828
     29post-patch {
     30        reinplace "s|/Applications/MacPython|/Applications/MacPorts/MacPython|g" ${worksrcpath}/Mac/Makefile.in
     31}
     32
    2933configure.args  --enable-shared \
    3034                        --mandir=${prefix}/share/man \
    3135                        --bindir=${prefix}/bin \
     
    4044
    4145destroot.target install maninstall
    4246post-destroot {
    43         system "cd ${destroot}${prefix}/bin && mv idle idle2.5 && mv pydoc pydoc2.5 && mv python-config python-config2.5 && mv smtpd.py smtpd2.5.py && rm python"
    44         system "cd ${destroot}${prefix}/share/man/man1 && mv python.1 python2.5.1"
     47        if { [variant_isset framework] } {
     48                if { [variant_isset default_python] } {
     49                        system "ln -s \"${prefix}/Library/Frameworks/Python.framework/Versions/2.5/bin/python-config2.5\" ${destroot}/${prefix}/bin/python2.5-config"
     50                } else {
     51                        system "cd ${destroot}${prefix}/bin && rm idle && rm pydoc && rm python && mv python-config python2.5-config && rm pythonw && rm smtpd.py"
     52                }
     53        } else {
     54                if { [variant_isset default_python] } {
     55                        system "cd ${destroot}${prefix}/bin && ln idle idle2.5 && ln pydoc pydoc2.5 && ln python-config python-config2.5 && ln smtpd.py smtpd2.5.py"
     56                } else {
     57                        system "cd ${destroot}${prefix}/bin && mv idle idle2.5 && mv pydoc pydoc2.5 && mv python-config python-config2.5 && mv smtpd.py smtpd2.5.py && rm python"
     58                }
     59        }
     60
     61        if { ![variant_isset default_python] } {
     62                system "cd ${destroot}${prefix}/share/man/man1 && mv python.1 python2.5.1"
     63        } else {
     64                system "ln -s ./python.1.gz ${destroot}${prefix}/share/man/man1/python2.5.1.gz"
     65        }
    4566}
    4667
    4768platform darwin 8 {
     
    5071        configure.args-append   --with-cxx=/usr/bin/g++-4.0
    5172}
    5273
     74variant default_python {}
     75
     76variant framework {
     77        configure.args-delete   --disable-framework
     78        configure.args-append   --enable-framework=${prefix}/Library/Frameworks \
     79                --enable-toolbox-glue
     80}