diff options
author | Devan Franchini <twitch153@gentoo.org> | 2016-04-02 00:17:18 -0400 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2016-04-02 15:37:00 -0400 |
commit | 09d9cf4a9308e973e82ca03982a18e456ed37f60 (patch) | |
tree | 5d73a75c5d8c21f476065c09ea3b21d6478eba6e /games-emulation/dolphin/dolphin-9999.ebuild | |
parent | mail-mta/ssmtp: add libressl support (diff) | |
download | gentoo-09d9cf4a9308e973e82ca03982a18e456ed37f60.tar.gz gentoo-09d9cf4a9308e973e82ca03982a18e456ed37f60.tar.bz2 gentoo-09d9cf4a9308e973e82ca03982a18e456ed37f60.zip |
Adds LINGUAS support to ebuid, bug #561914
Package-Manager: portage-2.2.27
Diffstat (limited to 'games-emulation/dolphin/dolphin-9999.ebuild')
-rw-r--r-- | games-emulation/dolphin/dolphin-9999.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/games-emulation/dolphin/dolphin-9999.ebuild b/games-emulation/dolphin/dolphin-9999.ebuild index b12563f7dd2f..981b451e4d5b 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() { |