blob: bb108967b9c45e475e0a407b93d5b22fdf7f8fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-soundlibs/emul-linux-x86-soundlibs-20110928.ebuild,v 1.4 2011/10/16 12:09:34 ssuominen Exp $
EAPI="4"
inherit emul-linux-x86
LICENSE="as-is BSD FDL-1.2 GPL-2 LGPL-2 LGPL-2.1 gsm public-domain"
KEYWORDS="-* amd64"
IUSE="alsa pulseaudio"
RDEPEND="pulseaudio? ( media-sound/pulseaudio )
~app-emulation/emul-linux-x86-baselibs-${PV}
~app-emulation/emul-linux-x86-medialibs-${PV}"
QA_DT_HASH="usr/lib32/.*"
src_prepare() {
_ALLOWED="${S}/etc/env.d"
use alsa && _ALLOWED="${_ALLOWED}|${S}/usr/bin/aoss"
ALLOWED="(${_ALLOWED})"
emul-linux-x86_src_prepare
if use alsa; then
mv -f "${S}"/usr/bin/aoss{,32} || die
fi
# libs without the rest of pulseaudio cause problems, bug 302003
if ! use pulseaudio; then
rm -rf $(find "${S}" -name '*pulse*' -not -name '*impulse*') || die
fi
}
|