1 |
commit: 059a10905238161e821fa2501a994908db6eefd5 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 19:01:56 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 20:12:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=059a1090 |
7 |
|
8 |
games-roguelike/crossfire-client: migrate to lua-single.eclass |
9 |
|
10 |
Upstream build scripts look explicitly for lua5.1 so let's stick with that. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/752693 |
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
.../crossfire-client-1.71.0-r100.ebuild | 82 ++++++++++++++++++++++ |
16 |
profiles/package.mask | 1 + |
17 |
2 files changed, 83 insertions(+) |
18 |
|
19 |
diff --git a/games-roguelike/crossfire-client/crossfire-client-1.71.0-r100.ebuild b/games-roguelike/crossfire-client/crossfire-client-1.71.0-r100.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..4f37b491493 |
22 |
--- /dev/null |
23 |
+++ b/games-roguelike/crossfire-client/crossfire-client-1.71.0-r100.ebuild |
24 |
@@ -0,0 +1,82 @@ |
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 ) |
31 |
+ |
32 |
+inherit autotools desktop lua-single toolchain-funcs xdg-utils |
33 |
+ |
34 |
+DESCRIPTION="Client for the nethack-style but more in the line of UO" |
35 |
+HOMEPAGE="http://crossfire.real-time.com/" |
36 |
+SRC_URI="mirror://sourceforge/crossfire/${P}.tar.bz2" |
37 |
+ |
38 |
+LICENSE="GPL-2" |
39 |
+SLOT="0" |
40 |
+KEYWORDS="~amd64 ~x86" |
41 |
+IUSE="lua opengl sdl sound" |
42 |
+ |
43 |
+REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ lua? ( ${LUA_DEPS} ) |
47 |
+ media-libs/libpng:0 |
48 |
+ net-misc/curl |
49 |
+ opengl? ( virtual/opengl |
50 |
+ media-libs/freeglut ) |
51 |
+ sdl? ( media-libs/libsdl[video] |
52 |
+ media-libs/sdl-image[png] ) |
53 |
+ sound? ( media-libs/sdl-mixer[vorbis] ) |
54 |
+ sys-libs/zlib |
55 |
+ x11-libs/gtk+:2" |
56 |
+DEPEND="${RDEPEND}" |
57 |
+BDEPEND="virtual/pkgconfig" |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ sed -ri -e '/^.TH/s:$: 6:' $(find . -name "*man") || die |
63 |
+ # Since we have to rewrite this anyway, dispense with the wrapper |
64 |
+ # and point configure directly at the implementation of choice. |
65 |
+ sed -i -e "s/lua-5.1/${ELUA}/" configure.ac || die |
66 |
+ eautoreconf |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ # bugs in configure script so we cant use $(use_enable ...) |
71 |
+ local myconf |
72 |
+ |
73 |
+ use lua && myconf="${myconf} --enable-lua" |
74 |
+ use sdl || myconf="${myconf} --disable-sdl" |
75 |
+ use opengl || myconf="${myconf} --disable-opengl" |
76 |
+ use sound || myconf="${myconf} --disable-sound" |
77 |
+ |
78 |
+ econf ${myconf} |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ # bug 139785 |
83 |
+ if use sound ; then |
84 |
+ emake -C sound-src AR="$(tc-getAR)" |
85 |
+ fi |
86 |
+ emake AR="$(tc-getAR)" |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ local s |
91 |
+ |
92 |
+ default |
93 |
+ domenu gtk-v2/crossfire-client.desktop |
94 |
+ for s in 16 32 48 |
95 |
+ do |
96 |
+ newicon -s ${s} pixmaps/${s}x${s}.png ${PN}.png |
97 |
+ done |
98 |
+} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ xdg_icon_cache_update |
102 |
+} |
103 |
+ |
104 |
+pkg_postrm() { |
105 |
+ xdg_icon_cache_update |
106 |
+} |
107 |
|
108 |
diff --git a/profiles/package.mask b/profiles/package.mask |
109 |
index 4117f527e87..f3287cd4f24 100644 |
110 |
--- a/profiles/package.mask |
111 |
+++ b/profiles/package.mask |
112 |
@@ -563,6 +563,7 @@ dev-lua/luacrypto |
113 |
>=games-engines/love-11.3-r100:0 |
114 |
>=games-engines/solarus-1.3.1-r100 |
115 |
>=games-puzzle/fish-fillets-1.0.1-r100 |
116 |
+>=games-roguelike/crossfire-client-1.71.0-r100 |
117 |
>=games-roguelike/stone-soup-0.25.1-r100 |
118 |
>=mail-filter/imapfilter-2.6.16-r100 |
119 |
>=media-gfx/geeqie-1.5.1-r1 |