Ticket #24595: python25-no_tkinter.diff

File python25-no_tkinter.diff, 1.3 KB (added by danchr (Dan Villiom Podlaski Christiansen), 15 years ago)
  • lang/python25/Portfile

    diff -Nur sysports/lang/python25/Portfile lang/python25/Portfile
    old new  
    186186   }
    187187}
    188188
     189variant no_tkinter description {Disable Tkinter support, which will break IDLE} {
     190   patchfiles-append    patch-setup_no_tkinter.py.diff
     191   depends_lib-delete   port:tk
     192}
     193
    189194livecheck.type          regex
    190195livecheck.url           ${homepage}download/releases/
    191196livecheck.regex         Python (${branch}.\[0-9\]+)
  • lang/python25/files/patch-setup_no_tkinter.py.diff

    diff -Nur sysports/lang/python25/files/patch-setup_no_tkinter.py.diff lang/python25/files/patch-setup_no_tkinter.py.diff
    old new  
     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
     5 
     6 # This global variable is used to hold the list of modules to be disabled.
     7-disabled_module_list = []
     8+disabled_module_list = ["_tkinter"]
     9 
     10 def add_dir_to_list(dirlist, dir):
     11     """Add the directory 'dir' to the list 'dirlist' (at the front) if