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 0B4F659CAF for ; Sat, 2 Apr 2016 19:42:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 574DCE084C; Sat, 2 Apr 2016 19:42: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 C4540E084C for ; Sat, 2 Apr 2016 19:42:57 +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 31D50340E5E for ; Sat, 2 Apr 2016 19:42:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C88F80 for ; Sat, 2 Apr 2016 19:42:53 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1459625820.09d9cf4a9308e973e82ca03982a18e456ed37f60.twitch153@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-emulation/dolphin/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-emulation/dolphin/dolphin-9999.ebuild X-VCS-Directories: games-emulation/dolphin/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 09d9cf4a9308e973e82ca03982a18e456ed37f60 X-VCS-Branch: master Date: Sat, 2 Apr 2016 19:42:53 +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: 066d96f9-f679-4005-95d9-26a872aac36b X-Archives-Hash: fe66498f134f230094871e6e8948ae2d commit: 09d9cf4a9308e973e82ca03982a18e456ed37f60 Author: Devan Franchini gentoo org> AuthorDate: Sat Apr 2 04:17:18 2016 +0000 Commit: Devan Franchini gentoo org> CommitDate: Sat Apr 2 19:37:00 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09d9cf4a Adds LINGUAS support to ebuid, bug #561914 Package-Manager: portage-2.2.27 games-emulation/dolphin/dolphin-9999.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild index b12563f..981b451 100644 --- a/games-emulation/dolphin/dolphin-9999.ebuild +++ b/games-emulation/dolphin/dolphin-9999.ebuild @@ -4,9 +4,11 @@ EAPI=5 +PLOCALES="ar ca cs de el en es fa fr he hu it ja ko nb nl pl pt_BR pt ru sr sv tr zh_CN zh_TW" +PLOCALE_BACKUP="en" WX_GTK_VER="3.0" -inherit cmake-utils eutils pax-utils toolchain-funcs versionator wxwidgets games +inherit cmake-utils eutils l10n pax-utils toolchain-funcs versionator wxwidgets games if [[ ${PV} == 9999* ]] then @@ -130,6 +132,18 @@ src_prepare() { mv SOIL Externals || die mv gtest Externals || die mv xxhash Externals || die + + remove_locale() { + # Ensure preservation of the backup locale when no valid LINGUA is set + if [[ "${PLOCALE_BACKUP}" == "${1}" ]] && [[ "${PLOCALE_BACKUP}" == "$(l10n_get_locales)" ]]; then + return + else + rm "Languages/po/${1}.po" || die + fi + } + + l10n_find_plocales_changes "Languages/po/" "" '.po' + l10n_for_each_disabled_locale_do remove_locale } src_configure() {