diff options
author | drochner <drochner> | 2010-10-01 19:44:02 +0000 |
---|---|---|
committer | drochner <drochner> | 2010-10-01 19:44:02 +0000 |
commit | 4380933bfb8e88487e72798a548df2da7c8e9ddd (patch) | |
tree | c5e6ee150a3fa3fae0943cc4411ee2688202ba39 /time | |
parent | acc44ee32244f2a6489bc11c299726f818e5cd93 (diff) | |
download | pkgsrc-4380933bfb8e88487e72798a548df2da7c8e9ddd.tar.gz |
replace a non-portable use of strftime(3) with a portable implementation
(the fallback to %b doesn't work, and even if it did the lowercase letters
were hardly readable in a toolbar icon)
bump PKGREVISION
Diffstat (limited to 'time')
-rw-r--r-- | time/xfce4-orage/Makefile | 4 | ||||
-rw-r--r-- | time/xfce4-orage/distinfo | 3 | ||||
-rw-r--r-- | time/xfce4-orage/patches/patch-aa | 27 |
3 files changed, 31 insertions, 3 deletions
diff --git a/time/xfce4-orage/Makefile b/time/xfce4-orage/Makefile index e75c33a274b..f55c6b3d0e4 100644 --- a/time/xfce4-orage/Makefile +++ b/time/xfce4-orage/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.7 2010/09/14 11:02:52 wiz Exp $ +# $NetBSD: Makefile,v 1.8 2010/10/01 19:44:02 drochner Exp $ PKG_DESTDIR_SUPPORT= user-destdir @@ -6,7 +6,7 @@ PKG_DESTDIR_SUPPORT= user-destdir DISTNAME= orage-${XFCE4_VERSION} PKGNAME= xfce4-orage-${XFCE4_VERSION} -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= time COMMENT= Xfce time managing application diff --git a/time/xfce4-orage/distinfo b/time/xfce4-orage/distinfo index 6379138d03f..e45f9138b14 100644 --- a/time/xfce4-orage/distinfo +++ b/time/xfce4-orage/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2009/09/16 01:15:34 reed Exp $ +$NetBSD: distinfo,v 1.5 2010/10/01 19:44:02 drochner Exp $ SHA1 (orage-4.6.1.tar.bz2) = 2db15404197ef9aa6f588c0eebac9fc4f68426df RMD160 (orage-4.6.1.tar.bz2) = 7724992e2e177487c71597a15d7faf7f865bb56b Size (orage-4.6.1.tar.bz2) = 1937593 bytes +SHA1 (patch-aa) = 443913928b351028d34bdd07cb6cf60006f60e25 diff --git a/time/xfce4-orage/patches/patch-aa b/time/xfce4-orage/patches/patch-aa new file mode 100644 index 00000000000..66a1c547d64 --- /dev/null +++ b/time/xfce4-orage/patches/patch-aa @@ -0,0 +1,27 @@ +$NetBSD: patch-aa,v 1.1 2010/10/01 19:44:02 drochner Exp $ + +--- src/tray_icon.c.orig 2009-04-14 22:58:27.000000000 +0000 ++++ src/tray_icon.c +@@ -198,12 +198,16 @@ GdkPixbuf *orage_create_icon(gboolean st + orage_message(110, "trayicon: heading does not fit in dynamic icon"); + + /* month */ +- if (strftime(month, 19, "%^b", t) == 0) { +- g_warning("orage_create_icon: strftime %%^b failed"); +- if (strftime(month, 19, "%b", t) == 0) { +- g_warning("orage_create_icon: strftime %%b failed"); +- g_sprintf(month, "orage"); +- } ++ if (strftime(month, 19, "%b", t) == 0) { ++ g_warning("orage_create_icon: strftime %%b failed"); ++ g_sprintf(month, "orage"); ++ } else { ++ char *c = month; ++ month[19] = '\0'; ++ while (*c) { ++ *c = toupper(*c); ++ c++; ++ } + } + g_snprintf(ts, 199 + , "<span foreground=\"blue\" size=\"x-small\">%s</span>", month); |