games-emulation/hatari: [QA] Add cmake-utils_src_prepare
authorDavid Seifert <soap@gentoo.org>
Sun, 15 Oct 2017 23:48:41 +0000 (16:48 -0700)
committerDavid Seifert <soap@gentoo.org>
Mon, 16 Oct 2017 00:07:37 +0000 (17:07 -0700)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

games-emulation/hatari/hatari-1.8.0.ebuild

index defb5f6da8ce032e2b65297437f8263bbf627671..50898e87d78dd7da1205ac187f66e7b1266cb082 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -26,14 +26,19 @@ RDEPEND="${RDEPEND}
        dev-python/pygtk[${PYTHON_USEDEP}]
        games-emulation/emutos"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+       "${FILESDIR}"/${P}-gentoo-docdir.patch
+)
+
 pkg_setup() {
        games_pkg_setup
        python-single-r1_pkg_setup
 }
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-gentoo.patch \
-               "${FILESDIR}"/${P}-gentoo-docdir.patch
+       cmake-utils_src_prepare
+
        # build with newer zlib (bug #387829)
        sed -i -e '1i#define OF(x) x' src/includes/unzip.h || die
        sed -i -e '/Encoding/d' ./python-ui/hatariui.desktop || die