gentoo-ebuilds/media-sound/normalize/normalize-0.7.7-r2.ebuild
Sam James fc022648fe
media-sound/normalize: EAPI 8, fix C23 issue
Fix a silly trick being used there that causes problems rather than
fixing any.

Closes: https://bugs.gentoo.org/944353
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-28 11:54:51 +01:00

53 lines
1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Audio file volume normalizer"
HOMEPAGE="http://normalize.nongnu.org/"
SRC_URI="
https://savannah.nongnu.org/download/${PN}/${P}.tar.bz2
https://dev.gentoo.org/~radhermit/distfiles/${P}-m4.patch.gz
"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="audiofile mad nls"
RDEPEND="
audiofile? ( media-libs/audiofile:= )
mad? ( media-libs/libmad:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
nls? ( dev-util/intltool )
"
PATCHES=(
"${FILESDIR}"/${P}-audiofile-pkgconfig.patch
"${WORKDIR}"/${P}-m4.patch
"${FILESDIR}"/${P}-c23.patch
)
src_prepare() {
default
AT_M4DIR="." eautoreconf
}
src_configure() {
econf \
$(use_with audiofile) \
$(use_with mad) \
$(use_enable nls) \
--disable-xmms
}
src_test() {
# .sh tests missing a dep on ../src/mktestwav but ancient autoconf/automake
# so too much hassle to patch, bug #740488.
emake -j1 check
}