1 |
vapier 10/12/29 22:05:02 |
2 |
|
3 |
Added: help2man-1.38.4-linguas.patch |
4 |
Log: |
5 |
Version bump #350062 by Panagiotis Christopoulos. |
6 |
|
7 |
(Portage version: 2.2.0_alpha10/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sys-apps/help2man/files/help2man-1.38.4-linguas.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/help2man/files/help2man-1.38.4-linguas.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/help2man/files/help2man-1.38.4-linguas.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: help2man-1.38.4-linguas.patch |
16 |
=================================================================== |
17 |
respect user LINGUAS |
18 |
|
19 |
+++ b/Makefile.in |
20 |
@@ -16,7 +16,12 @@ |
21 |
export VPATH = .:$(srcdir) |
22 |
|
23 |
DESTDIR = |
24 |
-LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) |
25 |
+ALL_LINGUAS = $(basename $(notdir $(wildcard $(srcdir)/po/*.po))) |
26 |
+ifeq ($(LINGUAS),) |
27 |
+INSTALL_LINGUAS = $(ALL_LINGUAS) |
28 |
+else |
29 |
+INSTALL_LINGUAS = $(filter $(LINGUAS),$(ALL_LINGUAS)) |
30 |
+endif |
31 |
|
32 |
CC = @CC@ |
33 |
PERL = @PERL@ |
34 |
@@ -56,7 +62,7 @@ |
35 |
$(INSTALL_PROGRAM) $(preload).so $(DESTDIR)$(pkglibdir) |
36 |
|
37 |
install_l10n: install_dirs msg_l10n man_l10n |
38 |
- for lang in $(LINGUAS); \ |
39 |
+ for lang in $(INSTALL_LINGUAS); \ |
40 |
do \ |
41 |
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \ |
42 |
$(INSTALL_DATA) $(call vpath_file,po/$$lang.gmo) \ |
43 |
@@ -124,7 +130,7 @@ |
44 |
$(MAKE) $(target).h2m |
45 |
./$(target) --include=$(target).h2m --output=$@ ./$(target) |
46 |
|
47 |
-msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(LINGUAS))) |
48 |
+msg_l10n: $(addprefix po/,$(addsuffix .gmo,$(ALL_LINGUAS))) |
49 |
po/%.gmo: $(srcdir)/po/%.po |
50 |
test -d po || mkdir po |
51 |
$(MSGFMT) -o $@ $? |
52 |
@@ -134,7 +140,7 @@ |
53 |
$(MKINSTALLDIRS) localetmp/$$lang/LC_MESSAGES && \ |
54 |
$(INSTALL_DATA) po/$$lang.gmo localetmp/$$lang/LC_MESSAGES/$(target).mo |
55 |
|
56 |
-man_l10n: $(addprefix $(target).,$(addsuffix .1,$(LINGUAS))) |
57 |
+man_l10n: $(addprefix $(target).,$(addsuffix .1,$(ALL_LINGUAS))) |
58 |
$(target).%.1: $(srcdir)/$(target).PL $(srcdir)/$(target).h2m.PL \ |
59 |
$(srcdir)/po/%.po |
60 |
lang=$(patsubst $(target).%.1,%,$@); \ |
61 |
@@ -164,7 +170,7 @@ |
62 |
./config.status |
63 |
|
64 |
update-po: $(srcdir)/po/$(target).pot |
65 |
- for lang in $(LINGUAS); \ |
66 |
+ for lang in $(ALL_LINGUAS); \ |
67 |
do \ |
68 |
echo -n "Updating $$lang "; \ |
69 |
msgmerge -U $(srcdir)/po/$$lang.po $(srcdir)/po/$(target).pot; \ |