1 |
commit: e6e4b221f047b0109a6f167e718009dcbf4f2638 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 12 20:37:09 2021 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Mon Jul 12 20:45:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=e6e4b221 |
7 |
|
8 |
games-strategy/curseofwar: update to 1.3.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
12 |
|
13 |
games-strategy/curseofwar/curseofwar-1.3.0.ebuild | 50 +++++++++++++++++++++++ |
14 |
1 file changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/curseofwar/curseofwar-1.3.0.ebuild b/games-strategy/curseofwar/curseofwar-1.3.0.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..f41e4d7 |
19 |
--- /dev/null |
20 |
+++ b/games-strategy/curseofwar/curseofwar-1.3.0.ebuild |
21 |
@@ -0,0 +1,50 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit cmake |
28 |
+ |
29 |
+DESCRIPTION="A fast-paced action strategy game implemented using ncurses user interface." |
30 |
+HOMEPAGE="https://github.com/a-nikolaev/curseofwar/wiki" |
31 |
+SRC_URI="https://github.com/a-nikolaev/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="GPL-3" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="ncurses sdl" |
37 |
+REQUIRED_USE="|| ( ncurses sdl )" |
38 |
+ |
39 |
+DEPEND="ncurses? ( sys-libs/ncurses:0 ) |
40 |
+ sdl? ( media-libs/libsdl )" |
41 |
+RDEPEND="${DEPEND}" |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ default |
45 |
+ sed -i -e "s:TARGET_LINK_LIBRARIES( curseofwar \${COMMON_LIBS} ncurses ):TARGET_LINK_LIBRARIES( curseofwar \${COMMON_LIBS} ncurses tinfo ):g" CMakeLists.txt |
46 |
+ sed -i -e 's:INSTALL_DATA:"/usr/share/curseofwar/":g' path.c || die "sed failed" |
47 |
+ cmake_src_prepare |
48 |
+} |
49 |
+ |
50 |
+src_configure() { |
51 |
+ mycmakeargs=( |
52 |
+ -DCW_NCURSE_FRONTEND=$(usex ncurses) |
53 |
+ -DCW_SDL_FRONTEND=$(usex sdl) |
54 |
+ -DCW_SDL_MULTIPLAYER=$(usex sdl) |
55 |
+ ) |
56 |
+ cmake_src_configure |
57 |
+} |
58 |
+ |
59 |
+src_install() { |
60 |
+ if use ncurses ; then |
61 |
+ dobin "${BUILD_DIR}/${PN}" |
62 |
+ doman ${PN}.6 |
63 |
+ fi |
64 |
+ if use sdl ; then |
65 |
+ dobin "${BUILD_DIR}/${PN}-sdl" |
66 |
+ doman ${PN}-sdl.6 |
67 |
+ insinto "/usr/share/${PN}" |
68 |
+ doins -r images |
69 |
+ fi |
70 |
+ dodoc CHANGELOG README |
71 |
+} |