From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-995667-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEB86138330 for <garchives@archives.gentoo.org>; Sat, 6 Jan 2018 12:23:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 13283E08DF; Sat, 6 Jan 2018 12:23:07 +0000 (UTC) Received: from smtp.gentoo.org (unknown [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9271E08DF for <gentoo-commits@lists.gentoo.org>; Sat, 6 Jan 2018 12:23:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7927D335C07 for <gentoo-commits@lists.gentoo.org>; Sat, 6 Jan 2018 12:23:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 01754133 for <gentoo-commits@lists.gentoo.org>; Sat, 6 Jan 2018 12:23:02 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org> Message-ID: <1515241375.c7c68b0ef24b4a08e9ab2a2267aa3e4cd9e57f27.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: mail-client/mail-notification/ X-VCS-Repository: repo/gentoo X-VCS-Files: mail-client/mail-notification/mail-notification-5.4-r10.ebuild X-VCS-Directories: mail-client/mail-notification/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: c7c68b0ef24b4a08e9ab2a2267aa3e4cd9e57f27 X-VCS-Branch: master Date: Sat, 6 Jan 2018 12:23:02 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e8232a4d-07f7-42ec-9e36-c649ade517fd X-Archives-Hash: 5c3f3740015a06ce91be9b2e0c169664 commit: c7c68b0ef24b4a08e9ab2a2267aa3e4cd9e57f27 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sat Jan 6 12:06:18 2018 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Jan 6 12:22:55 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7c68b0e mail-client/mail-notification: Remove linguas_* from IUSE. Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../mail-notification-5.4-r10.ebuild | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/mail-client/mail-notification/mail-notification-5.4-r10.ebuild b/mail-client/mail-notification/mail-notification-5.4-r10.ebuild index 6a021824142..4c0b026eefa 100644 --- a/mail-client/mail-notification/mail-notification-5.4-r10.ebuild +++ b/mail-client/mail-notification/mail-notification-5.4-r10.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -17,9 +17,6 @@ LICENSE="GPL-3" IUSE="+gnome-keyring libressl sasl ssl sylpheed" LANGS="bg ca cs de es fr ja nl pl pt pt_BR ru sr sr@Latn sv" -for lang in ${LANGS}; do - IUSE+=" linguas_${lang}" -done # gmime is actually optional, but it's used by so much of the package # it's pointless making it optional. gnome-keyring is required for @@ -100,12 +97,14 @@ src_install() { einstalldocs rm -rf "${ED}/var/lib/scrollkeeper" - einfo "Cleaning up locales..." - for lang in ${LANGS}; do - use "linguas_${lang}" && { - einfo "- keeping ${lang}" - continue - } - rm -Rf "${D}"/usr/share/locale/"${lang}" || die - done + if [[ -n ${LINGUAS+set} ]]; then + einfo "Cleaning up locales..." + for lang in ${LANGS}; do + if has ${lang} ${LINGUAS}; then + einfo "- keeping ${lang}" + else + rm -Rf "${D}"/usr/share/locale/"${lang}" || die + fi + done + fi }