From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1CB9659CAF for ; Fri, 8 Apr 2016 20:53:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4CEA21C097; Fri, 8 Apr 2016 20:53:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1AB7C21C097 for ; Fri, 8 Apr 2016 20:53:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E553B340CDB for ; Fri, 8 Apr 2016 20:53:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1734715F for ; Fri, 8 Apr 2016 20:52:56 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1460148763.32b41cf94528d0012231b59123a61b67fb7ca373.vapier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/xfsprogs/files/, sys-fs/xfsprogs/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/xfsprogs/files/xfsprogs-4.5.0-linguas.patch sys-fs/xfsprogs/xfsprogs-4.5.0.ebuild X-VCS-Directories: sys-fs/xfsprogs/files/ sys-fs/xfsprogs/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 32b41cf94528d0012231b59123a61b67fb7ca373 X-VCS-Branch: master Date: Fri, 8 Apr 2016 20:52:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 237a4ad8-afc6-4066-8207-2fc4f09333a2 X-Archives-Hash: e60b9b86004c6e215158c89aaa84b3c1 commit: 32b41cf94528d0012231b59123a61b67fb7ca373 Author: Mike Frysinger gentoo org> AuthorDate: Fri Apr 8 20:51:42 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Fri Apr 8 20:52:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32b41cf9 sys-fs/xfsprogs: respect user $LINGUAS #561664 sys-fs/xfsprogs/files/xfsprogs-4.5.0-linguas.patch | 32 ++++++++++++++++++++++ sys-fs/xfsprogs/xfsprogs-4.5.0.ebuild | 1 + 2 files changed, 33 insertions(+) diff --git a/sys-fs/xfsprogs/files/xfsprogs-4.5.0-linguas.patch b/sys-fs/xfsprogs/files/xfsprogs-4.5.0-linguas.patch new file mode 100644 index 0000000..9912e49 --- /dev/null +++ b/sys-fs/xfsprogs/files/xfsprogs-4.5.0-linguas.patch @@ -0,0 +1,32 @@ +From 2212e8bb59e7c3930d49da2ec5f4f0a9ceb086c7 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger +Date: Fri, 8 Apr 2016 16:41:31 -0400 +Subject: [PATCH] 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 +--- + po/Makefile | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/po/Makefile b/po/Makefile +index edf92ad..a5250b3 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 + diff --git a/sys-fs/xfsprogs/xfsprogs-4.5.0.ebuild b/sys-fs/xfsprogs/xfsprogs-4.5.0.ebuild index 52c29cc..91fa590 100644 --- a/sys-fs/xfsprogs/xfsprogs-4.5.0.ebuild +++ b/sys-fs/xfsprogs/xfsprogs-4.5.0.ebuild @@ -31,6 +31,7 @@ DEPEND="${RDEPEND} PATCHES=( "${FILESDIR}"/${PN}-4.3.0-sharedlibs.patch + "${FILESDIR}"/${PN}-4.5.0-linguas.patch ) pkg_setup() {