diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-04-08 16:51:51 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-04-08 16:52:43 -0400 |
commit | 66fdb7748f7595e3f467797b46047b8a4b177c2e (patch) | |
tree | 2153268f8250f1fbc22c62075fd68adf4da269e1 /sys-fs/xfsdump/files | |
parent | sys-fs/xfsprogs: respect user $LINGUAS #561664 (diff) | |
download | gentoo-66fdb7748f7595e3f467797b46047b8a4b177c2e.tar.gz gentoo-66fdb7748f7595e3f467797b46047b8a4b177c2e.tar.bz2 gentoo-66fdb7748f7595e3f467797b46047b8a4b177c2e.zip |
sys-fs/xfsdump: respect user $LINGUAS #561664
Diffstat (limited to 'sys-fs/xfsdump/files')
-rw-r--r-- | sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch b/sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch new file mode 100644 index 000000000000..5d5e54e61c4f --- /dev/null +++ b/sys-fs/xfsdump/files/xfsdump-3.1.6-linguas.patch @@ -0,0 +1,32 @@ +From e12813b9d0883e02cc121ea503f4bff5fb67e9ef Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Fri, 8 Apr 2016 16:41:31 -0400 +Subject: [PATCH xfsdump] po: respect LINGUAS build setting + +It is common gettext practice to limit the translations a particular +package will include by setting the LINGUAS environment variable. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + po/Makefile | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/po/Makefile b/po/Makefile +index 6d40324..48a19c1 100644 +--- a/po/Makefile ++++ b/po/Makefile +@@ -6,7 +6,10 @@ TOPDIR = .. + include $(TOPDIR)/include/builddefs + + POTHEAD = $(PKG_NAME).pot +-LINGUAS = de pl ++# If the user has requested a specific set of translations, only build those. ++SUPPORTED_LINGUAS = $(patsubst %.po,%,$(wildcard *.po)) ++LINGUAS ?= $(SUPPORTED_LINGUAS) ++LINGUAS := $(filter $(SUPPORTED_LINGUAS),$(LINGUAS)) + LSRCFILES = $(LINGUAS:%=%.po) + LDIRT = $(POTHEAD) + +-- +2.7.4 + |