gplugin/gplugin

Fix plugin search with GLib 2.69.

2021-07-30, Elliott Sales de Andrade
fd4bb8956d03
Fix plugin search with GLib 2.69.

Named groups in `GRegex` with GLib 2.69 appear to return empty, not `NULL` strings, so handle that when running version comparison.

This is actually what GLib documents should happen, but I guess didn't work right before.

Testing Done:
Compiled and ran tests on Fedora Rawhide with GLib 2.69.

Reviewed at https://reviews.imfreedom.org/r/856/
if get_option('vapi')
if not get_option('introspection')
error('Vala generation requires GObject Introspection.')
endif
add_languages('vala', native: false)
gplugin_vapi = gnome.generate_vapi('gplugin',
sources : gplugin_gir[0],
install : true,
gir_dirs : meson.current_build_dir() / '..' / 'gplugin',
)
if get_option('gtk3')
gplugin_gtk_vapi = gnome.generate_vapi('gplugin-gtk',
sources : gplugin_gtk_gir[0],
packages : [ 'gtk+-3.0' ],
install : true,
gir_dirs : meson.current_build_dir() / '..' / 'gplugin',
)
endif
subdir('tests')
endif # vala