Gentoo Archives: gentoo-commits

From: Thomas Beierlein <tomjbe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-radio/unixcw/, media-radio/unixcw/files/
Date: Wed, 01 Aug 2018 09:14:52
Message-Id: 1533112685.6bd56369bade77916f1984fc35bff33b4bc90413.tomjbe@gentoo
1 commit: 6bd56369bade77916f1984fc35bff33b4bc90413
2 Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 1 08:38:05 2018 +0000
4 Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 1 08:38:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bd56369
7
8 media-radio/unixcw: Fix tests
9
10 Make test independent of installed audio system.
11
12 Reported-by: Toralf Förster <toralf <AT> gentoo.org>
13 Closes: https://bugs.gentoo.org/630276
14 Package-Manager: Portage-2.3.44, Repoman-2.3.10
15
16 media-radio/unixcw/files/unixcw-tests.patch | 12 ++++++++++++
17 media-radio/unixcw/unixcw-3.5.1.ebuild | 7 +++----
18 2 files changed, 15 insertions(+), 4 deletions(-)
19
20 diff --git a/media-radio/unixcw/files/unixcw-tests.patch b/media-radio/unixcw/files/unixcw-tests.patch
21 new file mode 100644
22 index 00000000000..9d2c3d9685c
23 --- /dev/null
24 +++ b/media-radio/unixcw/files/unixcw-tests.patch
25 @@ -0,0 +1,12 @@
26 +# works now without any installed audio system
27 +--- src/libcw/tests/libcw_test_tq_short_space.c.orig 2018-08-01 07:53:33.972577616 +0000
28 ++++ src/libcw/tests/libcw_test_tq_short_space.c 2018-08-01 07:53:42.877456677 +0000
29 +@@ -94,7 +94,7 @@
30 + bool success = true;
31 +
32 + /* Library initialization. */
33 +- cw_generator_new(CW_AUDIO_SOUNDCARD, NULL);
34 ++ cw_generator_new(CW_AUDIO_NULL, NULL);
35 + cw_generator_start();
36 +
37 + cw_register_tone_queue_low_callback(cwdaemon_tone_queue_low_callback, NULL, tq_low_watermark);
38
39 diff --git a/media-radio/unixcw/unixcw-3.5.1.ebuild b/media-radio/unixcw/unixcw-3.5.1.ebuild
40 index 1eb06a2ba00..b50fdf97de9 100644
41 --- a/media-radio/unixcw/unixcw-3.5.1.ebuild
42 +++ b/media-radio/unixcw/unixcw-3.5.1.ebuild
43 @@ -1,4 +1,4 @@
44 -# Copyright 1999-2017 Gentoo Foundation
45 +# Copyright 1999-2018 Gentoo Foundation
46 # Distributed under the terms of the GNU General Public License v2
47
48 EAPI=5
49 @@ -14,8 +14,6 @@ SLOT="0"
50 KEYWORDS="alpha amd64 ppc x86"
51 IUSE="alsa ncurses pulseaudio suid test qt5"
52
53 -REQUIRED_USE="test? ( || ( alsa pulseaudio ) )"
54 -
55 RDEPEND="ncurses? ( sys-libs/ncurses:= )
56 qt5? ( dev-qt/qtcore:5
57 dev-qt/qtgui:5
58 @@ -30,7 +28,8 @@ DEPEND="${RDEPEND}
59 src_prepare() {
60 append-cflags -std=gnu11
61 append-cxxflags -std=gnu++11
62 - epatch "${FILESDIR}"/$PN-3.5-tinfo.patch
63 + epatch "${FILESDIR}"/$PN-3.5-tinfo.patch \
64 + "${FILESDIR}"/$PN-tests.patch
65 eautoreconf
66 }