Gentoo Archives: gentoo-commits

From: Nirbheek Chauhan <nirbheek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: gnome-extra/zenity/files/, gnome-extra/zenity/
Date: Thu, 02 Jun 2011 17:39:26
Message-Id: 24bfc97d869b73fc8852be153d18496582bdaee8.nirbheek@gentoo
1 commit: 24bfc97d869b73fc8852be153d18496582bdaee8
2 Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 2 17:17:20 2011 +0000
4 Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 17:30:17 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=24bfc97d
7
8 gnome-extra/zenity: fix build with USE=-libnotify, and no libnotify installed
9
10 * Fixes bug 369577
11
12 ---
13 .../files/zenity-3.0.0-libnotify-ifdef.patch | 30 ++++++++++++++++++++
14 gnome-extra/zenity/zenity-3.0.0.ebuild | 10 ++++--
15 2 files changed, 37 insertions(+), 3 deletions(-)
16
17 diff --git a/gnome-extra/zenity/files/zenity-3.0.0-libnotify-ifdef.patch b/gnome-extra/zenity/files/zenity-3.0.0-libnotify-ifdef.patch
18 new file mode 100644
19 index 0000000..1599677
20 --- /dev/null
21 +++ b/gnome-extra/zenity/files/zenity-3.0.0-libnotify-ifdef.patch
22 @@ -0,0 +1,30 @@
23 +From 3388135658e8a8f56da7fd01015490c2c97958ee Mon Sep 17 00:00:00 2001
24 +From: Nirbheek Chauhan <nirbheek@g.o>
25 +Date: Thu, 2 Jun 2011 22:42:33 +0530
26 +Subject: [PATCH] Fix bug 651723, don't look for libnotify.h if not requested
27 +
28 +---
29 + src/notification.c | 2 +-
30 + 1 files changed, 1 insertions(+), 1 deletions(-)
31 +
32 +diff --git a/src/notification.c b/src/notification.c
33 +index 41d64e2..3f4c454 100644
34 +--- a/src/notification.c
35 ++++ b/src/notification.c
36 +@@ -29,12 +29,12 @@
37 + #include <gtk/gtk.h>
38 + #include <time.h>
39 + #include <string.h>
40 ++#ifdef HAVE_LIBNOTIFY
41 + #include <libnotify/notify.h>
42 +
43 + #include "zenity.h"
44 + #include "util.h"
45 +
46 +-#ifdef HAVE_LIBNOTIFY
47 + static char *icon_file;
48 +
49 + static void
50 +--
51 +1.7.3.4
52 +
53
54 diff --git a/gnome-extra/zenity/zenity-3.0.0.ebuild b/gnome-extra/zenity/zenity-3.0.0.ebuild
55 index f219e19..80eedab 100644
56 --- a/gnome-extra/zenity/zenity-3.0.0.ebuild
57 +++ b/gnome-extra/zenity/zenity-3.0.0.ebuild
58 @@ -2,11 +2,11 @@
59 # Distributed under the terms of the GNU General Public License v2
60 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/zenity/zenity-2.32.1.ebuild,v 1.1 2010/11/29 18:40:56 pacho Exp $
61
62 -EAPI="3"
63 +EAPI="4"
64 GCONF_DEBUG="yes"
65 GNOME2_LA_PUNT="yes"
66
67 -inherit gnome2
68 +inherit eutils gnome2
69
70 DESCRIPTION="Tool to display dialogs from the commandline and shell scripts"
71 HOMEPAGE="http://live.gnome.org/Zenity"
72 @@ -34,10 +34,14 @@ pkg_setup() {
73 G2CONF="${G2CONF}
74 --disable-scrollkeeper
75 $(use_enable libnotify)
76 - PERL=$(type -p false)"
77 + PERL=$(type -P false)"
78 DOCS="AUTHORS ChangeLog HACKING NEWS README THANKS TODO"
79 }
80
81 +src_prepare() {
82 + epatch "${FILESDIR}/${P}-libnotify-ifdef.patch"
83 + gnome2_src_prepare
84 +}
85
86 src_install() {
87 gnome2_src_install