forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
1 changed file
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}[email protected]" || 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 | ||
} |