commit cfe73c526c2ade9ba9af158f0a84c0269665c04e
parent 842b5732c39ca833b4a5e189754d473092fee0b2
Author: Dan Callaghan <djc@djc.id.au>
Date: Sat, 9 Oct 2010 13:04:52 +1000
added mail-notification
Diffstat:
4 files changed, 116 insertions(+), 1 deletion(-)
diff --git a/metadata/categories.conf b/metadata/categories.conf
@@ -1 +1,2 @@
sys-auth
+mail-client
diff --git a/metadata/layout.conf b/metadata/layout.conf
@@ -1 +1 @@
-masters = arbor
+masters = arbor gnome
diff --git a/packages/mail-client/mail-notification/files/disable-icon-cache-update.patch b/packages/mail-client/mail-notification/files/disable-icon-cache-update.patch
@@ -0,0 +1,32 @@
+From: Dan Callaghan <djc@djc.id.au>
+Reason: we handle icon cache updates outside of the build
+Upstream: not yet
+
+diff -ur mail-notification-5.4/jbsrc/jb.c mail-notification-5.4-hacked/jbsrc/jb.c
+--- mail-notification-5.4/jbsrc/jb.c 2008-05-23 01:47:04.000000000 +1000
++++ mail-notification-5.4-hacked/jbsrc/jb.c 2010-10-09 14:01:58.038290732 +1000
+@@ -156,6 +156,7 @@
+ jb_variable_add_bool("debug", NULL, NULL, 0, FALSE);
+ jb_variable_add_bool("regression-tests", NULL, NULL, 0, FALSE);
+ jb_variable_add_bool("gconf-sanity-check", NULL, NULL, JB_VARIABLE_C_DEFINE, TRUE);
++ jb_variable_add_bool("update-gtk-icon-cache", NULL, NULL, 0, TRUE);
+ }
+
+ void
+@@ -364,10 +365,12 @@
+ if (jb_variable_get_bool("hotmail"))
+ jb_group_add_data_file(group, "hotmail.png", "$pkgdatadir");
+
+- rule = jb_rule_new();
+- jb_rule_set_install_message(rule, "updating the GTK+ icon cache");
+- jb_rule_add_install_command(rule, "-gtk-update-icon-cache -f -t $datadir/icons/hicolor");
+- jb_group_add_resource(group, JB_GROUP_RESOURCE(rule));
++ if (jb_variable_get_bool("update-gtk-icon-cache")) {
++ rule = jb_rule_new();
++ jb_rule_set_install_message(rule, "updating the GTK+ icon cache");
++ jb_rule_add_install_command(rule, "-gtk-update-icon-cache -f -t $datadir/icons/hicolor");
++ jb_group_add_resource(group, JB_GROUP_RESOURCE(rule));
++ }
+
+ jb_group_add(group);
+
diff --git a/packages/mail-client/mail-notification/mail-notification-5.4.exheres-0 b/packages/mail-client/mail-notification/mail-notification-5.4.exheres-0
@@ -0,0 +1,82 @@
+# Copyright 2010 Dan Callaghan <djc@djc.id.au>
+# Distributed under the terms of the GNU General Public License v2
+
+require gnome-2 multilib
+
+SUMMARY="Tray icon showing unread mail"
+HOMEPAGE="http://www.nongnu.org/mailnotify/"
+DOWNLOADS="http://savannah.nongnu.org/download/mailnotify/${PNV}.tar.bz2"
+
+LICENCES="GPL-3"
+SLOT="0"
+PLATFORMS="~amd64 ~x86"
+MYOPTIONS="
+ ipv6
+ ssl
+ sasl
+ evolution [[ description = [ add support for checking Evolution mailboxes ] ]]
+"
+
+DEPENDENCIES="
+ build:
+ sys-devel/gettext
+ dev-lang/perl:*
+ build+run:
+ gnome-platform/libgnomeui[>=2.15.90]
+ gnome-desktop/gnome-keyring
+ sys-apps/dbus
+ x11-libs/libnotify[>=0.4.1]
+ net-utils/gmime:2.0[>=2.2.7]
+ ssl? ( dev-libs/openssl[>=0.9.6] )
+ sasl? ( net-libs/cyrus-sasl[>=2.0] )
+ evolution? ( mail-client/evolution[>=2.12] )
+"
+
+BUGS_TO="djc@djc.id.au"
+
+DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}/disable-icon-cache-update.patch" )
+
+function optionyn() {
+ local option="$1" var="${2:-$1}"
+ if option "$option" ; then
+ echo "$var=yes"
+ else
+ echo "$var=no"
+ fi
+}
+
+src_configure() {
+ edo ./jb configure \
+ cc="${CC}" \
+ cflags="${CFLAGS}" \
+ cppflags="${CXXFLAGS}" \
+ ldflags="${LDFLAGS}" \
+ destdir="${IMAGE}" \
+ prefix=/usr \
+ bindir=/usr/bin \
+ libdir=/usr/$(get_libdir) \
+ libexecdir=/usr/libexec \
+ datadir=/usr/share \
+ sysconfdir=/etc \
+ localstatedir=/var/lib \
+ install-gconf-schemas=no \
+ update-gtk-icon-cache=no \
+ cc-dependency-tracking=no \
+ $(optionyn evolution) \
+ hotmail=no yahoo=no \
+ $(optionyn ipv6) \
+ $(optionyn ssl) \
+ $(optionyn sasl) \
+ regression-tests=no
+ # Tests call gnome_vfs_init which requires a writeable homedir
+ # https://bugzilla.gnome.org/show_bug.cgi?id=340234
+}
+
+src_compile() {
+ :
+}
+
+src_install() {
+ edo ./jb install
+}
+