Ticket #27768: python27.patch

File python27.patch, 2.1 KB (added by singingwolfboy@…, 13 years ago)

Patches for python27 port and no_tkinter patch

  • python27/files/patch-setup_no_tkinter.py.diff

     
    1 --- setup.py.orig       2009-03-31 12:20:48.000000000 -0600
    2 +++ setup.py    2009-09-17 00:33:12.000000000 -0600
    3 @@ -17,7 +17,7 @@
    4  from distutils.command.install_lib import install_lib
     1--- setup.py.orig       2010-12-23 09:49:57.000000000 -0500
     2+++ setup.py    2010-12-23 09:50:13.000000000 -0500
     3@@ -21,7 +21,7 @@
     4 COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount')
    55 
    66 # This global variable is used to hold the list of modules to be disabled.
    77-disabled_module_list = []
  • python27/Portfile

     
    55PortGroup           select 1.0
    66
    77name                python27
    8 epoch               1
     8epoch               2
    99version             2.7.1
    1010revision            0
    1111set major           [lindex [split $version .] 0]
     
    4545# <http://bugs.python.org/issue5833>
    4646patchfiles          patch-Makefile.pre.in.diff \
    4747                    patch-setup.py.diff \
     48                    patch-setup_no_tkinter.py.diff \
    4849                    patch-Lib-cgi.py.diff \
    4950                    patch-Lib-ctypes-macholib-dyld.py.diff
    5051#                   patch-Mac-PythonLauncher-Makefile.in.diff
     
    5758depends_lib         port:gettext \
    5859                    port:zlib \
    5960                    port:openssl \
    60                     port:tk \
    6161                    port:sqlite3 \
    6262                    port:db46 \
    6363                    port:ncurses \
     
    177177    configure.args-append   --enable-unicode=ucs4
    178178}
    179179
    180 variant no_tkinter description {Disable Tkinter support, which will break IDLE} {
    181     patchfiles-append    patch-setup_no_tkinter.py.diff
    182     depends_lib-delete   port:tk
    183 }
    184 
    185180livecheck.type          regex
    186181livecheck.url           ${homepage}download/releases/
    187182livecheck.regex         Python (${branch}(?:\\.\\d+)*)