1 |
commit: 227526cc91ac1b67df908b68f822c5a8967a1a5f |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 23:04:03 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 23:04:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=227526cc |
7 |
|
8 |
games-strategy/naev: migrate to lua-single.eclass |
9 |
|
10 |
LUA_COMPAT=( lua5-1 luajit ) as per the upstream autoconf script. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/752720 |
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
games-strategy/naev/naev-0.7.0-r100.ebuild | 75 ++++++++++++++++++++++++++++++ |
16 |
profiles/package.mask | 1 + |
17 |
2 files changed, 76 insertions(+) |
18 |
|
19 |
diff --git a/games-strategy/naev/naev-0.7.0-r100.ebuild b/games-strategy/naev/naev-0.7.0-r100.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..f43b5a4502f |
22 |
--- /dev/null |
23 |
+++ b/games-strategy/naev/naev-0.7.0-r100.ebuild |
24 |
@@ -0,0 +1,75 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+LUA_COMPAT=( lua5-1 luajit ) |
31 |
+ |
32 |
+inherit lua-single xdg-utils |
33 |
+ |
34 |
+DESCRIPTION="A 2D space trading and combat game, in a similar vein to Escape Velocity" |
35 |
+HOMEPAGE="https://naev.org/ https://github.com/naev/naev" |
36 |
+SRC_URI="https://github.com/naev/naev/releases/download/v${PV}/${P}.tar.bz2 |
37 |
+ https://github.com/naev/naev/releases/download/v${PV}/${P}-ndata.zip" |
38 |
+ |
39 |
+LICENSE="GPL-2 GPL-3 public-domain CC-BY-3.0 CC-BY-SA-3.0" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="debug +mixer +openal" |
43 |
+ |
44 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
45 |
+ |
46 |
+RDEPEND="${LUA_DEPS} |
47 |
+ media-libs/libsdl2[X,sound,video] |
48 |
+ dev-libs/libzip |
49 |
+ dev-libs/libxml2 |
50 |
+ >=media-libs/freetype-2:2 |
51 |
+ >=media-libs/libvorbis-1.2.1 |
52 |
+ >=media-libs/libpng-1.2:0= |
53 |
+ virtual/glu |
54 |
+ virtual/opengl |
55 |
+ mixer? ( media-libs/sdl2-mixer ) |
56 |
+ openal? ( media-libs/openal ) |
57 |
+" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+BDEPEND="virtual/pkgconfig" |
60 |
+ |
61 |
+# This is so that only the source tarball is unpacked - the data file |
62 |
+# is supposed to be installed *zipped*. This is why we do not need unzip |
63 |
+# in BDEPEND in spite of what repoman/pkgcheck might say. |
64 |
+src_unpack() { |
65 |
+ unpack ${P}.tar.bz2 |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ econf \ |
70 |
+ --enable-lua=$(usex lua_single_target_luajit luajit shared) \ |
71 |
+ $(use_enable debug) \ |
72 |
+ $(use_with openal) \ |
73 |
+ $(use_with mixer sdlmixer) |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ emake V=1 |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ emake \ |
82 |
+ DESTDIR="${D}" \ |
83 |
+ appicondir=/usr/share/pixmaps \ |
84 |
+ appdatadir=/usr/share/metainfo \ |
85 |
+ Graphicsdir=/usr/share/applications \ |
86 |
+ install |
87 |
+ insinto /usr/share/${PN} |
88 |
+ newins "${DISTDIR}/${P}-ndata.zip" ndata |
89 |
+ |
90 |
+ rm -f "${D}/usr/share/doc/${PF}/LICENSE" |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ xdg_icon_cache_update |
95 |
+} |
96 |
+ |
97 |
+pkg_postrm() { |
98 |
+ xdg_icon_cache_update |
99 |
+} |
100 |
|
101 |
diff --git a/profiles/package.mask b/profiles/package.mask |
102 |
index de708ef1857..720531192c0 100644 |
103 |
--- a/profiles/package.mask |
104 |
+++ b/profiles/package.mask |
105 |
@@ -579,6 +579,7 @@ dev-lua/luacrypto |
106 |
>=games-simulation/corsix-th-0.64-r100 |
107 |
>=games-sports/xmoto-0.6.1-r100 |
108 |
>=games-strategy/hedgewars-1.0.0-r100 |
109 |
+>=games-strategy/naev-0.7.0-r100 |
110 |
>=games-util/slade-3.1.12a-r100 |
111 |
>=mail-filter/imapfilter-2.6.16-r100 |
112 |
>=media-gfx/geeqie-1.5.1-r1 |