commit:     0398f255c6340dd7cda2fa2270301a61e72eae47
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Sat Nov 10 22:08:10 2018 +0000
Commit:     Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
CommitDate: Sat Nov 10 23:44:20 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=0398f255

games-strategy/curseofwar: update ebuild

Migrate from games.eclass

Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 games-strategy/curseofwar/curseofwar-1.2.0.ebuild | 22 ++++++++++++----------
 games-strategy/curseofwar/metadata.xml            |  2 +-
 2 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/games-strategy/curseofwar/curseofwar-1.2.0.ebuild 
b/games-strategy/curseofwar/curseofwar-1.2.0.ebuild
index 97a86c1..fbb4392 100644
--- a/games-strategy/curseofwar/curseofwar-1.2.0.ebuild
+++ b/games-strategy/curseofwar/curseofwar-1.2.0.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=5
+EAPI=6
 
-inherit cmake-utils games
+inherit cmake-utils
 
 DESCRIPTION="A fast-paced action strategy game implemented using ncurses user 
interface."
 HOMEPAGE="https://github.com/a-nikolaev/curseofwar/wiki";
@@ -16,21 +16,23 @@ KEYWORDS="~amd64 ~x86"
 IUSE="ncurses sdl"
 REQUIRED_USE="|| ( ncurses sdl )"
 
-DEPEND="ncurses? ( sys-libs/ncurses )
+DEPEND="ncurses? ( sys-libs/ncurses:0 )
        sdl? ( media-libs/libsdl )"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
+       default
        sed -i -e "s:%VERSION%:${PV}:g" ${PN}{,-sdl}.6
        sed -i -e "s:/usr/local/share/:${GAMES_DATADIR}/:g" path.c
        epatch "${FILESDIR}/${P}-fix-gcc-error-compilation.patch"
+       cmake-utils_src_prepare
 }
 
 src_configure() {
        mycmakeargs=(
-               $(cmake-utils_use ncurses CW_NCURSE_FRONTEND)
-               $(cmake-utils_use sdl CW_SDL_FRONTEND)
-               $(cmake-utils_use sdl CW_SDL_MULTIPLAYER)
+               -DCW_NCURSE_FRONTEND=$(usex ncurses)
+               -DCW_SDL_FRONTEND=$(usex sdl)
+               -DCW_SDL_MULTIPLAYER=$(usex sdl)
        )
        cmake-utils_src_configure
 }
@@ -42,15 +44,15 @@ src_compile() {
 src_install() {
        doicon pixmaps/${PN}-32x32.xpm
        if use ncurses ; then
-               dogamesbin "${BUILD_DIR}/${PN}"
+               dobin "${BUILD_DIR}/${PN}"
                make_desktop_entry ${PN} "Curse of War" ${PN}-32x32 
"Game;StrategyGame" "Terminal=true"
                doman ${PN}.6
        fi
        if use sdl ; then
-               dogamesbin "${BUILD_DIR}/${PN}-sdl"
+               dobin "${BUILD_DIR}/${PN}-sdl"
                make_desktop_entry ${PN}-sdl "Curse of War (SDL)" ${PN}-32x32
                doman ${PN}-sdl.6
-               insinto "${GAMES_DATADIR}/${PN}"
+               insinto "/usr/share/${PN}"
                doins -r images
        fi
        dodoc CHANGELOG README

diff --git a/games-strategy/curseofwar/metadata.xml 
b/games-strategy/curseofwar/metadata.xml
index c0cf102..9f683c8 100644
--- a/games-strategy/curseofwar/metadata.xml
+++ b/games-strategy/curseofwar/metadata.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
 <pkgmetadata>
-<maintainer>
+<maintainer type="person">
 <email>[email protected]</email>
 <name>Azamat H. Hackimov</name>
 </maintainer>

Reply via email to