pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/pan2-git: adjust master site and git repo. ...



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Sun Sep 30 22:35:35 2018 +0200
Changeset:	6180361c294c9a41b565f2f7913fae740bdd3634

Modified Files:
	pan2-git/Makefile
Added Files:
	pan2-git/patches/patch-pan-general-e-util.cc

Log Message:
wip/pan2-git: adjust master site and git repo. ...

Also add a patch that avoids a crash when not running in an UTF-8
locale.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6180361c294c9a41b565f2f7913fae740bdd3634

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 pan2-git/Makefile                            |  4 ++--
 pan2-git/patches/patch-pan-general-e-util.cc | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 2 deletions(-)

diffs:
diff --git a/pan2-git/Makefile b/pan2-git/Makefile
index d388dc1e5d..600fcc46f2 100644
--- a/pan2-git/Makefile
+++ b/pan2-git/Makefile
@@ -2,8 +2,8 @@
 
 DISTNAME=		pan2-2
 CATEGORIES=		news
-MASTER_SITES=		http://github.com/lostcoder/pan2
-GIT_REPO=		git://git.gnome.org/pan2
+MASTER_SITES=		https://gitlab.gnome.org/GNOME/pan
+GIT_REPO=		https://gitlab.gnome.org/GNOME/pan.git
 
 MAINTAINER=		rhialto%falu.nl@localhost
 HOMEPAGE=		http://pan.rebelbase.com/
diff --git a/pan2-git/patches/patch-pan-general-e-util.cc b/pan2-git/patches/patch-pan-general-e-util.cc
new file mode 100644
index 0000000000..ac70e3d939
--- /dev/null
+++ b/pan2-git/patches/patch-pan-general-e-util.cc
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Replace UTF-8 colons by real ones, so it works in more locales.
+
+diff --git a/pan/general/e-util.cc b/pan/general/e-util.cc
+index af5ccd0..efb7932 100644
+--- pan/general/e-util.cc
++++ pan/general/e-util.cc
+@@ -208,10 +208,10 @@ EvolutionDateMaker :: set_current_time (time_t now)
+ EvolutionDateMaker :: EvolutionDateMaker (time_t now)
+ {
+   // build the locale strings
+-  locale_recent = g_locale_from_utf8 (_("%l∶%M %p"), -1, NULL, NULL, NULL);
+-  locale_today = g_locale_from_utf8 (_("Today %l∶%M %p"), -1, NULL, NULL, NULL);
+-  locale_this_week = g_locale_from_utf8 (_("%a %l∶%M %p"), -1, NULL, NULL, NULL);
+-  locale_this_year = g_locale_from_utf8 (_("%b %d %l∶%M %p"), -1, NULL, NULL, NULL);
++  locale_recent = g_locale_from_utf8 (_("%l:%M %p"), -1, NULL, NULL, NULL);
++  locale_today = g_locale_from_utf8 (_("Today %l:%M %p"), -1, NULL, NULL, NULL);
++  locale_this_week = g_locale_from_utf8 (_("%a %l:%M %p"), -1, NULL, NULL, NULL);
++  locale_this_year = g_locale_from_utf8 (_("%b %d %l:%M %p"), -1, NULL, NULL, NULL);
+   locale_old = g_locale_from_utf8 (_("%b %d %Y"), -1, NULL, NULL, NULL);
+ 
+   // set the current time


Home | Main Index | Thread Index | Old Index