use epatch to apply patch
authorMichael Sterrett <mr_bones_@gentoo.org>
Sun, 22 Nov 2015 03:42:50 +0000 (22:42 -0500)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sun, 22 Nov 2015 03:43:24 +0000 (22:43 -0500)
Package-Manager: portage-2.2.20.1

games-board/gnuchess/gnuchess-6.2.2-r1.ebuild

index 484ec127426654ea2cf710296b02ffb44d657d94..67be01a6efefe017e26f2584003741690b08aa98 100644 (file)
@@ -3,7 +3,7 @@
 # $Id$
 
 EAPI=5
-inherit flag-o-matic games
+inherit eutils flag-o-matic games
 
 DESCRIPTION="Console based chess interface"
 HOMEPAGE="https://www.gnu.org/software/chess/chess.html"
@@ -14,7 +14,9 @@ LICENSE="GPL-3"
 SLOT="0"
 IUSE=""
 
-PATCHES=( "${FILESDIR}"/${P}-addbook.patch )
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-addbook.patch
+}
 
 src_configure() {
        strip-flags # bug #199097