--- mp3gain-1.5.2.ebuild 2010-08-04 16:33:55.738360839 +0200 +++ mp3gain-1.5.2_p1.ebuild 2010-08-06 17:03:15.376812006 +0200 @@ -1,11 +1,13 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mp3gain/mp3gain-1.5.2.ebuild,v 1.1 2010/07/25 09:09:02 ssuominen Exp $ +# $Header: $ EAPI=2 -inherit toolchain-funcs +inherit eutils toolchain-funcs MY_P=${P//./_} +MY_P=${MY_P/_p*} +MY_PV=${PV/_p*} DESCRIPTION="A program to analyze and adjust MP3 files to same volume" HOMEPAGE="http://mp3gain.sourceforge.net/" @@ -22,10 +24,8 @@ S=${WORKDIR} src_prepare() { - sed -i \ - -e 's:CFLAGS= -Wall -O2:CFLAGS+= -Wall:' \ - -e 's:$(CC) -o:$(CC) $(LDFLAGS) -o:' \ - Makefile || die + epatch "${FILESDIR}/${MY_PV}-01-makefile-install.patch" + epatch "${FILESDIR}/${MY_PV}-02-makefile-respect.patch" } src_compile() {