commit:     d52da562a137b69553c48e94406e8eef8db670ad
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 10 00:41:50 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec 10 00:41:50 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d52da562

media-sound/normalize: Port to EAPI 7

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-sound/normalize/normalize-0.7.7-r1.ebuild | 31 ++++++++++++++-----------
 1 file changed, 18 insertions(+), 13 deletions(-)

diff --git a/media-sound/normalize/normalize-0.7.7-r1.ebuild 
b/media-sound/normalize/normalize-0.7.7-r1.ebuild
index 6058be69c6e..dbc8ff6009f 100644
--- a/media-sound/normalize/normalize-0.7.7-r1.ebuild
+++ b/media-sound/normalize/normalize-0.7.7-r1.ebuild
@@ -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() {

Reply via email to