1 |
polynomial-c 14/07/29 15:13:54 |
2 |
|
3 |
Added: help2man-1.46.1-linguas.patch |
4 |
Log: |
5 |
Version bump. Removed old |
6 |
|
7 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/help2man/files/help2man-1.46.1-linguas.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/help2man/files/help2man-1.46.1-linguas.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/help2man/files/help2man-1.46.1-linguas.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: help2man-1.46.1-linguas.patch |
16 |
=================================================================== |
17 |
respect user LINGUAS |
18 |
|
19 |
--- help2man-1.46.1/Makefile.in |
20 |
+++ help2man-1.46.1/Makefile.in |
21 |
@@ -27,8 +27,15 @@ |
22 |
export VPATH = .:$(srcdir) |
23 |
|
24 |
DESTDIR = |
25 |
-LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) |
26 |
-LINGUAS_TEXI = $(basename $(notdir $(wildcard $(srcdir)/po-texi/*.po))) |
27 |
+ALL_LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) |
28 |
+ALL_LINGUAS_TEXI = $(basename $(notdir $(wildcard $(srcdir)/po-texi/*.po))) |
29 |
+ifeq ($(LINGUAS),) |
30 |
+INSTALL_LINGUAS = $(ALL_LINGUAS) |
31 |
+INSTALL_LINGUAS_TEXI = $(ALL_LINGUAS_TEXI) |
32 |
+else |
33 |
+INSTALL_LINGUAS = $(filter $(LINGUAS),$(ALL_LINGUAS)) |
34 |
+INSTALL_LINGUAS_TEXI = $(filter $(LINGUAS),$(ALL_LINGUAS_TEXI)) |
35 |
+endif |
36 |
|
37 |
CC = @CC@ |
38 |
PERL = @PERL@ |
39 |
@@ -80,7 +87,7 @@ |
40 |
|
41 |
install_l10n: install_dirs msg_l10n man_l10n info_l10n |
42 |
set -e; \ |
43 |
- for lang in $(LINGUAS); \ |
44 |
+ for lang in $(INSTALL_LINGUAS); \ |
45 |
do \ |
46 |
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ |
47 |
$(INSTALL_DATA) $$($(FIND_VPATH) po/$$lang.gmo) \ |
48 |
@@ -89,7 +96,7 @@ |
49 |
$(INSTALL_DATA) $$($(FIND_VPATH) $(target).$$lang.1) \ |
50 |
$(DESTDIR)$(mandir)/$$lang/man1/$(target).1; \ |
51 |
done; \ |
52 |
- for lang in $(LINGUAS_TEXI); \ |
53 |
+ for lang in $(INSTALL_LINGUAS_TEXI); \ |
54 |
do \ |
55 |
$(INSTALL_DATA) $$($(FIND_VPATH) $(target)-$$lang.info) \ |
56 |
$(DESTDIR)$(infodir)/$(target)-$$lang.info; \ |
57 |
@@ -151,7 +158,7 @@ |
58 |
$(MAKE) $(target) $(target).h2m |
59 |
./$(target) --include=$(target).h2m --output=$@ ./$(target) |
60 |
|
61 |
-msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(LINGUAS))) |
62 |
+msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(ALL_LINGUAS))) |
63 |
po/%.gmo: $(srcdir)/po/%.po |
64 |
test -d po || mkdir po |
65 |
$(MSGFMT) -o $@ $? |
66 |
@@ -161,7 +168,7 @@ |
67 |
$(MKINSTALLDIRS) localetmp/$$lang/LC_MESSAGES && \ |
68 |
$(INSTALL_DATA) po/$$lang.gmo localetmp/$$lang/LC_MESSAGES/$(target).mo |
69 |
|
70 |
-man_l10n: $(addprefix $(target).,$(addsuffix .1,$(LINGUAS))) |
71 |
+man_l10n: $(addprefix $(target).,$(addsuffix .1,$(ALL_LINGUAS))) |
72 |
$(target).%.1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m.PL \ |
73 |
$(srcdir)/po/%.po |
74 |
lang=$(patsubst $(target).%.1,%,$@); \ |
75 |
@@ -184,7 +191,7 @@ |
76 |
$(target).info: $(srcdir)/$(target).texi |
77 |
$(MAKEINFO) $? -o $@ |
78 |
|
79 |
-info_l10n: $(addprefix $(target)-,$(addsuffix .info,$(LINGUAS_TEXI))) |
80 |
+info_l10n: $(addprefix $(target)-,$(addsuffix .info,$(ALL_LINGUAS_TEXI))) |
81 |
$(target)-%.info: $(target)-%.texi |
82 |
$(MAKEINFO) $? -o $@.tmp |
83 |
$(FIXUP_TEXI_TRANS) -o $@ $@.tmp |