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 848A21382A5 for ; Thu, 2 Jun 2016 07:42:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 475AE254024; Thu, 2 Jun 2016 07:42:17 +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 80F35254024 for ; Thu, 2 Jun 2016 07:42:16 +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 9BB42340B0B for ; Thu, 2 Jun 2016 07:42:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B291517B4 for ; Thu, 2 Jun 2016 07:42:12 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1464851636.b0139092dee566786bea0ea2b3291321d22be2ba.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/flacon/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/flacon/flacon-2.0.1-r1.ebuild X-VCS-Directories: media-sound/flacon/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: b0139092dee566786bea0ea2b3291321d22be2ba X-VCS-Branch: master Date: Thu, 2 Jun 2016 07:42:12 +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: a9c864d5-c809-4506-b341-55b0aba7a05d X-Archives-Hash: 80a266f6ae094b6259b93fe6c3ee2aa5 commit: b0139092dee566786bea0ea2b3291321d22be2ba Author: Ilya Tumaykin gmail com> AuthorDate: Tue May 31 01:55:05 2016 +0000 Commit: Patrice Clement gentoo org> CommitDate: Thu Jun 2 07:13:56 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0139092 media-sound/flacon: revbump to 2.0.1-r1 Changes: - EAPI=6; - add missing test deps; - update qt USE flags. Package-Manager: portage-2.3.0_rc1 Signed-off-by: Patrice Clement gentoo.org> media-sound/flacon/flacon-2.0.1-r1.ebuild | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/media-sound/flacon/flacon-2.0.1-r1.ebuild b/media-sound/flacon/flacon-2.0.1-r1.ebuild new file mode 100644 index 0000000..4a0e45a --- /dev/null +++ b/media-sound/flacon/flacon-2.0.1-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +# Ignore rudimentary et, uz@Latn, zh_TW translation(s). +PLOCALES="cs cs_CZ de es es_MX fr gl hu it ja_JP lt nb pl pl_PL pt_BR pt_PT ro_RO ru sr tr uk zh_CN" + +inherit cmake-utils fdo-mime gnome2-utils l10n virtualx + +DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks" +HOMEPAGE="https://flacon.github.io/" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="aac flac mac mp3 opus qt5 replaygain test tta vorbis wavpack" + +COMMON_DEPEND=" + dev-libs/uchardet + !qt5? ( + dev-qt/qtcore:4 + dev-qt/qtgui:4 + ) + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + ) +" +RDEPEND="${COMMON_DEPEND} + media-sound/shntool[mac?] + aac? ( media-libs/faac ) + flac? ( media-libs/flac ) + mac? ( media-sound/mac ) + mp3? ( media-sound/lame ) + opus? ( media-sound/opus-tools ) + replaygain? ( + mp3? ( media-sound/mp3gain ) + vorbis? ( media-sound/vorbisgain ) + ) + tta? ( media-sound/ttaenc ) + vorbis? ( media-sound/vorbis-tools ) + wavpack? ( media-sound/wavpack ) +" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + qt5? ( dev-qt/linguist-tools:5 ) + test? ( + media-sound/shntool + virtual/ffmpeg + !qt5? ( dev-qt/qttest:4 ) + qt5? ( dev-qt/qttest:5 ) + ) +" + +src_prepare() { + cmake-utils_src_prepare + + # Ignore rudimentary et, uz@Latn, zh_TW translation(s). + rm "translations/${PN}_uz@Latn.desktop" || die + rm "translations/${PN}"_{et,zh_TW}.ts || die + + remove_locale() { + rm "translations/${PN}_${1}".{ts,desktop} || die + } + + l10n_find_plocales_changes 'translations' "${PN}_" '.ts' + l10n_for_each_disabled_locale_do remove_locale +} + +src_configure() { + local mycmakeargs=( + -DUSE_QT4="$(usex !qt5)" + -DUSE_QT5="$(usex qt5)" + -DTEST_DATA_DIR="${S}/tests/data/" + -DBUILD_TESTS="$(usex test 'Yes')" + ) + cmake-utils_src_configure +} + +src_test() { + virtx "${BUILD_DIR}/tests/${PN}_test" +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +}