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

games-arcade/blockrage/blockrage-0.2.3.ebuild

index abe431660f4f61e0cc1dd40733d2140a8ef1eed5..78dd1788ab85d03f41a52ad328aca8bb34a16a60 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="Falling-blocks arcade game with a 2-player hotseat mode"
@@ -14,13 +14,16 @@ SLOT="0"
 KEYWORDS="amd64 ppc x86"
 IUSE=""
 
-DEPEND="media-libs/libsdl"
-RDEPEND="${DEPEND}"
+DEPEND="media-libs/libsdl[video]"
+RDEPEND=${DEPEND}
 
 # Removing error due to wrong detection of cross-compile mode
-PATCHES=( "${FILESDIR}/${P}"-config.patch )
 DOCS=( ChangeLog KNOWN_BUGS README TODO )
 
+src_prepare() {
+       epatch "${FILESDIR}/${P}"-config.patch
+}
+
 src_install() {
        default
        prepgamesdirs