From 979d581764369a0bd618a6445a43c068a3ed3aaa Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 18 Jan 2008 14:58:24 +0000 Subject: Add notifation-daemon and libnotify git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3542 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta-extras/packages/libnotify/libnotify_0.4.4.bb | 14 ++++ .../notification-daemon/files/no-wnck-sexy.patch | 98 ++++++++++++++++++++++ .../notification-daemon_0.3.7.bb | 21 +++++ 3 files changed, 133 insertions(+) create mode 100644 meta-extras/packages/libnotify/libnotify_0.4.4.bb create mode 100644 meta-extras/packages/notification-daemon/files/no-wnck-sexy.patch create mode 100644 meta-extras/packages/notification-daemon/notification-daemon_0.3.7.bb diff --git a/meta-extras/packages/libnotify/libnotify_0.4.4.bb b/meta-extras/packages/libnotify/libnotify_0.4.4.bb new file mode 100644 index 0000000000..9152133b4d --- /dev/null +++ b/meta-extras/packages/libnotify/libnotify_0.4.4.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "Send desktop notifications to a notification daemon" +HOMEPAGE = "http://www.galago-project.org/" +SECTION = "libs" +LICENSE = "LGPL" +DEPENDS = "dbus gtk+" +PR = "r0" + +SRC_URI = "http://www.galago-project.org/files/releases/source/${PN}/${PN}-${PV}.tar.gz" + +inherit autotools pkgconfig + +do_stage() { + autotools_stage_all +} diff --git a/meta-extras/packages/notification-daemon/files/no-wnck-sexy.patch b/meta-extras/packages/notification-daemon/files/no-wnck-sexy.patch new file mode 100644 index 0000000000..3367292e1f --- /dev/null +++ b/meta-extras/packages/notification-daemon/files/no-wnck-sexy.patch @@ -0,0 +1,98 @@ +diff -ur notification-daemon-0.3.7.orig/configure.ac notification-daemon-0.3.7/configure.ac +--- notification-daemon-0.3.7.orig/configure.ac 2007-02-28 05:16:16.000000000 +0000 ++++ notification-daemon-0.3.7/configure.ac 2008-01-18 11:29:28.000000000 +0000 +@@ -82,9 +82,7 @@ + glib-2.0 >= $REQ_GLIB_VERSION, \ + dbus-1 >= $REQ_DBUS_VERSION, \ + dbus-glib-1 >= $REQ_DBUS_VERSION, \ +- libsexy >= $REQ_SEXY_VERSION, \ +- gconf-2.0, \ +- libwnck-1.0 \ ++ gconf-2.0 \ + " + PKG_CHECK_MODULES(NOTIFICATION_DAEMON, $pkg_modules) + AC_SUBST(NOTIFICATION_DAEMON_CFLAGS) +Only in notification-daemon-0.3.7/: configure.ac~ +Only in notification-daemon-0.3.7.orig/: debian +diff -ur notification-daemon-0.3.7.orig/src/daemon/daemon.c notification-daemon-0.3.7/src/daemon/daemon.c +--- notification-daemon-0.3.7.orig/src/daemon/daemon.c 2007-02-15 10:47:09.000000000 +0000 ++++ notification-daemon-0.3.7/src/daemon/daemon.c 2008-01-18 11:24:40.000000000 +0000 +@@ -39,9 +39,6 @@ + #include + #include + +-#define WNCK_I_KNOW_THIS_IS_UNSTABLE +-#include +- + #include "daemon.h" + #include "engines.h" + #include "stack.h" +@@ -771,37 +768,6 @@ + static gboolean + fullscreen_window_exists(GtkWidget *nw) + { +- WnckScreen *wnck_screen; +- GList *l; +- +- wnck_screen = wnck_screen_get(GDK_SCREEN_XNUMBER( +- gdk_drawable_get_screen(GDK_DRAWABLE(GTK_WIDGET(nw)->window)))); +- wnck_screen_force_update(wnck_screen); +- +- for (l = wnck_screen_get_windows_stacked(wnck_screen); +- l != NULL; +- l = l->next) +- { +- WnckWindow *wnck_win = (WnckWindow *)l->data; +- +- if (wnck_window_is_fullscreen(wnck_win)) +- { +- /* +- * Sanity check if the window is _really_ fullscreen to +- * work around a bug in libwnck that doesn't get all +- * unfullscreen events. +- */ +- int sw = wnck_screen_get_width(wnck_screen); +- int sh = wnck_screen_get_height(wnck_screen); +- int x, y, w, h; +- +- wnck_window_get_geometry(wnck_win, &x, &y, &w, &h); +- +- if (sw == w && sh == h) +- return TRUE; +- } +- } +- + return FALSE; + } + +Only in notification-daemon-0.3.7/src/daemon: daemon.c~ +diff -ur notification-daemon-0.3.7.orig/src/themes/standard/theme.c notification-daemon-0.3.7/src/themes/standard/theme.c +--- notification-daemon-0.3.7.orig/src/themes/standard/theme.c 2007-01-26 04:20:15.000000000 +0000 ++++ notification-daemon-0.3.7/src/themes/standard/theme.c 2008-01-18 11:34:58.000000000 +0000 +@@ -1,7 +1,6 @@ + #include "config.h" + + #include +-#include + + typedef void (*ActionInvokedCb)(GtkWindow *nw, const char *key); + typedef void (*UrlClickedCb)(GtkWindow *nw, const char *url); +@@ -799,7 +798,7 @@ + gtk_widget_show(vbox); + gtk_box_pack_start(GTK_BOX(windata->content_hbox), vbox, TRUE, TRUE, 0); + +- windata->body_label = sexy_url_label_new(); ++ windata->body_label = gtk_label_new(NULL); + gtk_box_pack_start(GTK_BOX(vbox), windata->body_label, TRUE, TRUE, 0); + gtk_misc_set_alignment(GTK_MISC(windata->body_label), 0, 0); + gtk_label_set_line_wrap(GTK_LABEL(windata->body_label), TRUE); +@@ -874,7 +873,7 @@ + gtk_label_set_markup(GTK_LABEL(windata->summary_label), str); + g_free(str); + +- sexy_url_label_set_markup(SEXY_URL_LABEL(windata->body_label), body); ++ gtk_label_set_markup(GTK_LABEL(windata->body_label), body); + + if (body == NULL || *body == '\0') + gtk_widget_hide(windata->body_label); +Only in notification-daemon-0.3.7/src/themes/standard: theme.c~ diff --git a/meta-extras/packages/notification-daemon/notification-daemon_0.3.7.bb b/meta-extras/packages/notification-daemon/notification-daemon_0.3.7.bb new file mode 100644 index 0000000000..f443e307c9 --- /dev/null +++ b/meta-extras/packages/notification-daemon/notification-daemon_0.3.7.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "A dbus service that listens to desktop notification requests and displays them" +HOMEPAGE = "http://www.galago-project.org/" +SECTION = "x11" +LICENSE = "GPL" +DEPENDS = "dbus gtk+ gconf" + +SRC_URI = "http://www.galago-project.org/files/releases/source/${PN}/${P}.tar.gz \ + file://no-wnck-sexy.patch;patch=1" + +EXTRA_OECONF = "--disable-binreloc" + +inherit autotools pkgconfig + +FILES_${PN} = "\ + ${libexecdir}/notification-daemon \ + ${datadir}/dbus-1/services/ \ + ${libdir}/notification-daemon-1.0/engines/*.so \ + ${sysconfdir}/gconf/schemas/notification-daemon.schemas \ +" + +FILES_${PN}-dbg += "${libexecdir}/.debug ${libdir}/notification-daemon-1.0/engines/.debug" -- cgit v1.2.3