media-sound/normalize: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Tue, 10 Dec 2019 00:41:50 +0000 (01:41 +0100)
committerDavid Seifert <soap@gentoo.org>
Tue, 10 Dec 2019 00:41:50 +0000 (01:41 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/normalize/normalize-0.7.7-r1.ebuild

index 6058be69c6e010b26de478a8ee907108c7698e5d..dbc8ff6009f154f169bba16438ff54fac855dab2 100644 (file)
@@ -1,32 +1,37 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=7
 
-inherit eutils autotools
+inherit autotools
 
 DESCRIPTION="Audio file volume normalizer"
 HOMEPAGE="http://normalize.nongnu.org/"
-SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.bz2
+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 ppc ppc64 sparc x86"
-IUSE="audiofile mad nls userland_BSD"
+IUSE="audiofile mad nls"
 
-RDEPEND="mad? ( media-libs/libmad )
-       audiofile? ( >=media-libs/audiofile-0.3.1 )"
-DEPEND="${RDEPEND}
+RDEPEND="
+       audiofile? ( media-libs/audiofile:= )
+       mad? ( media-libs/libmad:= )"
+DEPEND="${RDEPEND}"
+BDEPEND="
        virtual/pkgconfig
        nls? ( dev-util/intltool )"
 
-src_prepare() {
-       use userland_BSD && sed -i -e 's/md5sum/md5/' "${S}"/test/*.sh
+PATCHES=(
+       "${FILESDIR}"/${P}-audiofile-pkgconfig.patch
+       "${WORKDIR}"/${P}-m4.patch
+)
 
-       epatch "${FILESDIR}"/${P}-audiofile-pkgconfig.patch
-       epatch "${WORKDIR}"/${P}-m4.patch
-       eautoreconf
+src_prepare() {
+       default
+       AT_M4DIR="." eautoreconf
 }
 
 src_configure() {