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 5F3AE59CA5 for ; Tue, 22 Mar 2016 18:28:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC57B21C047; Tue, 22 Mar 2016 18:28:58 +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 5894B21C047 for ; Tue, 22 Mar 2016 18:28:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 9016F340C54 for ; Tue, 22 Mar 2016 18:28:57 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F0B8E846 for ; Tue, 22 Mar 2016 18:28:55 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1458671330.e3ccb028ddbf97cfdadd0a5703d8ed783621dcb2.robbat2@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/git/git-2.7.4.ebuild X-VCS-Directories: dev-vcs/git/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: e3ccb028ddbf97cfdadd0a5703d8ed783621dcb2 X-VCS-Branch: master Date: Tue, 22 Mar 2016 18:28:55 +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: df7aacf3-68a6-4820-b6b1-4b69554bc671 X-Archives-Hash: 476eced4173947c8df18649fcfd6726d commit: e3ccb028ddbf97cfdadd0a5703d8ed783621dcb2 Author: Jan Vesely gmail com> AuthorDate: Wed Mar 16 12:03:29 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Tue Mar 22 18:28:50 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3ccb028 dev-vcs/git: Add LINGUAS support (Sourced from Github PR #1098) X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=454584 Signed-off-by: Jan Vesely gmail.com> Signed-off-by: Robin H. Johnson gentoo.org> dev-vcs/git/git-2.7.4.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev-vcs/git/git-2.7.4.ebuild b/dev-vcs/git/git-2.7.4.ebuild index ff8deaa..06a2a18 100644 --- a/dev-vcs/git/git-2.7.4.ebuild +++ b/dev-vcs/git/git-2.7.4.ebuild @@ -11,8 +11,9 @@ PYTHON_COMPAT=( python2_7 ) [[ ${PV} == *9999 ]] && SCM="git-2" EGIT_REPO_URI="git://git.kernel.org/pub/scm/git/git.git" EGIT_MASTER=pu +PLOCALES="bg ca de fr is it ko pt_PT ru sv vi zh_CN" -inherit toolchain-funcs eutils elisp-common perl-module bash-completion-r1 python-single-r1 systemd ${SCM} +inherit toolchain-funcs eutils elisp-common l10n perl-module bash-completion-r1 python-single-r1 systemd ${SCM} MY_PV="${PV/_rc/.rc}" MY_P="${PN}-${MY_PV}" @@ -534,6 +535,14 @@ src_install() { fi perl_delete_localpod + + # Remove disabled linguas + # we could remove sources in src_prepare, but install does not + # handle missing locale dir well + rm_loc() { + rm -r "${ED}/usr/share/locale/${1}" || die + } + l10n_for_each_disabled_locale_do rm_loc } src_test() {