From ad6cafcab6ddfed4bee649595be1f51397c6a537 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Fri, 20 Mar 2026 23:21:45 +0300 Subject: [PATCH] media-libs/libfishsound: Disable building of examples Also lift disabling of doc regeneration from sed to patch. Examples were build and then thrown away anyway, so this turns them off in general; automagic dependency on liboggz is now complete noop Tests are build in compile phase, but run in test phase. This remains. Closes: https://bugs.gentoo.org/949580 Signed-off-by: NHOrus Part-of: https://codeberg.org/gentoo/gentoo/pulls/382 Merges: https://codeberg.org/gentoo/gentoo/pulls/382 Signed-off-by: Sam James --- .../libfishsound-1.0.1-disable-docs.patch | 22 +++++++++ .../libfishsound/libfishsound-1.0.1-r1.ebuild | 47 +++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 media-libs/libfishsound/files/libfishsound-1.0.1-disable-docs.patch create mode 100644 media-libs/libfishsound/libfishsound-1.0.1-r1.ebuild diff --git a/media-libs/libfishsound/files/libfishsound-1.0.1-disable-docs.patch b/media-libs/libfishsound/files/libfishsound-1.0.1-disable-docs.patch new file mode 100644 index 0000000000000..3e576a088ecc9 --- /dev/null +++ b/media-libs/libfishsound/files/libfishsound-1.0.1-disable-docs.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/949580 +Lift document disablement from sed on configure to +patch on configure.ac, disable example building, +as they are thrown away afterwards anyway. +--- a/configure.ac ++++ b/configure.ac +@@ -49,7 +49,7 @@ + PKG_PROG_PKG_CONFIG + + # Check for doxygen +-AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, true, false) ++AC_CHECK_PROG(HAVE_DOXYGEN, doxygen-dummy, true, false) + AM_CONDITIONAL(HAVE_DOXYGEN,$HAVE_DOXYGEN) + if test $HAVE_DOXYGEN = "false"; then + AC_MSG_WARN([*** doxygen not found, docs will not be built]) +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,3 +1,3 @@ + ## Process this file with automake to produce Makefile.in + +-SUBDIRS = libfishsound examples tests ++SUBDIRS = libfishsound tests diff --git a/media-libs/libfishsound/libfishsound-1.0.1-r1.ebuild b/media-libs/libfishsound/libfishsound-1.0.1-r1.ebuild new file mode 100644 index 0000000000000..1e108206519d1 --- /dev/null +++ b/media-libs/libfishsound/libfishsound-1.0.1-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +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/libogg + media-libs/libvorbis + flac? ( media-libs/flac:= ) + speex? ( media-libs/speex ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}/${P}-disable-docs.patch" ) + +src_prepare() { + default + + eautoreconf +} + +src_configure() { + local myconf="--disable-static" + use flac || myconf="${myconf} --disable-flac" + use speex || myconf="${myconf} --disable-speex" + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" \ + docdir="${D}/usr/share/doc/${PF}" install + dodoc AUTHORS ChangeLog README + find "${ED}" -name '*.la' -delete || die +}