summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-04-12 09:24:02 +0000
committerAlexandre Rostovtsev <tetromino@gentoo.org>2012-04-12 09:24:02 +0000
commitdf5d52932a49dc7b09362afaf4a1b69340785606 (patch)
tree65214429ea6ba8be40896123a9c9893f0269da02 /gnome-base/libgdu
parentAdd ~amd64-linux keyword (diff)
downloadgentoo-2-df5d52932a49dc7b09362afaf4a1b69340785606.tar.gz
gentoo-2-df5d52932a49dc7b09362afaf4a1b69340785606.tar.bz2
gentoo-2-df5d52932a49dc7b09362afaf4a1b69340785606.zip
New ebuild for gnome-disk-utility's libraries. Split out of gnome-disk-utility for use by gvfs since gnome-disk-utility-3.4 no longer provides them.
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'gnome-base/libgdu')
-rw-r--r--gnome-base/libgdu/ChangeLog13
-rw-r--r--gnome-base/libgdu/Manifest6
-rw-r--r--gnome-base/libgdu/files/libgdu-3.0.2-no-palimpsest-nautilus.patch263
-rw-r--r--gnome-base/libgdu/files/libgdu-3.0.2-optional-avahi.patch92
-rw-r--r--gnome-base/libgdu/libgdu-3.0.2.ebuild69
-rw-r--r--gnome-base/libgdu/metadata.xml5
6 files changed, 448 insertions, 0 deletions
diff --git a/gnome-base/libgdu/ChangeLog b/gnome-base/libgdu/ChangeLog
new file mode 100644
index 000000000000..4173f5270bd9
--- /dev/null
+++ b/gnome-base/libgdu/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for gnome-base/libgdu
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/libgdu/ChangeLog,v 1.1 2012/04/12 09:24:02 tetromino Exp $
+
+*libgdu-3.0.2 (12 Apr 2012)
+
+ 12 Apr 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
+ +libgdu-3.0.2.ebuild, +files/libgdu-3.0.2-no-palimpsest-nautilus.patch,
+ +files/libgdu-3.0.2-optional-avahi.patch, +metadata.xml:
+ New ebuild for gnome-disk-utility's libraries. Split out of
+ gnome-disk-utility for use by gvfs since gnome-disk-utility-3.4 no longer
+ provides them.
+
diff --git a/gnome-base/libgdu/Manifest b/gnome-base/libgdu/Manifest
new file mode 100644
index 000000000000..b987b611c1c8
--- /dev/null
+++ b/gnome-base/libgdu/Manifest
@@ -0,0 +1,6 @@
+AUX libgdu-3.0.2-no-palimpsest-nautilus.patch 7952 RMD160 16d016a152bbfb55b072da2ca2e73f51f12544ba SHA1 8e7d19fd4dc7c041b48213f14c98f553623e5f39 SHA256 39d2f32526a73c86bc8588ddccfa345abfe98421b415b26804c86db264f29db2
+AUX libgdu-3.0.2-optional-avahi.patch 3297 RMD160 e2fd064634632527a60f08c2360540eea28ce9b2 SHA1 750e0c0a7f318708e5051fc4f9e254a644744b93 SHA256 e0c309302e5d1bf88d73d95d1e24adfeef6bad74180c205f3981f87582a27e84
+DIST gnome-disk-utility-3.0.2.tar.xz 2002052 RMD160 7355f13be7c67f10f3fb337cccfe8bea7ec2e36d SHA1 61718232756657542c89a0b3355a4fdee78b7ffd SHA256 7983f12ba04e84f164d0cae54bb06ed9b3ebe6c0a1c606d63d067fc395aeb0a5
+EBUILD libgdu-3.0.2.ebuild 1878 RMD160 78c0f0e8923f33dbfa8c5918500380952370337d SHA1 7968e79c06e7c3bf296f19b06fd496dad57752b4 SHA256 1656ad4daf4087bf9fed555be0feebfc1838dd28904755ad6a8cd0f261b2c0e2
+MISC ChangeLog 495 RMD160 f313703d5c6282e3e637d40361a5c4e6d4b2545f SHA1 6bac32aa16a7f79a4272244bbd10750b9917a796 SHA256 7587b8adc242f98d001e28ef9cf07d34a35b3663ec3d6d85ea1245141bbd5682
+MISC metadata.xml 158 RMD160 c0e2bae8e91bb6be8922bac5e4f597302e06587e SHA1 38f78e9790bcd4382b4a49aa226aa6dda1d3a3d7 SHA256 3a7dbca0fdc557de69783e0663e2d76ddab129ea8a19b2d0ef6d3e5d1b947ce1
diff --git a/gnome-base/libgdu/files/libgdu-3.0.2-no-palimpsest-nautilus.patch b/gnome-base/libgdu/files/libgdu-3.0.2-no-palimpsest-nautilus.patch
new file mode 100644
index 000000000000..0ecfe83c5afe
--- /dev/null
+++ b/gnome-base/libgdu/files/libgdu-3.0.2-no-palimpsest-nautilus.patch
@@ -0,0 +1,263 @@
+From b18ee6b0ee74e10056460b7107e7dd8f2d39dd8e Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Thu, 12 Apr 2012 02:56:40 -0400
+Subject: [PATCH] Split palimpsest and nautilus plugin out
+
+---
+ Makefile.am | 2 +-
+ configure.ac | 53 +---------------------------------------
+ data/Makefile.am | 6 ----
+ data/icons/16x16/Makefile.am | 1 -
+ data/icons/22x22/Makefile.am | 1 -
+ data/icons/24x24/Makefile.am | 1 -
+ data/icons/256x256/Makefile.am | 1 -
+ data/icons/32x32/Makefile.am | 1 -
+ data/icons/48x48/Makefile.am | 1 -
+ src/Makefile.am | 6 +----
+ 10 files changed, 3 insertions(+), 70 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 4fd5718..7b5b3ae 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,6 @@
+ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+-SUBDIRS = src data doc help po
++SUBDIRS = src data doc po
+
+ EXTRA_DIST = \
+ autogen.sh \
+diff --git a/configure.ac b/configure.ac
+index 77a16ab..c785122 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -129,7 +129,6 @@ GIO2_REQUIRED=2.22
+ DBUS_GLIB_REQUIRED=0.74
+ GNOME_KEYRING_REQUIRED=2.22
+ GTK3_REQUIRED=2.90.7
+-UNIQUE_REQUIRED=2.90.1
+ LIBNOTIFY_REQUIRED=0.6.1
+ NAUTILUS_REQUIRED=2.91.0
+ AVAHI_UI_REQUIRED=0.6.25
+@@ -147,25 +146,12 @@ PKG_CHECK_MODULES(GIO_UNIX2, [gio-unix-2.0 >= $GIO2_REQUIRED])
+ PKG_CHECK_MODULES(GTHREAD2, [gthread-2.0 >= $GLIB2_REQUIRED])
+ PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1 >= $DBUS_GLIB_REQUIRED])
+ PKG_CHECK_MODULES(GTK3, [gtk+-3.0 >= $GTK3_REQUIRED])
+-PKG_CHECK_MODULES(UNIQUE, [unique-3.0 >= $UNIQUE_REQUIRED])
+ PKG_CHECK_MODULES(LIBNOTIFY, [libnotify >= $LIBNOTIFY_REQUIRED])
+ PKG_CHECK_MODULES(UDISKS, [udisks >= $UDISKS_REQUIRED udisks < $UDISKS_NEXT_ABI_INCOMPATIBLE_VERSION])
+-PKG_CHECK_MODULES(X11, [x11])
+ PKG_CHECK_MODULES(LIBATASMART, [libatasmart >= 0.14])
+ PKG_CHECK_MODULES(AVAHI_UI, [avahi-ui-gtk3 >= $AVAHI_UI_REQUIRED])
+
+ # *************
+-# Remote Access
+-# *************
+-have_remote_access=no
+-AC_ARG_ENABLE(remote_access, AS_HELP_STRING([--disable-remote-access], [disable access to remote udisks daemons]))
+-if test "x$enable_remote_access" != "xno"; then
+- AC_DEFINE(HAVE_REMOTE_ACCESS, 1, [Defined if remote access is enabled])
+- have_remote_access=yes
+-fi
+-AM_CONDITIONAL(HAVE_REMOTE_ACCESS, [test "$have_remote_access" = "yes"])
+-
+-# *************
+ # GNOME Keyring
+ # *************
+
+@@ -185,48 +171,17 @@ AC_SUBST(GNOME_KEYRING_LIBS)
+ AC_SUBST(GNOME_KEYRING_CFLAGS)
+ AM_CONDITIONAL(ENABLE_GNOME_KEYRING, [test "$have_gnome_keyring" = "yes"])
+
+-# *************
+-# Documentation
+-# *************
+-
+-AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config,no)
+-if test x$SCROLLKEEPER_CONFIG = xno; then
+- AC_MSG_ERROR(Could not find scrollkeeper-config, please install the scrollkeeper package)
+-fi
+-
+ # ********************
+ # Internationalization
+ # ********************
+
+ IT_PROG_INTLTOOL([$INTLTOOL_REQUIRED])
+
+-GETTEXT_PACKAGE=gnome-disk-utility
++GETTEXT_PACKAGE=libgdu
+ AC_SUBST([GETTEXT_PACKAGE])
+ AM_GLIB_GNU_GETTEXT
+ AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
+
+-# ******************
+-# Nautilus extension
+-# ******************
+-
+-have_nautilus=no
+-AC_ARG_ENABLE(nautilus, AS_HELP_STRING([--disable-nautilus], [disable nautilus extension]))
+-
+-if test "x$enable_nautilus" != "xno"; then
+- PKG_CHECK_MODULES(NAUTILUS, libnautilus-extension >= $NAUTILUS_REQUIRED,
+- [AC_DEFINE(HAVE_NAUTILUS, 1, [Define if nautilus is available])
+- have_nautilus=yes], have_nautilus=no)
+- if test "x$have_nautilus" = xno -a "x$enable_nautilus" = xyes; then
+- AC_MSG_ERROR([nautilus support requested but libraries not found])
+- fi
+-fi
+-
+-AC_SUBST(NAUTILUS_LIBS)
+-AC_SUBST(NAUTILUS_CFLAGS)
+-AC_SUBST(NAUTILUS_EXTENSION_DIR)
+-
+-AM_CONDITIONAL(ENABLE_NAUTILUS, [test "$have_nautilus" = "yes"])
+-
+ # *************************************
+ # *************************************
+
+@@ -242,10 +197,7 @@ src/gdu/Makefile
+ src/gdu/gdu.pc
+ src/gdu-gtk/Makefile
+ src/gdu-gtk/gdu-gtk.pc
+-src/palimpsest/Makefile
+ src/notification/Makefile
+-src/format-tool/Makefile
+-src/nautilus-extension/Makefile
+ po/Makefile.in
+ data/Makefile
+ data/gdu-notification-daemon.desktop.in.in
+@@ -257,7 +209,6 @@ data/icons/32x32/Makefile
+ data/icons/48x48/Makefile
+ data/icons/256x256/Makefile
+ data/icons/scalable/Makefile
+-help/Makefile
+ doc/Makefile
+ doc/version.xml
+ ])
+@@ -283,8 +234,6 @@ echo "
+
+ Maintainer mode: ${USE_MAINTAINER_MODE}
+ Building api docs: ${enable_gtk_doc}
+- Nautilus extension: ${have_nautilus}
+
+ GNOME Keyring support: ${have_gnome_keyring}
+- Remote Access: ${have_remote_access}
+ "
+diff --git a/data/Makefile.am b/data/Makefile.am
+index 785368d..631be17 100644
+--- a/data/Makefile.am
++++ b/data/Makefile.am
+@@ -2,10 +2,6 @@ NULL =
+
+ SUBDIRS = icons
+
+-desktopdir = $(datadir)/applications
+-desktop_in_files = palimpsest.desktop.in
+-desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+-
+ autostartdir = $(sysconfdir)/xdg/autostart
+ autostart_in_files = gdu-notification-daemon.desktop.in
+ autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
+@@ -18,12 +14,10 @@ gdu-notification-daemon.desktop.in: gdu-notification-daemon.desktop.in.in
+ distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper
+
+ EXTRA_DIST = \
+- $(desktop_in_files) \
+ $(autostart_in_files) \
+ $(NULL)
+
+ CLEANFILES = \
+- $(desktop_DATA) \
+ $(autostart_DATA) \
+ gdu-notification-daemon.desktop.in \
+ gdu-notification-daemon.desktop.in.in \
+diff --git a/data/icons/16x16/Makefile.am b/data/icons/16x16/Makefile.am
+index f62ef2d..324b5be 100644
+--- a/data/icons/16x16/Makefile.am
++++ b/data/icons/16x16/Makefile.am
+@@ -2,7 +2,6 @@ NULL =
+
+ icondir = $(datadir)/icons/hicolor/16x16/apps
+ icon_DATA = \
+- palimpsest.png \
+ gdu-eject.png \
+ gdu-detach.png \
+ gdu-mount.png \
+diff --git a/data/icons/22x22/Makefile.am b/data/icons/22x22/Makefile.am
+index c0b4c4d..b56491d 100644
+--- a/data/icons/22x22/Makefile.am
++++ b/data/icons/22x22/Makefile.am
+@@ -2,7 +2,6 @@ NULL =
+
+ icondir = $(datadir)/icons/hicolor/22x22/apps
+ icon_DATA = \
+- palimpsest.png \
+ gdu-eject.png \
+ gdu-detach.png \
+ gdu-mount.png \
+diff --git a/data/icons/24x24/Makefile.am b/data/icons/24x24/Makefile.am
+index 4dc6898..d465ffe 100644
+--- a/data/icons/24x24/Makefile.am
++++ b/data/icons/24x24/Makefile.am
+@@ -5,7 +5,6 @@ NULL =
+
+ icondir = $(datadir)/icons/hicolor/24x24/apps
+ icon_DATA = \
+- palimpsest.png \
+ $(NULL)
+
+ EXTRA_DIST = \
+diff --git a/data/icons/256x256/Makefile.am b/data/icons/256x256/Makefile.am
+index dc7e73a..14c8dea 100644
+--- a/data/icons/256x256/Makefile.am
++++ b/data/icons/256x256/Makefile.am
+@@ -2,7 +2,6 @@ NULL =
+
+ icondir = $(datadir)/icons/hicolor/256x256/apps
+ icon_DATA = \
+- palimpsest.png \
+ $(NULL)
+
+ EXTRA_DIST = \
+diff --git a/data/icons/32x32/Makefile.am b/data/icons/32x32/Makefile.am
+index 9a2bc76..ad18728 100644
+--- a/data/icons/32x32/Makefile.am
++++ b/data/icons/32x32/Makefile.am
+@@ -2,7 +2,6 @@ NULL =
+
+ icondir = $(datadir)/icons/hicolor/32x32/apps
+ icon_DATA = \
+- palimpsest.png \
+ $(NULL)
+
+ EXTRA_DIST = \
+diff --git a/data/icons/48x48/Makefile.am b/data/icons/48x48/Makefile.am
+index 349b8ce..c3164be 100644
+--- a/data/icons/48x48/Makefile.am
++++ b/data/icons/48x48/Makefile.am
+@@ -2,7 +2,6 @@ NULL =
+
+ icondir = $(datadir)/icons/hicolor/48x48/apps
+ icon_DATA = \
+- palimpsest.png \
+ gdu-eject.png \
+ gdu-detach.png \
+ gdu-mount.png \
+diff --git a/src/Makefile.am b/src/Makefile.am
+index bab902f..19667a8 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -1,8 +1,4 @@
+-SUBDIRS = gdu gdu-gtk palimpsest notification format-tool
+-
+-if ENABLE_NAUTILUS
+-SUBDIRS += nautilus-extension
+-endif
++SUBDIRS = gdu gdu-gtk notification
+
+ clean-local :
+ rm -f *~
+--
+1.7.8.5
+
diff --git a/gnome-base/libgdu/files/libgdu-3.0.2-optional-avahi.patch b/gnome-base/libgdu/files/libgdu-3.0.2-optional-avahi.patch
new file mode 100644
index 000000000000..bf627b91d982
--- /dev/null
+++ b/gnome-base/libgdu/files/libgdu-3.0.2-optional-avahi.patch
@@ -0,0 +1,92 @@
+From 518716ca99ce82bcf6732e1a69c9d19b878f48ea Mon Sep 17 00:00:00 2001
+From: Alexandre Rostovtsev <tetromino@gentoo.org>
+Date: Thu, 12 Apr 2012 03:13:25 -0400
+Subject: [PATCH] Make avahi support optional
+
+---
+ configure.ac | 21 ++++++++++++++++++++-
+ src/gdu-gtk/gdu-connect-to-server-dialog.c | 7 +++++++
+ 2 files changed, 27 insertions(+), 1 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 7dc3630..aa487fc 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -149,7 +149,26 @@ PKG_CHECK_MODULES(GTK3, [gtk+-3.0 >= $GTK3_REQUIRED])
+ PKG_CHECK_MODULES(LIBNOTIFY, [libnotify >= $LIBNOTIFY_REQUIRED])
+ PKG_CHECK_MODULES(UDISKS, [udisks >= $UDISKS_REQUIRED udisks < $UDISKS_NEXT_ABI_INCOMPATIBLE_VERSION])
+ PKG_CHECK_MODULES(LIBATASMART, [libatasmart >= 0.14])
+-PKG_CHECK_MODULES(AVAHI_UI, [avahi-ui-gtk3 >= $AVAHI_UI_REQUIRED])
++
++# *************
++# Avahi
++# *************
++
++have_avahi_ui=no
++AC_ARG_ENABLE(avahi-ui, AS_HELP_STRING([--disable-avahi-ui], [disable use of Avahi for server searching]))
++
++if test "x$enable_avahi_ui" != "xno"; then
++ PKG_CHECK_MODULES(AVAHI_UI, avahi-ui-gtk3 >= $AVAHI_UI_REQUIRED,
++ [AC_DEFINE(HAVE_AVAHI_UI, 1, [Define if avahi-ui-gtk3 is available])
++ have_avahi_ui=yes], have_avahi_ui=no)
++ if test "x$have_avahi_ui" = xno -a "x$enable_avahi_ui" = xyes; then
++ AC_MSG_ERROR([avahi-ui-gtk3 support requested but libraries not found])
++ fi
++fi
++
++AC_SUBST(AVAHI_UI_LIBS)
++AC_SUBST(AVAHI_UI_CFLAGS)
++AM_CONDITIONAL(ENABLE_AVAHI_UI, [test "$have_avahi_ui" = "yes"])
+
+ # *************
+ # GNOME Keyring
+diff --git a/src/gdu-gtk/gdu-connect-to-server-dialog.c b/src/gdu-gtk/gdu-connect-to-server-dialog.c
+index e4c1a83..a715bb7 100644
+--- a/src/gdu-gtk/gdu-connect-to-server-dialog.c
++++ b/src/gdu-gtk/gdu-connect-to-server-dialog.c
+@@ -24,7 +24,10 @@
+
+ #include "config.h"
+ #include <glib/gi18n-lib.h>
++
++#ifdef HAVE_AVAHI_UI
+ #include <avahi-ui/avahi-ui.h>
++#endif
+
+ #include "gdu-connect-to-server-dialog.h"
+
+@@ -143,6 +146,7 @@ gdu_connect_to_server_dialog_get_address (GduConnectToServerDialog *dialog)
+
+ /* ---------------------------------------------------------------------------------------------------- */
+
++#ifdef HAVE_AVAHI_UI
+ static void
+ on_dns_sd_clicked (GtkButton *button,
+ gpointer user_data)
+@@ -171,6 +175,7 @@ on_dns_sd_clicked (GtkButton *button,
+
+ gtk_widget_destroy (service_dialog);
+ }
++#endif
+
+ /* ---------------------------------------------------------------------------------------------------- */
+
+@@ -217,6 +222,7 @@ gdu_connect_to_server_dialog_constructed (GObject *object)
+ GTK_STOCK_CONNECT,
+ GTK_RESPONSE_OK);
+
++#ifdef HAVE_AVAHI_UI
+ button = gtk_button_new_with_mnemonic (_("_Browse..."));
+ image = gtk_image_new_from_stock (GTK_STOCK_NETWORK, GTK_ICON_SIZE_BUTTON);
+ gtk_button_set_image (GTK_BUTTON (button), image);
+@@ -234,6 +240,7 @@ gdu_connect_to_server_dialog_constructed (GObject *object)
+ "clicked",
+ G_CALLBACK (on_dns_sd_clicked),
+ dialog);
++#endif
+
+ content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+
+--
+1.7.8.5
+
diff --git a/gnome-base/libgdu/libgdu-3.0.2.ebuild b/gnome-base/libgdu/libgdu-3.0.2.ebuild
new file mode 100644
index 000000000000..ca05cb9da20b
--- /dev/null
+++ b/gnome-base/libgdu/libgdu-3.0.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/gnome-base/libgdu/libgdu-3.0.2.ebuild,v 1.1 2012/04/12 09:24:02 tetromino Exp $
+
+EAPI="4"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+GNOME_ORG_MODULE="gnome-disk-utility"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="GNOME Disk Utility libraries"
+HOMEPAGE="http://git.gnome.org/browse/gnome-disk-utility"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="avahi doc gnome-keyring"
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86"
+
+CDEPEND="
+ >=dev-libs/glib-2.22:2
+ >=dev-libs/dbus-glib-0.74
+ >=x11-libs/gtk+-2.90.7:3
+ =sys-fs/udisks-1.0*:0
+ >=dev-libs/libatasmart-0.14
+ >=x11-libs/libnotify-0.6.1
+
+ avahi? ( >=net-dns/avahi-0.6.25[gtk3] )
+ gnome-keyring? ( gnome-base/libgnome-keyring )
+"
+RDEPEND="${CDEPEND}
+ !<=sys-apps/gnome-disk-utility-3.0.2-r200
+ !=sys-apps/gnome-disk-utility-3.0.2-r300"
+# libgdu was part of gnome-disk-utility until 3.0.2-r{200,300}
+DEPEND="${CDEPEND}
+ sys-devel/gettext
+ gnome-base/gnome-common
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/gnome-doc-utils
+
+ >=dev-util/pkgconfig-0.9
+ >=dev-util/intltool-0.35
+ >=dev-util/gtk-doc-am-1.13
+
+ doc? ( >=dev-util/gtk-doc-1.3 )"
+
+pkg_setup() {
+ G2CONF="${G2CONF}
+ --disable-static
+ $(use_enable avahi avahi-ui)
+ $(use_enable gnome-keyring)"
+ DOCS="AUTHORS NEWS README TODO"
+}
+
+src_prepare() {
+ local f=data/gdu-notification-daemon.desktop.in.in.in
+ sed -i -e '/^OnlyShowIn/d' ${f} || die
+ echo 'NotShowIn=KDE;' >> ${f}
+
+ # Palimpsest and Nautilus plugin are provided by sys-apps/gnome-disk-utility
+ epatch "${FILESDIR}/${PN}-3.0.2-no-palimpsest-nautilus.patch"
+
+ # Keep avahi optional, upstream bug #631986
+ epatch "${FILESDIR}/${PN}-3.0.2-optional-avahi.patch"
+ intltoolize --force --copy --automake || die
+ eautoreconf
+
+ gnome2_src_prepare
+}
diff --git a/gnome-base/libgdu/metadata.xml b/gnome-base/libgdu/metadata.xml
new file mode 100644
index 000000000000..da6fd63d0085
--- /dev/null
+++ b/gnome-base/libgdu/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>gnome</herd>
+</pkgmetadata>