-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
-inherit eutils
+EAPI=7
-DESCRIPTION="Simple programming interface for decoding and encoding audio data using vorbis or speex"
-HOMEPAGE="http://www.xiph.org/fishsound/"
-SRC_URI="http://downloads.xiph.org/releases/libfishsound/${P}.tar.gz"
+DESCRIPTION="Simple programming interface to decode and encode audio with vorbis or speex"
+HOMEPAGE="https://www.xiph.org/fishsound/"
+SRC_URI="https://downloads.xiph.org/releases/libfishsound/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="flac speex"
-RDEPEND="media-libs/libvorbis
+RDEPEND="
media-libs/libogg
+ media-libs/libvorbis
flac? ( media-libs/flac )
speex? ( media-libs/speex )"
DEPEND="${RDEPEND}
# bug #395153
RESTRICT="test"
+PATCHES=( "${FILESDIR}"/${P}-pc.patch )
+
src_prepare() {
- epatch "${FILESDIR}"/${P}-pc.patch
+ default
sed -i \
-e 's:doxygen:doxygen-dummy:' \
configure || die
src_install() {
emake DESTDIR="${D}" \
- docdir="${D}/usr/share/doc/${PF}" install || die
+ docdir="${D}/usr/share/doc/${PF}" install
dodoc AUTHORS ChangeLog README
}