libgnt/libgnt

Add an option to disable python2 support
release-2.x.y
2021-09-23, Gary Kramlich
ec210e0a9332
Add an option to disable python2 support

Testing Done:
Compiled with no arguments, `-Dpython2=true`, and `-Dpython2=false` and verified the build was successful and was only linked to libpython2 when it should have been via ldd.

Bugs closed: LIBGNT-16

Reviewed at https://reviews.imfreedom.org/r/930/
plugindir = get_option('libdir') + '/gnt'
irssi = library('irssi', 'irssi.c',
dependencies : [ncurses, gobject, libgnt_dep],
name_prefix : '',
install : true, install_dir : plugindir)
s = library('s', 's.c',
dependencies : [ncurses, gobject, libgnt_dep],
name_prefix : '',
install : true, install_dir : plugindir)