games-strategy/freesynd: [QA] Add cmake-utils_src_prepare
authorDavid Seifert <soap@gentoo.org>
Sun, 15 Oct 2017 23:54:50 +0000 (16:54 -0700)
committerDavid Seifert <soap@gentoo.org>
Mon, 16 Oct 2017 00:08:06 +0000 (17:08 -0700)
Package-Manager: Portage-2.3.11, Repoman-2.3.3

games-strategy/freesynd/freesynd-0.7.1.ebuild

index ca97959a72125d94195e46b1cd0751ac76cb06bb..ec26a73395b276b6fadfbb8cd029aadb400cb6f5 100644 (file)
@@ -1,10 +1,10 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
 inherit eutils cmake-utils gnome2-utils games
 
-DESCRIPTION="A cross-platform reimplementation of engine for the classic Bullfrog game, Syndicate"
+DESCRIPTION="A portable reimplementation of engine for the classic Bullfrog game, Syndicate"
 HOMEPAGE="http://freesynd.sourceforge.net/"
 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
 
@@ -21,10 +21,12 @@ RDEPEND="media-libs/libogg
        media-libs/sdl-image[png]"
 DEPEND=${RDEPEND}
 
+PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
+
 CMAKE_IN_SOURCE_BUILD=1
 
 src_prepare() {
-       epatch "${FILESDIR}"/${P}-cmake.patch
+       cmake-utils_src_prepare
 
        sed \
                -e "s:#freesynd_data_dir = /usr/share/freesynd/data:freesynd_data_dir = ${GAMES_DATADIR}/${PN}/data:" \