From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 54E3D1396DA for ; Sun, 19 Nov 2017 15:09:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B248E0DC4; Sun, 19 Nov 2017 15:09:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 6AF94E0DC4 for ; Sun, 19 Nov 2017 15:09:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 8BF7634164B for ; Sun, 19 Nov 2017 15:09:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 00E33A054 for ; Sun, 19 Nov 2017 15:09:55 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1511104147.5e6ca548801e30874ba4ce2d82c520e8c7f75da8.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/clementine/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/clementine/clementine-9999.ebuild X-VCS-Directories: media-sound/clementine/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 5e6ca548801e30874ba4ce2d82c520e8c7f75da8 X-VCS-Branch: master Date: Sun, 19 Nov 2017 15:09: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: 34624465-1e00-45a8-b825-ab1db107f016 X-Archives-Hash: 365df182ddd61503a42ae4c31bce5ba7 commit: 5e6ca548801e30874ba4ce2d82c520e8c7f75da8 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Nov 19 13:37:01 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Nov 19 15:09:07 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e6ca548 media-sound/clementine: Use l10n.eclass Package-Manager: Portage-2.3.14, Repoman-2.3.6 media-sound/clementine/clementine-9999.ebuild | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/media-sound/clementine/clementine-9999.ebuild b/media-sound/clementine/clementine-9999.ebuild index 6675f7422fe..3e249872f86 100644 --- a/media-sound/clementine/clementine-9999.ebuild +++ b/media-sound/clementine/clementine-9999.ebuild @@ -5,9 +5,9 @@ EAPI=6 EGIT_REPO_URI="https://github.com/clementine-player/Clementine.git" -LANGS=" af ar be bg bn br bs ca cs cy da de el en_CA en_GB eo es et eu fa fi fr ga gl he he_IL hi hr hu hy ia id is it ja ka kk ko lt lv mr ms my nb nl oc pa pl pt pt_BR ro ru si_LK sk sl sr sr@latin sv te tr tr_TR uk uz vi zh_CN zh_TW" +PLOCALES="af ar be bg bn br bs ca cs cy da de el en en_CA en_GB eo es et eu fa fi fr ga gl he he_IL hi hr hu hy ia id is it ja ka kk ko lt lv mk_MK mr ms my nb nl oc pa pl pt pt_BR ro ru si_LK sk sl sr sr@latin sv te tr tr_TR uk uz vi zh_CN zh_TW" -inherit cmake-utils flag-o-matic gnome2-utils virtualx xdg-utils +inherit cmake-utils flag-o-matic gnome2-utils l10n virtualx xdg-utils [[ ${PV} == *9999* ]] && inherit git-r3 DESCRIPTION="Modern music player and library organizer based on Amarok 1.4 and Qt" @@ -20,7 +20,6 @@ SLOT="0" [[ ${PV} == *9999* ]] || \ KEYWORDS="~amd64 ~x86" IUSE="box cdda +dbus debug dropbox googledrive ipod lastfm mms moodbar mtp projectm pulseaudio seafile skydrive test +udisks wiimote" -IUSE+="${LANGS// / linguas_}" REQUIRED_USE=" udisks? ( dbus ) @@ -98,8 +97,9 @@ S="${WORKDIR}/${MY_P^}" PATCHES=( "${FILESDIR}"/${PN}-1.3-fix-tokenizer.patch ) src_prepare() { - cmake-utils_src_prepare + l10n_find_plocales_changes "src/translations" "" ".po" + cmake-utils_src_prepare # some tests fail or hang sed -i \ -e '/add_test_file(translations_test.cpp/d' \ @@ -107,11 +107,6 @@ src_prepare() { } src_configure() { - local langs x - for x in ${LANGS}; do - use linguas_${x} && langs+=" ${x}" - done - # spotify is not in portage local mycmakeargs=( -DBUILD_WERROR=OFF @@ -128,7 +123,7 @@ src_configure() { -DUSE_SYSTEM_GMOCK=ON -DUSE_SYSTEM_PROJECTM=ON -DBUNDLE_PROJECTM_PRESETS=OFF - -DLINGUAS="${langs}" + -DLINGUAS=$(l10n_get_locales) -DENABLE_BOX="$(usex box)" -DENABLE_AUDIOCD="$(usex cdda)" -DENABLE_DBUS="$(usex dbus)"