pidgin/purple-plugin-pack

Properly disable plugins that require Purple 2.
meson
2017-06-25, Elliott Sales de Andrade
efeff1984139
Parents 9c58265711f3
Children 566b1bda80ae
Properly disable plugins that require Purple 2.
--- a/enhancedhist/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/enhancedhist/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found()
+if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
enhancedhist = shared_module('enhancedhist',
'enhancedhist.c',
dependencies : [PIDGIN, GTK],
--- a/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -62,7 +62,7 @@
#######################################################################
# Check for finch
#######################################################################
-FINCH = dependency('finch@0@'.format(PURPLE_VER), required : false)
+FINCH = dependency('finch', required : false)
conf.set('HAVE_FINCH', FINCH.found())
FINCH_LIBDIR = FINCH.get_pkgconfig_variable('libdir')
--- a/mystatusbox/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/mystatusbox/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found()
+if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
mystatusbox = shared_module('mystatusbox',
'mystatusbox.c',
dependencies : [PIDGIN, GTK],
--- a/napster/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/napster/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found()
+if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3')
napster = shared_library('napster',
'napster.c',
dependencies : [PURPLE, GLIB],
--- a/nicksaid/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/nicksaid/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found()
+if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
nicksaid = shared_module('nicksaid',
'nicksaid.c',
dependencies : [PIDGIN, GTK],
--- a/ning/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/ning/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and JSON_GLIB.found() and ZLIB.found()
+if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3') and JSON_GLIB.found() and ZLIB.found()
ning = shared_library('ning',
'ning.c',
'ning_chat.c',
--- a/okcupid/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/okcupid/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and JSON_GLIB.found() and ZLIB.found()
+if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3') and JSON_GLIB.found() and ZLIB.found()
okcupid = shared_library('okcupid',
'okcupid.c',
'okcupid.h',
--- a/omegle/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/omegle/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and JSON_GLIB.found() and ZLIB.found()
+if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3') and JSON_GLIB.found() and ZLIB.found()
omegle = shared_library('omegle',
'omegle.c',
'omegle.h',
--- a/snpp/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/snpp/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found()
+if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3')
snpp = shared_library('snpp',
'snpp.c',
dependencies : [PURPLE, GLIB],
--- a/timelog/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/timelog/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found()
+if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
timelog = shared_module('timelog',
'timelog.c',
'timelog.h',
--- a/translate/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/translate/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found()
+if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3')
translate = shared_library('translate',
'translate.c',
dependencies : [PURPLE, GLIB],
--- a/xchat-chats/meson.build Sun Jun 25 00:14:43 2017 -0400
+++ b/xchat-chats/meson.build Sun Jun 25 00:56:46 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found()
+if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
xchat_chats = shared_module('xchat-chats',
'xchat-chats.c',
'xtext.c',