Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/sndpeek/
Date: Fri, 14 Oct 2016 12:30:19
Message-Id: 1476448191.0e78c8d05c5eefa8dc3ebbf64c220d43cd2e90a1.aballier@gentoo
1 commit: 0e78c8d05c5eefa8dc3ebbf64c220d43cd2e90a1
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 14 12:29:44 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 14 12:29:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e78c8d0
7
8 media-sound/sndpeek: update to eapi5 and add REQUIRED_USE, bug #581548
9
10 Package-Manager: portage-2.3.2
11
12 media-sound/sndpeek/sndpeek-1.4.ebuild | 12 +++---------
13 1 file changed, 3 insertions(+), 9 deletions(-)
14
15 diff --git a/media-sound/sndpeek/sndpeek-1.4.ebuild b/media-sound/sndpeek/sndpeek-1.4.ebuild
16 index 5c4cdc3..18dfcd6 100644
17 --- a/media-sound/sndpeek/sndpeek-1.4.ebuild
18 +++ b/media-sound/sndpeek/sndpeek-1.4.ebuild
19 @@ -1,8 +1,8 @@
20 -# Copyright 1999-2015 Gentoo Foundation
21 +# Copyright 1999-2016 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23 # $Id$
24
25 -EAPI=2
26 +EAPI=5
27 inherit eutils toolchain-funcs
28
29 DESCRIPTION="real-time audio visualization"
30 @@ -25,6 +25,7 @@ RDEPEND="media-libs/freeglut
31 alsa? ( media-libs/alsa-lib )
32 app-eselect/eselect-sndpeek"
33 DEPEND="${RDEPEND}"
34 +REQUIRED_USE="|| ( alsa jack oss )"
35
36 src_prepare() {
37 epatch "${FILESDIR}"/${PN}-1.3-makefile.patch \
38 @@ -32,13 +33,6 @@ src_prepare() {
39 "${FILESDIR}"/${P}-ldflags.patch
40 }
41
42 -pkg_setup() {
43 - if ! use alsa && ! use jack && ! use oss; then
44 - eerror "One of the following USE flags is needed: jack, alsa or oss"
45 - die "Please set one audio engine type"
46 - fi
47 -}
48 -
49 compile_backend() {
50 backend=$1
51 cd "${S}/src/sndpeek"