1 |
pacho 13/05/26 07:26:43 |
2 |
|
3 |
Added: intltool-0.50.2-localedir-fix.patch |
4 |
intltool-0.50.2-absolute-paths.patch |
5 |
Log: |
6 |
Use plain localedir to install mo files to rather than trying to guess one (#432848#c11), fix handling absolute paths in single file key output (#470040). |
7 |
|
8 |
(Portage version: 2.1.12.1/cvs/Linux x86_64, signed Manifest commit with key A188FBD4) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 dev-util/intltool/files/intltool-0.50.2-localedir-fix.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/intltool/files/intltool-0.50.2-localedir-fix.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/intltool/files/intltool-0.50.2-localedir-fix.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: intltool-0.50.2-localedir-fix.patch |
17 |
=================================================================== |
18 |
=== modified file 'Makefile.in.in' |
19 |
--- Makefile.in.in 2013-05-12 18:38:08 +0000 |
20 |
+++ Makefile.in.in 2013-05-22 13:43:26 +0000 |
21 |
@@ -33,8 +33,7 @@ |
22 |
datadir = @datadir@ |
23 |
datarootdir = @datarootdir@ |
24 |
libdir = @libdir@ |
25 |
-DATADIRNAME = @DATADIRNAME@ |
26 |
-itlocaledir = $(prefix)/$(DATADIRNAME)/locale |
27 |
+localedir = @localedir@ |
28 |
subdir = po |
29 |
install_sh = @install_sh@ |
30 |
# Automake >= 1.8 provides @mkdir_p@. |
31 |
@@ -108,7 +107,7 @@ |
32 |
install-data-yes: all |
33 |
linguas="$(USE_LINGUAS)"; \ |
34 |
for lang in $$linguas; do \ |
35 |
- dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \ |
36 |
+ dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ |
37 |
$(mkdir_p) $$dir; \ |
38 |
if test -r $$lang.gmo; then \ |
39 |
$(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \ |
40 |
@@ -142,8 +141,8 @@ |
41 |
uninstall: |
42 |
linguas="$(USE_LINGUAS)"; \ |
43 |
for lang in $$linguas; do \ |
44 |
- rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ |
45 |
- rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ |
46 |
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \ |
47 |
+ rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \ |
48 |
done |
49 |
|
50 |
check: all $(GETTEXT_PACKAGE).pot |
51 |
|
52 |
=== modified file 'intltool.m4' |
53 |
--- intltool.m4 2012-02-20 14:50:33 +0000 |
54 |
+++ intltool.m4 2013-05-12 17:08:09 +0000 |
55 |
@@ -155,31 +155,6 @@ |
56 |
# Substitute ALL_LINGUAS so we can use it in po/Makefile |
57 |
AC_SUBST(ALL_LINGUAS) |
58 |
|
59 |
-# Set DATADIRNAME correctly if it is not set yet |
60 |
-# (copied from glib-gettext.m4) |
61 |
-if test -z "$DATADIRNAME"; then |
62 |
- AC_LINK_IFELSE( |
63 |
- [AC_LANG_PROGRAM([[]], |
64 |
- [[extern int _nl_msg_cat_cntr; |
65 |
- return _nl_msg_cat_cntr]])], |
66 |
- [DATADIRNAME=share], |
67 |
- [case $host in |
68 |
- *-*-solaris*) |
69 |
- dnl On Solaris, if bind_textdomain_codeset is in libc, |
70 |
- dnl GNU format message catalog is always supported, |
71 |
- dnl since both are added to the libc all together. |
72 |
- dnl Hence, we'd like to go with DATADIRNAME=share |
73 |
- dnl in this case. |
74 |
- AC_CHECK_FUNC(bind_textdomain_codeset, |
75 |
- [DATADIRNAME=share], [DATADIRNAME=lib]) |
76 |
- ;; |
77 |
- *) |
78 |
- [DATADIRNAME=lib] |
79 |
- ;; |
80 |
- esac]) |
81 |
-fi |
82 |
-AC_SUBST(DATADIRNAME) |
83 |
- |
84 |
IT_PO_SUBDIR([po]) |
85 |
|
86 |
]) |
87 |
|
88 |
|
89 |
|
90 |
|
91 |
1.1 dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch |
92 |
|
93 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch?rev=1.1&view=markup |
94 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/intltool/files/intltool-0.50.2-absolute-paths.patch?rev=1.1&content-type=text/plain |
95 |
|
96 |
Index: intltool-0.50.2-absolute-paths.patch |
97 |
=================================================================== |
98 |
From c262cb09fa9f4dad056ba5b25a8627408bcf909a Mon Sep 17 00:00:00 2001 |
99 |
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
100 |
Date: Sun, 14 Apr 2013 20:41:41 +0200 |
101 |
Subject: [PATCH] Fix handling absolute paths in single file key output. |
102 |
MIME-Version: 1.0 |
103 |
Content-Type: text/plain; charset=UTF-8 |
104 |
Content-Transfer-Encoding: 8bit |
105 |
|
106 |
Signed-off-by: Michał Górny <mgorny@g.o> |
107 |
Fixes: https://bugs.gentoo.org/show_bug.cgi?id=464954 |
108 |
--- |
109 |
intltool-merge.in | 17 ++++++++++++----- |
110 |
1 file changed, 12 insertions(+), 5 deletions(-) |
111 |
|
112 |
diff --git a/intltool-merge.in b/intltool-merge.in |
113 |
index 1afa2a4..47dbbdf 100644 |
114 |
--- a/intltool-merge.in |
115 |
+++ b/intltool-merge.in |
116 |
@@ -1108,13 +1108,20 @@ sub keys_merge_translation |
117 |
{ |
118 |
my ($lang) = @_; |
119 |
|
120 |
- if ( ! -d $lang && $MULTIPLE_OUTPUT) |
121 |
+ my $outpath = "$OUTFILE"; |
122 |
+ |
123 |
+ if ($MULTIPLE_OUTPUT) |
124 |
{ |
125 |
- mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n"; |
126 |
+ $outpath = "$lang/$outpath"; |
127 |
+ |
128 |
+ if ( ! -d $lang ) |
129 |
+ { |
130 |
+ mkdir $lang or -d $lang or die "Cannot create subdirectory $lang: $!\n"; |
131 |
+ } |
132 |
} |
133 |
|
134 |
open INPUT, "<${FILE}" or die "Cannot open ${FILE}: $!\n"; |
135 |
- open OUTPUT, ">$lang/$OUTFILE" or die "Cannot open $lang/$OUTFILE: $!\n"; |
136 |
+ open OUTPUT, ">$outpath" or die "Cannot open $outpath: $!\n"; |
137 |
binmode (OUTPUT) if $^O eq 'MSWin32'; |
138 |
|
139 |
while (<INPUT>) |
140 |
@@ -1159,7 +1166,7 @@ sub keys_merge_translation |
141 |
close OUTPUT; |
142 |
close INPUT; |
143 |
|
144 |
- print "CREATED $lang/$OUTFILE\n" unless $QUIET_ARG; |
145 |
+ print "CREATED $outpath\n" unless $QUIET_ARG; |
146 |
} |
147 |
|
148 |
sub keys_merge_translations |
149 |
@@ -1174,7 +1181,7 @@ sub keys_merge_translations |
150 |
} |
151 |
else |
152 |
{ |
153 |
- keys_merge_translation ("."); |
154 |
+ keys_merge_translation (); |
155 |
} |
156 |
} |
157 |
|
158 |
-- |
159 |
1.8.1.5 |