diff options
author | Ulrich Müller <ulm@gentoo.org> | 2018-01-05 15:24:13 +0100 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2018-01-05 16:38:31 +0100 |
commit | 219b6892d36fc266ac6e8c2c960fb33d86ed7743 (patch) | |
tree | 72c4c7a1a9a3b38dd2cb499b2688c039008410d9 /dev-qt/qt-creator/qt-creator-9999.ebuild | |
parent | net-p2p/deluge: Remove unused linguas_* USE flags from metadata. (diff) | |
download | gentoo-219b6892d36fc266ac6e8c2c960fb33d86ed7743.tar.gz gentoo-219b6892d36fc266ac6e8c2c960fb33d86ed7743.tar.bz2 gentoo-219b6892d36fc266ac6e8c2c960fb33d86ed7743.zip |
dev-qt/qt-creator: Migrate from LINGUAS to L10N.
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-qt/qt-creator/qt-creator-9999.ebuild')
-rw-r--r-- | dev-qt/qt-creator/qt-creator-9999.ebuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/dev-qt/qt-creator/qt-creator-9999.ebuild b/dev-qt/qt-creator/qt-creator-9999.ebuild index 322f20850b87..38641edea7de 100644 --- a/dev-qt/qt-creator/qt-creator-9999.ebuild +++ b/dev-qt/qt-creator/qt-creator-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PLOCALES="cs de fr ja pl ru sl uk zh_CN zh_TW" +PLOCALES="cs de fr ja pl ru sl uk zh-CN zh-TW" -inherit l10n llvm qmake-utils toolchain-funcs virtualx xdg +inherit llvm qmake-utils toolchain-funcs virtualx xdg DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt" HOMEPAGE="https://doc.qt.io/qtcreator/" @@ -81,7 +81,8 @@ RDEPEND="${CDEPEND} " # qt translations must also be installed or qt-creator translations won't be loaded for x in ${PLOCALES}; do - RDEPEND+=" linguas_${x}? ( >=dev-qt/qttranslations-${QT_PV} )" + IUSE+=" l10n_${x}" + RDEPEND+=" l10n_${x}? ( >=dev-qt/qttranslations-${QT_PV} )" done unset x @@ -145,7 +146,11 @@ src_prepare() { sed -i -e "/^CLANG_RESOURCE_DIR\s*=/ s:\$\${LLVM_LIBDIR}:${EPREFIX}/usr/lib:" src/shared/clang/clang_defines.pri || die # fix translations - sed -i -e "/^LANGUAGES\s*=/ s:=.*:= $(l10n_get_locales):" share/qtcreator/translations/translations.pro || die + local lang languages= + for lang in ${PLOCALES}; do + use l10n_${lang} && languages+=" ${lang/-/_}" + done + sed -i -e "/^LANGUAGES\s*=/ s:=.*:=${languages}:" share/qtcreator/translations/translations.pro || die # remove bundled qbs rm -rf src/shared/qbs || die |