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

games-action/lugaru/lugaru-20151204-r1.ebuild
games-action/lugaru/lugaru-20151204.ebuild
games-action/lugaru/lugaru-9999.ebuild

index ac9ad89e8c7f5d672a64c2f0b4a5e2d747ce6b3c..f53cecb8d7485eb0951010e65b752339ec1bf830 100644 (file)
@@ -30,7 +30,8 @@ PATCHES=(
 )
 
 src_prepare() {
-       default
+       cmake-utils_src_prepare
+
        sed -i \
                -e "s:@GENTOO_DIR@:/usr/share/${PN}:" \
                Source/OpenGL_Windows.cpp || die
index 0a4ed3e8879a305cfc8341a1532db96f00d71fc1..3944efc4601db436f249a266e07c1b7623a05623 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
@@ -25,8 +25,11 @@ RDEPEND="
 DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
+PATCHES=( "${FILESDIR}/${P}-dir.patch" )
+
 src_prepare() {
-       epatch "${FILESDIR}/${P}-dir.patch"
+       cmake-utils_src_prepare
+
        sed -i \
                -e "s:@GENTOO_DIR@:${GAMES_DATADIR}/${PN}:" \
                Source/OpenGL_Windows.cpp || die
index c447775fa52087654a246668994a82472415ec45..2e65288097babb45b187308d9771cee3fd435abe 100644 (file)
@@ -35,7 +35,8 @@ PATCHES=(
 )
 
 src_prepare() {
-       default
+       cmake-utils_src_prepare
+
        sed -i \
         -e "s:@GENTOO_DIR@:/usr/share/${PN}:" \
         Source/OpenGL_Windows.cpp || die