1 |
commit: 4ea2e2df530c83b0e363880e1ab2a3cce0acd75d |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 3 00:34:05 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 3 02:07:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ea2e2df |
7 |
|
8 |
games-strategy/naev: add 0.9.1 |
9 |
|
10 |
This version add/shifts several dependencies around, openal is no |
11 |
longer optional and SDL_mixer unused (so is sdl2[sound]). |
12 |
|
13 |
Also adds openblas, it can use other implementations but upstream |
14 |
notes that everything else is experimental so let's stick to what's |
15 |
known to work for now. |
16 |
|
17 |
Tests (which try to start the game and see if it gets to the main |
18 |
menu) now fail under Xvfb without mesa[llvm] (0.8.2 didn't), and |
19 |
would segfault without physfs[zip] (but that's only needed for |
20 |
meson_overlay.zip which isn't used outside tests). May still be |
21 |
more needed that tinderboxes may pickup. |
22 |
|
23 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
24 |
|
25 |
games-strategy/naev/Manifest | 1 + |
26 |
games-strategy/naev/naev-0.9.1.ebuild | 91 +++++++++++++++++++++++++++++++++++ |
27 |
2 files changed, 92 insertions(+) |
28 |
|
29 |
diff --git a/games-strategy/naev/Manifest b/games-strategy/naev/Manifest |
30 |
index ae47dea235a7..8e10e46cfb54 100644 |
31 |
--- a/games-strategy/naev/Manifest |
32 |
+++ b/games-strategy/naev/Manifest |
33 |
@@ -1 +1,2 @@ |
34 |
DIST naev-0.8.2-source.tar.gz 394232958 BLAKE2B 2e109636cb1d282bc8236c84ee40b9b96224baf70bf315677b6a02bf9c4c0059d34c5225c31b925a8c66c5995fd9ab8fc022816b66a7e1c174e017e3ebf5e956 SHA512 2ad120639efc13635370bb498d0a4100b2306779cf593e6aecffd331e0f4dec1b8af4729b2c4d484af1be9069d2ac7e47e17ebdc8ce65af878fcff9484f810b0 |
35 |
+DIST naev-0.9.1-source.tar.xz 394715556 BLAKE2B d90cbbc19f10a00060b3ca5ad3f62ef4291e352c7546c11141bd065ebc20efc0f676fb64af1d3dcf43957c62e59819445a5aa0babde579cdb936af136dd538a4 SHA512 d822eb2e22bcb564a0aec38c33205eedacf8399450725fc9709809e0c19a5c426b9a739f9c004691da8bf7b5393d1ed719a36a256a9e3e29d5a0917c9f72bd0f |
36 |
|
37 |
diff --git a/games-strategy/naev/naev-0.9.1.ebuild b/games-strategy/naev/naev-0.9.1.ebuild |
38 |
new file mode 100644 |
39 |
index 000000000000..e4bd429a52f1 |
40 |
--- /dev/null |
41 |
+++ b/games-strategy/naev/naev-0.9.1.ebuild |
42 |
@@ -0,0 +1,91 @@ |
43 |
+# Copyright 1999-2022 Gentoo Authors |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=8 |
47 |
+ |
48 |
+LUA_COMPAT=( lua5-1 luajit ) |
49 |
+PYTHON_COMPAT=( python3_{8..10} ) |
50 |
+inherit lua-single meson python-any-r1 virtualx xdg |
51 |
+ |
52 |
+DESCRIPTION="2D space trading and combat game, in a similar vein to Escape Velocity" |
53 |
+HOMEPAGE="https://naev.org/" |
54 |
+SRC_URI="https://github.com/naev/naev/releases/download/v${PV}/${P}-source.tar.xz" |
55 |
+ |
56 |
+LICENSE=" |
57 |
+ GPL-3+ BSD BSD-2 CC-BY-2.0 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-2.0 |
58 |
+ CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 MIT public-domain" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+IUSE="doc" |
62 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
63 |
+ |
64 |
+RDEPEND=" |
65 |
+ ${LUA_DEPS} |
66 |
+ dev-games/physfs |
67 |
+ dev-libs/libunibreak:= |
68 |
+ dev-libs/libxml2 |
69 |
+ media-libs/freetype:2 |
70 |
+ media-libs/libsdl2[X,joystick,opengl,video] |
71 |
+ media-libs/libvorbis |
72 |
+ media-libs/openal |
73 |
+ media-libs/sdl2-image[png,webp] |
74 |
+ sci-libs/cholmod |
75 |
+ sci-libs/cxsparse |
76 |
+ sci-libs/openblas |
77 |
+ sci-libs/suitesparse |
78 |
+ sci-mathematics/glpk:= |
79 |
+ virtual/libintl |
80 |
+ virtual/opengl" |
81 |
+DEPEND=" |
82 |
+ ${RDEPEND} |
83 |
+ test? ( |
84 |
+ dev-games/physfs[zip] |
85 |
+ media-libs/mesa[llvm] |
86 |
+ )" |
87 |
+BDEPEND=" |
88 |
+ $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]') |
89 |
+ sys-devel/gettext |
90 |
+ doc? ( |
91 |
+ app-doc/doxygen[dot] |
92 |
+ dev-lua/ldoc |
93 |
+ )" |
94 |
+ |
95 |
+python_check_deps() { |
96 |
+ has_version -b "dev-python/pyyaml[${PYTHON_USEDEP}]" |
97 |
+} |
98 |
+ |
99 |
+pkg_setup() { |
100 |
+ lua-single_pkg_setup |
101 |
+ python-any-r1_pkg_setup |
102 |
+} |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ default |
106 |
+ |
107 |
+ sed -i "s/'lua51'/'lua'/" meson.build || die |
108 |
+} |
109 |
+ |
110 |
+src_configure() { |
111 |
+ local emesonargs=( |
112 |
+ $(meson_feature doc docs_c) |
113 |
+ $(meson_feature doc docs_lua) |
114 |
+ $(meson_feature lua_single_target_luajit luajit) |
115 |
+ ) |
116 |
+ |
117 |
+ meson_src_configure |
118 |
+} |
119 |
+ |
120 |
+src_test() { |
121 |
+ virtx meson_src_test |
122 |
+} |
123 |
+ |
124 |
+src_install() { |
125 |
+ local DOCS=( CHANGELOG Readme.md ) |
126 |
+ meson_src_install |
127 |
+ |
128 |
+ if use doc; then |
129 |
+ mv "${ED}"/usr/{doc/naev/{c,lua},share/doc/${PF}} || die |
130 |
+ rm -r "${ED}"/usr/doc || die |
131 |
+ fi |
132 |
+ rm -r "${ED}"/usr/share/doc/naev || die |
133 |
+} |