use epatch to apply patch
authorMichael Sterrett <mr_bones_@gentoo.org>
Sun, 22 Nov 2015 05:57:52 +0000 (00:57 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sun, 22 Nov 2015 05:57:52 +0000 (00:57 -0500)
Package-Manager: portage-2.2.20.1

games-arcade/amphetamine/amphetamine-0.8.10.ebuild

index 73d9b27173cc233ef09679be6ba1aa72129cd1d8..a93e702fa0792e08d7e1c4adb21a34755a615ee3 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=4
+EAPI=5
 inherit eutils games
 
 DESCRIPTION="a cool Jump'n Run game offering some unique visual effects"
@@ -17,12 +17,14 @@ IUSE=""
 
 DEPEND="media-libs/libsdl[sound,video]
        x11-libs/libXpm"
-RDEPEND="${DEPEND}"
+RDEPEND=${DEPEND}
 
-PATCHES=(
-       "${FILESDIR}"/${P}-build.patch
-       "${FILESDIR}"/${P}-64bit.patch
-)
+src_prepare() {
+       epatch \
+               "${FILESDIR}"/${P}-build.patch \
+               "${FILESDIR}"/${P}-64bit.patch
+       sed -i -e '55d' src/ObjInfo.cpp || die
+}
 
 src_compile() {
        emake INSTALL_DIR="${GAMES_DATADIR}"/${PN}