pidgin/purple-plugin-pack

Add shortcut for purple 2 check.
meson
2017-06-28, Elliott Sales de Andrade
4df15c9fd670
Add shortcut for purple 2 check.
--- a/enhancedhist/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/enhancedhist/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PIDGIN.found() and IS_PURPLE_TWO
enhancedhist = shared_module('enhancedhist',
'enhancedhist.c',
dependencies : [PIDGIN, GTK],
--- a/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -34,8 +34,10 @@
# and also as the -3 param to plugin_pack.py
if get_option('purple-version') == '2'
PURPLE_VER = ''
+ IS_PURPLE_TWO = true
else
PURPLE_VER = '-' + get_option('purple-version')
+ IS_PURPLE_TWO = false
endif
#######################################################################
--- a/mystatusbox/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/mystatusbox/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PIDGIN.found() and IS_PURPLE_TWO
mystatusbox = shared_module('mystatusbox',
'mystatusbox.c',
dependencies : [PIDGIN, GTK],
--- a/napster/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/napster/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PURPLE.found() and IS_PURPLE_TWO
napster = shared_library('napster',
'napster.c',
dependencies : [PURPLE, GLIB],
--- a/nicksaid/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/nicksaid/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PIDGIN.found() and IS_PURPLE_TWO
nicksaid = shared_module('nicksaid',
'nicksaid.c',
dependencies : [PIDGIN, GTK],
--- a/ning/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/ning/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3') and JSON_GLIB.found() and ZLIB.found()
+if TYPES.contains('default') and PURPLE.found() and IS_PURPLE_TWO and JSON_GLIB.found() and ZLIB.found()
ning = shared_library('ning',
'ning.c',
'ning_chat.c',
--- a/okcupid/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/okcupid/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3') and JSON_GLIB.found() and ZLIB.found()
+if TYPES.contains('default') and PURPLE.found() and IS_PURPLE_TWO and JSON_GLIB.found() and ZLIB.found()
okcupid = shared_library('okcupid',
'okcupid.c',
'okcupid.h',
--- a/omegle/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/omegle/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3') and JSON_GLIB.found() and ZLIB.found()
+if TYPES.contains('default') and PURPLE.found() and IS_PURPLE_TWO and JSON_GLIB.found() and ZLIB.found()
omegle = shared_library('omegle',
'omegle.c',
'omegle.h',
--- a/snpp/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/snpp/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PURPLE.found() and IS_PURPLE_TWO
snpp = shared_library('snpp',
'snpp.c',
dependencies : [PURPLE, GLIB],
--- a/timelog/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/timelog/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PIDGIN.found() and IS_PURPLE_TWO
timelog = shared_module('timelog',
'timelog.c',
'timelog.h',
--- a/translate/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/translate/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PURPLE.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PURPLE.found() and IS_PURPLE_TWO
translate = shared_library('translate',
'translate.c',
dependencies : [PURPLE, GLIB],
--- a/xchat-chats/meson.build Sun Jun 25 02:45:16 2017 -0400
+++ b/xchat-chats/meson.build Wed Jun 28 18:32:35 2017 -0400
@@ -1,4 +1,4 @@
-if TYPES.contains('default') and PIDGIN.found() and PURPLE.version().version_compare('<3')
+if TYPES.contains('default') and PIDGIN.found() and IS_PURPLE_TWO
xchat_chats = shared_module('xchat-chats',
'xchat-chats.c',
'xtext.c',