mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-sound/sndpeek: update to eapi5 and add REQUIRED_USE, bug #581548
Package-Manager: portage-2.3.2
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
# Copyright 1999-2015 Gentoo Foundation
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
EAPI=2
|
EAPI=5
|
||||||
inherit eutils toolchain-funcs
|
inherit eutils toolchain-funcs
|
||||||
|
|
||||||
DESCRIPTION="real-time audio visualization"
|
DESCRIPTION="real-time audio visualization"
|
||||||
@@ -25,6 +25,7 @@ RDEPEND="media-libs/freeglut
|
|||||||
alsa? ( media-libs/alsa-lib )
|
alsa? ( media-libs/alsa-lib )
|
||||||
app-eselect/eselect-sndpeek"
|
app-eselect/eselect-sndpeek"
|
||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
|
REQUIRED_USE="|| ( alsa jack oss )"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
epatch "${FILESDIR}"/${PN}-1.3-makefile.patch \
|
epatch "${FILESDIR}"/${PN}-1.3-makefile.patch \
|
||||||
@@ -32,13 +33,6 @@ src_prepare() {
|
|||||||
"${FILESDIR}"/${P}-ldflags.patch
|
"${FILESDIR}"/${P}-ldflags.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if ! use alsa && ! use jack && ! use oss; then
|
|
||||||
eerror "One of the following USE flags is needed: jack, alsa or oss"
|
|
||||||
die "Please set one audio engine type"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
compile_backend() {
|
compile_backend() {
|
||||||
backend=$1
|
backend=$1
|
||||||
cd "${S}/src/sndpeek"
|
cd "${S}/src/sndpeek"
|
||||||
|
|||||||
Reference in New Issue
Block a user