summaryrefslogtreecommitdiffstats
path: root/deskutils/timer-applet
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-26 10:12:56 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-26 10:12:56 +0800
commit5253346acab665b68e0797cb8f6eeceef74f3601 (patch)
tree290fc716dce899c99e485039c33254676226b4aa /deskutils/timer-applet
parentb50f4ffdae49418b5bf1a43b0e6d840952613429 (diff)
downloadmarcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.tar
marcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.tar.gz
marcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.tar.bz2
marcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.tar.lz
marcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.tar.xz
marcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.tar.zst
marcuscom-ports-5253346acab665b68e0797cb8f6eeceef74f3601.zip
-USE_X_PREFIX -> USE_XLIB.
-X11BASE -> LOCALBASE, gnome-audio lives in LOCALBASE. -Bump the PORTREVISION. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6815 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'deskutils/timer-applet')
-rw-r--r--deskutils/timer-applet/Makefile36
-rw-r--r--deskutils/timer-applet/distinfo3
-rw-r--r--deskutils/timer-applet/files/patch-src_timer-applet.c51
-rw-r--r--deskutils/timer-applet/pkg-descr15
-rw-r--r--deskutils/timer-applet/pkg-plist22
5 files changed, 127 insertions, 0 deletions
diff --git a/deskutils/timer-applet/Makefile b/deskutils/timer-applet/Makefile
new file mode 100644
index 000000000..7a25ffb1d
--- /dev/null
+++ b/deskutils/timer-applet/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: timer-applet
+# Date created: 2005-01-12
+# Whom: Michael Johnson <ahze@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= timer-applet
+PORTVERSION= 1.2
+PORTREVISION= 1
+CATEGORIES= deskutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
+MASTER_SITE_SUBDIR= timerapplet
+
+MAINTAINER= jylefort@FreeBSD.org
+COMMENT= A timer applet for the GNOME panel
+
+RUN_DEPENDS= ${LOCALBASE}/share/gnome/sounds/gtk-events/clicked.wav:${PORTSDIR}/audio/gnome-audio
+
+USE_GNOME= gnomehack gnomeprefix gnomepanel intlhack
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+USE_XLIB= yes
+USE_GMAKE= yes
+GCONF_SCHEMAS= timer-applet.schemas
+INSTALLS_OMF= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/usr/share/pixmaps/|${PREFIX}/share/gnome/pixmaps/|' \
+ ${WRKSRC}/GNOME_TimerApplet.server.in.in
+ @${REINPLACE_CMD} -e \
+ 's|$$(datadir)/sounds|${LOCALBASE}/share/gnome/sounds|' \
+ ${WRKSRC}/src/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/deskutils/timer-applet/distinfo b/deskutils/timer-applet/distinfo
new file mode 100644
index 000000000..a0b6e4390
--- /dev/null
+++ b/deskutils/timer-applet/distinfo
@@ -0,0 +1,3 @@
+MD5 (timer-applet-1.2.tar.gz) = 00dfc31e32a9a4cad3084b78a49c8a40
+SHA256 (timer-applet-1.2.tar.gz) = f1b3ef59f2bb0124da23eadc9b74949b3a6cf96dafd912171a4f008aef9841ae
+SIZE (timer-applet-1.2.tar.gz) = 183072
diff --git a/deskutils/timer-applet/files/patch-src_timer-applet.c b/deskutils/timer-applet/files/patch-src_timer-applet.c
new file mode 100644
index 000000000..1a3ecaec0
--- /dev/null
+++ b/deskutils/timer-applet/files/patch-src_timer-applet.c
@@ -0,0 +1,51 @@
+--- src/timer-applet.c.orig Wed Dec 14 23:39:09 2005
++++ src/timer-applet.c Sun Jan 29 03:52:57 2006
+@@ -872,11 +872,11 @@
+ update_presets_submenu (TimerApplet *timer_applet)
+ {
+ BonoboUIComponent *popup_component;
++ int i;
+
+ popup_component = panel_applet_get_popup_component (PANEL_APPLET (timer_applet->applet));
+
+ /* Remove existing menu items. */
+- int i;
+ for (i = 0;; i++) {
+ gchar *item_path = g_strdup_printf (PRESETS_SUBMENU_PATH "/Preset_%d", i);
+ if (bonobo_ui_component_path_exists (popup_component, item_path, NULL)) {
+@@ -902,6 +902,8 @@
+ gdouble preset_duration;
+ gchar *preset_display_name;
+ gint preset_index;
++ gchar *verb;
++ BonoboUINode *node;
+
+ gtk_tree_model_get (GTK_TREE_MODEL (timer_presets_list), &iter,
+ PROFILE_NAME_COL, &preset_name,
+@@ -923,8 +925,8 @@
+ path = NULL;
+ }
+
+- gchar *verb = g_strdup_printf ("Preset_%d", preset_index);
+- BonoboUINode *node = bonobo_ui_node_new ("menuitem");
++ verb = g_strdup_printf ("Preset_%d", preset_index);
++ node = bonobo_ui_node_new ("menuitem");
+ bonobo_ui_node_set_attr (node, "name", verb);
+ bonobo_ui_node_set_attr (node, "verb", verb);
+ bonobo_ui_node_set_attr (node, "label", preset_display_name);
+@@ -1415,6 +1417,7 @@
+ on_presets_submenu_item_activate (BonoboUIComponent *uic, TimerApplet *timer_applet, const gchar *verb)
+ {
+ int preset_index;
++ GtkTreeIter iter;
+
+ g_assert (timer_applet);
+
+@@ -1423,7 +1426,6 @@
+ return;
+ }
+
+- GtkTreeIter iter;
+ {
+ GtkTreePath *path = gtk_tree_path_new_from_indices (preset_index, -1);
+ gboolean iter_set = gtk_tree_model_get_iter (GTK_TREE_MODEL (timer_presets_list), &iter, path);
diff --git a/deskutils/timer-applet/pkg-descr b/deskutils/timer-applet/pkg-descr
new file mode 100644
index 000000000..19ce23b5a
--- /dev/null
+++ b/deskutils/timer-applet/pkg-descr
@@ -0,0 +1,15 @@
+Timer Applet is a countdown timer applet for the GNOME panel.
+
+Highlights:
+
+ * Quickly set a timer and the applet will notify you when time is up
+ * Add multiple Timer Applets to the panel to have different timers
+ running simultaneously
+ * Create presets for quick access to frequently-used times
+ * Each applet remembers your last-used timer, even after you log out
+ * User interface follows the GNOME Human Interface Guidelines
+
+WWW: http://timerapplet.sourceforge.net/
+
+- Jean-Yves Lefort
+jylefort@FreeBSD.org
diff --git a/deskutils/timer-applet/pkg-plist b/deskutils/timer-applet/pkg-plist
new file mode 100644
index 000000000..0f7bac22a
--- /dev/null
+++ b/deskutils/timer-applet/pkg-plist
@@ -0,0 +1,22 @@
+libdata/bonobo/servers/GNOME_TimerApplet.server
+libexec/timer-applet
+share/gnome/gnome-2.0/ui/GNOME_TimerApplet.xml
+share/gnome/help/timer-applet/C/legal.xml
+share/gnome/help/timer-applet/C/timer-applet.xml
+share/gnome/help/timer-applet/fr/legal.xml
+share/gnome/help/timer-applet/fr/timer-applet.xml
+share/gnome/omf/timer-applet/timer-applet-C.omf
+share/gnome/omf/timer-applet/timer-applet-fr.omf
+share/gnome/pixmaps/timer-applet/timer-applet-icon.png
+share/locale/de/LC_MESSAGES/timer-applet.mo
+share/locale/es/LC_MESSAGES/timer-applet.mo
+share/locale/eu/LC_MESSAGES/timer-applet.mo
+share/locale/fr/LC_MESSAGES/timer-applet.mo
+share/locale/pl/LC_MESSAGES/timer-applet.mo
+share/locale/sv/LC_MESSAGES/timer-applet.mo
+share/locale/tr/LC_MESSAGES/timer-applet.mo
+@dirrm share/gnome/help/timer-applet/C
+@dirrm share/gnome/help/timer-applet/fr
+@dirrm share/gnome/help/timer-applet
+@dirrm share/gnome/omf/timer-applet
+@dirrm share/gnome/pixmaps/timer-applet