use epatch to apply patch
authorMichael Sterrett <mr_bones_@gentoo.org>
Sun, 22 Nov 2015 06:09:07 +0000 (01:09 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sun, 22 Nov 2015 06:09:07 +0000 (01:09 -0500)
Package-Manager: portage-2.2.20.1

games-action/deathchase3d/deathchase3d-0.9.ebuild

index 35290c1aaab106eaee4fd053f5941f3cbd2c66c9..8a9b39e4ffb08c3032e6f3d35580689f73b5d5e2 100644 (file)
@@ -1,9 +1,9 @@
 # Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
-EAPI=4
 
-inherit games
+EAPI=5
+inherit eutils games
 
 DESCRIPTION="A remake of the Sinclair Spectrum game of the same name"
 HOMEPAGE="http://www.autismuk.freeserve.co.uk/"
@@ -14,10 +14,12 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 
-DEPEND="media-libs/libsdl"
-RDEPEND="${DEPEND}"
+DEPEND="media-libs/libsdl[video]"
+RDEPEND=${DEPEND}
 
-PATCHES=( "${FILESDIR}"/${P}-underlink.patch )
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-underlink.patch
+}
 
 src_install() {
        dogamesbin "${PN}/${PN}"