Line 0
Link Here
|
|
|
1 |
# Copyright 1999-2018 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=7 |
5 |
|
6 |
DESCRIPTION="Simple programming interface for decoding and encoding audio data using vorbis or speex" |
7 |
HOMEPAGE="https://www.xiph.org/fishsound/" |
8 |
SRC_URI="https://downloads.xiph.org/releases/libfishsound/${P}.tar.gz" |
9 |
|
10 |
LICENSE="BSD" |
11 |
SLOT="0" |
12 |
KEYWORDS="~amd64 ~x86" |
13 |
IUSE="flac speex" |
14 |
|
15 |
RDEPEND="media-libs/libvorbis |
16 |
media-libs/libogg |
17 |
flac? ( media-libs/flac ) |
18 |
speex? ( media-libs/speex )" |
19 |
DEPEND="${RDEPEND} |
20 |
virtual/pkgconfig" |
21 |
|
22 |
# bug #395153 |
23 |
RESTRICT="test" |
24 |
|
25 |
PATCHES=( "${FILESDIR}"/${P}-pc.patch ) |
26 |
|
27 |
src_prepare() { |
28 |
default |
29 |
sed -i \ |
30 |
-e 's:doxygen:doxygen-dummy:' \ |
31 |
configure || die |
32 |
} |
33 |
|
34 |
src_configure() { |
35 |
local myconf="" |
36 |
use flac || myconf="${myconf} --disable-flac" |
37 |
use speex || myconf="${myconf} --disable-speex" |
38 |
|
39 |
econf \ |
40 |
--disable-dependency-tracking \ |
41 |
${myconf} |
42 |
} |
43 |
|
44 |
src_install() { |
45 |
emake DESTDIR="${D}" \ |
46 |
docdir="${D}/usr/share/doc/${PF}" install |
47 |
dodoc AUTHORS ChangeLog README |
48 |
} |