diff options
author | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2021-07-12 23:37:09 +0300 |
---|---|---|
committer | Azamat H. Hackimov <azamat.hackimov@gmail.com> | 2021-07-12 23:45:59 +0300 |
commit | e6e4b221f047b0109a6f167e718009dcbf4f2638 (patch) | |
tree | b7e11d8aef02d3186da667bae686f787ab74366c /games-strategy | |
parent | games-strategy/vcmi: migrate to cmake.eclass (diff) | |
download | gamerlay-e6e4b221f047b0109a6f167e718009dcbf4f2638.tar.gz gamerlay-e6e4b221f047b0109a6f167e718009dcbf4f2638.tar.bz2 gamerlay-e6e4b221f047b0109a6f167e718009dcbf4f2638.zip |
games-strategy/curseofwar: update to 1.3.0
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/curseofwar/Manifest | 11 | ||||
-rw-r--r-- | games-strategy/curseofwar/curseofwar-1.3.0.ebuild | 50 |
2 files changed, 51 insertions, 10 deletions
diff --git a/games-strategy/curseofwar/Manifest b/games-strategy/curseofwar/Manifest index b44adc8..4c0c104 100644 --- a/games-strategy/curseofwar/Manifest +++ b/games-strategy/curseofwar/Manifest @@ -1,11 +1,2 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - DIST curseofwar-1.2.0.tar.gz 72639 SHA256 91b7781e26341faa6b6999b6baf6e74ef532fa94303ab6a2bf9ff6d614a3f670 SHA512 37e5f154f9bcaed2a7ff21d924ec6ec92407dcd81486aca7c1fade0d383d6bbfbfb06d0a6419f781ae76d9dd1964feeb6408bb2710fbb4bbf1bb1476205ac7bd WHIRLPOOL 2cd681b1b1b378dfffef68f3da56daeb6bcbbff50413fc901811d036162ab543058c2b1f02823c756b8e01b9ed16968e4ad6886d1a96ccd56d4ee62b50376058 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) - -iF4EAREIAAYFAlK2dWQACgkQz+A7F6AY3owqpAD7BFV6dA/qZ1gBmOg2D1BQ0kkz -R99lIa2JESH+vpLdZPIBAJugqPyAOk6JiGdo/KkgWC3wnpQ+WC6DcSYan/pV1vwY -=J47J ------END PGP SIGNATURE----- +DIST curseofwar-1.3.0.tar.gz 73450 SHA256 2a90204d95a9f29a0e5923f43e65188209dc8be9d9eb93576404e3f79b8a652b SHA512 87d151af2a4eadbecd3f87867db8fb2277209e89a120443c9ee41065efc2004512f0b033626c2acddb98867eea6097c71b9aa7e4153f8b04b7b847682bc84705 WHIRLPOOL 8375b8b798c4939876ff445748cea53f964934518e882af909c344bfb8658140eea54258b25e54edecd72dcb9a736c7ac77d0f085b6804f80c571ee06ac695ba diff --git a/games-strategy/curseofwar/curseofwar-1.3.0.ebuild b/games-strategy/curseofwar/curseofwar-1.3.0.ebuild new file mode 100644 index 0000000..f41e4d7 --- /dev/null +++ b/games-strategy/curseofwar/curseofwar-1.3.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="A fast-paced action strategy game implemented using ncurses user interface." +HOMEPAGE="https://github.com/a-nikolaev/curseofwar/wiki" +SRC_URI="https://github.com/a-nikolaev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ncurses sdl" +REQUIRED_USE="|| ( ncurses sdl )" + +DEPEND="ncurses? ( sys-libs/ncurses:0 ) + sdl? ( media-libs/libsdl )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + sed -i -e "s:TARGET_LINK_LIBRARIES( curseofwar \${COMMON_LIBS} ncurses ):TARGET_LINK_LIBRARIES( curseofwar \${COMMON_LIBS} ncurses tinfo ):g" CMakeLists.txt + sed -i -e 's:INSTALL_DATA:"/usr/share/curseofwar/":g' path.c || die "sed failed" + cmake_src_prepare +} + +src_configure() { + mycmakeargs=( + -DCW_NCURSE_FRONTEND=$(usex ncurses) + -DCW_SDL_FRONTEND=$(usex sdl) + -DCW_SDL_MULTIPLAYER=$(usex sdl) + ) + cmake_src_configure +} + +src_install() { + if use ncurses ; then + dobin "${BUILD_DIR}/${PN}" + doman ${PN}.6 + fi + if use sdl ; then + dobin "${BUILD_DIR}/${PN}-sdl" + doman ${PN}-sdl.6 + insinto "/usr/share/${PN}" + doins -r images + fi + dodoc CHANGELOG README +} |