summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Tumaykin <itumaykin@gmail.com>2016-01-30 19:00:37 +0300
committerIlya Tumaykin <itumaykin@gmail.com>2016-01-30 21:32:24 +0300
commitaa0c08bda954017b16c015fe1300b2f8fef1ebfd (patch)
tree059e8d4aa5698338efbf044be617e9759a390523 /media-sound/flacon
parentmedia-sound/flacon: avoid using EAPI-6-deprecated functions in 9999 (diff)
downloadgentoo-aa0c08bda954017b16c015fe1300b2f8fef1ebfd.tar.gz
gentoo-aa0c08bda954017b16c015fe1300b2f8fef1ebfd.tar.bz2
gentoo-aa0c08bda954017b16c015fe1300b2f8fef1ebfd.zip
media-sound/flacon: enable testing support in 9999
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-sound/flacon')
-rw-r--r--media-sound/flacon/flacon-9999.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/media-sound/flacon/flacon-9999.ebuild b/media-sound/flacon/flacon-9999.ebuild
index 6470d31a09fb..62c6a2ae712c 100644
--- a/media-sound/flacon/flacon-9999.ebuild
+++ b/media-sound/flacon/flacon-9999.ebuild
@@ -7,7 +7,7 @@ EAPI=5
# Ignore rudimentary et, uz@Latn, zh_TW translation(s)
PLOCALES="cs_CZ cs de es_MX es 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 git-r3
+inherit cmake-utils fdo-mime gnome2-utils l10n virtualx git-r3
DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks"
HOMEPAGE="https://flacon.github.io/"
@@ -16,7 +16,7 @@ EGIT_REPO_URI="git://github.com/${PN}/${PN}.git"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
-IUSE="aac flac mac mp3 opus qt4 qt5 replaygain tta vorbis wavpack"
+IUSE="aac flac mac mp3 opus qt4 qt5 replaygain test tta vorbis wavpack"
COMMON_DEPEND="
dev-libs/uchardet
@@ -70,10 +70,16 @@ src_configure() {
local mycmakeargs=(
-DUSE_QT4="$(usex qt4)"
-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
}