diff -Nur sysports/lang/python25/Portfile lang/python25/Portfile
old
|
new
|
|
186 | 186 | } |
187 | 187 | } |
188 | 188 | |
| 189 | variant 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 | |
189 | 194 | livecheck.type regex |
190 | 195 | livecheck.url ${homepage}download/releases/ |
191 | 196 | livecheck.regex Python (${branch}.\[0-9\]+) |
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 |