1 |
commit: bc6cad7d989941b7fce5e1ad7f0dae2bdc2ff077 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 20:54:12 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 22:50:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc6cad7d |
7 |
|
8 |
games-rpg/kqlives: migrate to lua-single.eclass |
9 |
|
10 |
Upstream autoconf scripts only looks for Lua 5.0 and 5.1 (in that order) |
11 |
so only add lua5-1 to LUA_COMPAT. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=752699 |
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
games-rpg/kqlives/kqlives-0.99-r100.ebuild | 58 ++++++++++++++++++++++++++++++ |
17 |
profiles/package.mask | 1 + |
18 |
2 files changed, 59 insertions(+) |
19 |
|
20 |
diff --git a/games-rpg/kqlives/kqlives-0.99-r100.ebuild b/games-rpg/kqlives/kqlives-0.99-r100.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..30186ea2a59 |
23 |
--- /dev/null |
24 |
+++ b/games-rpg/kqlives/kqlives-0.99-r100.ebuild |
25 |
@@ -0,0 +1,58 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+LUA_COMPAT=( lua5-1 ) |
32 |
+ |
33 |
+inherit autotools desktop lua-single |
34 |
+ |
35 |
+MY_P=${P/lives} |
36 |
+ |
37 |
+DESCRIPTION="A console-style role playing game" |
38 |
+HOMEPAGE="http://kqlives.sourceforge.net/" |
39 |
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="GPL-2" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="cheats nls" |
45 |
+ |
46 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ ${LUA_DEPS} |
50 |
+ >=gnome-base/libglade-2.4 |
51 |
+ media-libs/allegro:0 |
52 |
+ >=media-libs/dumb-2.0.3[allegro] |
53 |
+ >=x11-libs/gtk+-2.8:2 |
54 |
+ nls? ( virtual/libintl )" |
55 |
+DEPEND="${RDEPEND} |
56 |
+ virtual/pkgconfig |
57 |
+ nls? ( sys-devel/gettext )" |
58 |
+ |
59 |
+S=${WORKDIR}/${MY_P} |
60 |
+ |
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}/${P}_autoconf.patch" # Fix #597790 |
63 |
+ "${FILESDIR}/${P}_dumb2.patch" # >=media-libs/dumb-2.0.3 support |
64 |
+ "${FILESDIR}/${P}_gcc10.patch" # Fix #661422 |
65 |
+) |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ mv debian/{kq,${PN}}.6 || die |
70 |
+ eautoreconf |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ econf \ |
75 |
+ $(use_enable cheats) \ |
76 |
+ $(use_enable nls) |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ default |
81 |
+ doicon "${FILESDIR}"/${PN}.xpm |
82 |
+ make_desktop_entry ${PN} KqLives ${PN} |
83 |
+} |
84 |
|
85 |
diff --git a/profiles/package.mask b/profiles/package.mask |
86 |
index 2b2cf8f636a..5fdbbc40e69 100644 |
87 |
--- a/profiles/package.mask |
88 |
+++ b/profiles/package.mask |
89 |
@@ -566,6 +566,7 @@ dev-lua/luacrypto |
90 |
>=games-puzzle/fish-fillets-1.0.1-r100 |
91 |
>=games-roguelike/crossfire-client-1.71.0-r100 |
92 |
>=games-roguelike/stone-soup-0.25.1-r100 |
93 |
+>=games-rpg/kqlives-0.99-r100 |
94 |
>=mail-filter/imapfilter-2.6.16-r100 |
95 |
>=media-gfx/geeqie-1.5.1-r1 |
96 |
>=media-sound/aqualung-1.1-r100 |