1 |
commit: aa0c08bda954017b16c015fe1300b2f8fef1ebfd |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Jan 30 16:00:37 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 30 18:32:24 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa0c08bd |
7 |
|
8 |
media-sound/flacon: enable testing support in 9999 |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
media-sound/flacon/flacon-9999.ebuild | 10 ++++++++-- |
13 |
1 file changed, 8 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/media-sound/flacon/flacon-9999.ebuild b/media-sound/flacon/flacon-9999.ebuild |
16 |
index 6470d31..62c6a2a 100644 |
17 |
--- a/media-sound/flacon/flacon-9999.ebuild |
18 |
+++ b/media-sound/flacon/flacon-9999.ebuild |
19 |
@@ -7,7 +7,7 @@ EAPI=5 |
20 |
# Ignore rudimentary et, uz@Latn, zh_TW translation(s) |
21 |
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" |
22 |
|
23 |
-inherit cmake-utils fdo-mime gnome2-utils l10n git-r3 |
24 |
+inherit cmake-utils fdo-mime gnome2-utils l10n virtualx git-r3 |
25 |
|
26 |
DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks" |
27 |
HOMEPAGE="https://flacon.github.io/" |
28 |
@@ -16,7 +16,7 @@ EGIT_REPO_URI="git://github.com/${PN}/${PN}.git" |
29 |
LICENSE="LGPL-2.1" |
30 |
SLOT="0" |
31 |
KEYWORDS="" |
32 |
-IUSE="aac flac mac mp3 opus qt4 qt5 replaygain tta vorbis wavpack" |
33 |
+IUSE="aac flac mac mp3 opus qt4 qt5 replaygain test tta vorbis wavpack" |
34 |
|
35 |
COMMON_DEPEND=" |
36 |
dev-libs/uchardet |
37 |
@@ -70,10 +70,16 @@ src_configure() { |
38 |
local mycmakeargs=( |
39 |
-DUSE_QT4="$(usex qt4)" |
40 |
-DUSE_QT5="$(usex qt5)" |
41 |
+ -DTEST_DATA_DIR="${S}/tests/data/" |
42 |
+ -DBUILD_TESTS="$(usex test 'Yes')" |
43 |
) |
44 |
cmake-utils_src_configure |
45 |
} |
46 |
|
47 |
+src_test() { |
48 |
+ virtx "${BUILD_DIR}/tests/${PN}_test" |
49 |
+} |
50 |
+ |
51 |
pkg_preinst() { |
52 |
gnome2_icon_savelist |
53 |
} |