summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-11-11 01:08:10 +0300
committerAzamat H. Hackimov <azamat.hackimov@gmail.com>2018-11-11 02:44:20 +0300
commit0398f255c6340dd7cda2fa2270301a61e72eae47 (patch)
tree2c3f320c33fc6973aae9f56a71fa72a240a76f4e
parent[games-util/grfcodec] remove package (diff)
downloadgamerlay-0398f255c6340dd7cda2fa2270301a61e72eae47.tar.gz
gamerlay-0398f255c6340dd7cda2fa2270301a61e72eae47.tar.bz2
gamerlay-0398f255c6340dd7cda2fa2270301a61e72eae47.zip
games-strategy/curseofwar: update ebuild
Migrate from games.eclass Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Package-Manager: Portage-2.3.49, Repoman-2.3.11
-rw-r--r--games-strategy/curseofwar/curseofwar-1.2.0.ebuild22
-rw-r--r--games-strategy/curseofwar/metadata.xml2
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>azamat.hackimov@gmail.com</email>
<name>Azamat H. Hackimov</name>
</maintainer>