From 47a98f7eae0d072914b21b8e5f8c1dbd75640e5e Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 16 Nov 2013 20:09:18 +0100 Subject: desktop/pidgin-libnotify: Added a patch for the newer libnotify. Signed-off-by: Matteo Bernardini --- .../pidgin-libnotify-0.14-libnotify-0.7.patch | 18 ++++++++++++++++++ desktop/pidgin-libnotify/pidgin-libnotify.SlackBuild | 6 +++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 desktop/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch (limited to 'desktop') diff --git a/desktop/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch b/desktop/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch new file mode 100644 index 0000000000..40e6c02b81 --- /dev/null +++ b/desktop/pidgin-libnotify/pidgin-libnotify-0.14-libnotify-0.7.patch @@ -0,0 +1,18 @@ +--- src/pidgin-libnotify.c ++++ src/pidgin-libnotify.c +@@ -286,7 +286,15 @@ + g_free (tr_body); + return; + } ++#ifdef NOTIFY_CHECK_VERSION ++#if NOTIFY_CHECK_VERSION (0, 7, 0) ++ notification = notify_notification_new (title, tr_body, NULL); ++#else + notification = notify_notification_new (title, tr_body, NULL, NULL); ++#endif ++#else ++ notification = notify_notification_new (title, tr_body, NULL, NULL); ++#endif + purple_debug_info (PLUGIN_ID, "notify(), new: " + "title: '%s', body: '%s', buddy: '%s'\n", + title, tr_body, best_name (buddy)); diff --git a/desktop/pidgin-libnotify/pidgin-libnotify.SlackBuild b/desktop/pidgin-libnotify/pidgin-libnotify.SlackBuild index 25d1880cf7..4fa784c39f 100644 --- a/desktop/pidgin-libnotify/pidgin-libnotify.SlackBuild +++ b/desktop/pidgin-libnotify/pidgin-libnotify.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=pidgin-libnotify VERSION=0.14 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -73,6 +73,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Thanks Gentoo +patch -p0 < $CWD/pidgin-libnotify-0.14-libnotify-0.7.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -81,6 +84,7 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ + --disable-static \ --build=$ARCH-slackware-linux make -- cgit v1.2.3