1 |
commit: f178e7de596cb82b630e8bfe51039223d69302ea |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 6 23:57:11 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 7 00:51:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f178e7de |
7 |
|
8 |
games-fps/legends: remove deprecated games eclass |
9 |
|
10 |
Also update to EAPI 6 |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/574082 |
13 |
|
14 |
Package-Manager: Portage-2.3.2, Repoman-2.3.1 |
15 |
|
16 |
games-fps/legends/legends-0.4.1.43-r2.ebuild | 70 ++++++++++++++++++++++++++++ |
17 |
1 file changed, 70 insertions(+) |
18 |
|
19 |
diff --git a/games-fps/legends/legends-0.4.1.43-r2.ebuild b/games-fps/legends/legends-0.4.1.43-r2.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000..71e8929 |
22 |
--- /dev/null |
23 |
+++ b/games-fps/legends/legends-0.4.1.43-r2.ebuild |
24 |
@@ -0,0 +1,70 @@ |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+# $Id$ |
28 |
+ |
29 |
+EAPI=6 |
30 |
+inherit eutils unpacker |
31 |
+ |
32 |
+MY_P=${PN}_linux-${PV} |
33 |
+dir=/opt/${PN} |
34 |
+ |
35 |
+DESCRIPTION="Fast-paced first-person-shooter online multiplayer game, similar to Tribes" |
36 |
+HOMEPAGE="http://legendsthegame.net/" |
37 |
+SRC_URI="http://legendsthegame.net/files/${MY_P}.run |
38 |
+ mirror://gentoo/${PN}.png" |
39 |
+ |
40 |
+LICENSE="Legends LGPL-2.1+" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="-* ~amd64 ~x86" |
43 |
+IUSE="+dedicated" |
44 |
+RESTRICT="strip" |
45 |
+ |
46 |
+QA_TEXTRELS="${dir:1}/libSDL-1.3.so.0" |
47 |
+QA_FLAGS_IGNORED="${dir:1}/libSDL-1.3.so.0 ${dir:1}/LinLegends ${dir:1}/lindedicated" |
48 |
+ |
49 |
+DEPEND="" |
50 |
+RDEPEND="sys-libs/glibc |
51 |
+ amd64? ( sys-libs/glibc[multilib] ) |
52 |
+ media-fonts/font-adobe-75dpi |
53 |
+ media-libs/libsdl[video,sound,opengl,abi_x86_32(-)] |
54 |
+ x11-libs/libX11[abi_x86_32(-)] |
55 |
+ x11-libs/libXext[abi_x86_32(-)] |
56 |
+ media-libs/libogg[abi_x86_32(-)] |
57 |
+ media-libs/libvorbis[abi_x86_32(-)] |
58 |
+ media-libs/openal[abi_x86_32(-)]" |
59 |
+ |
60 |
+S=${WORKDIR} |
61 |
+ |
62 |
+src_unpack() { |
63 |
+ unpack_makeself ${MY_P}.run |
64 |
+ cd "${S}" |
65 |
+ |
66 |
+ # keep libSDL-1.3.so because legends requires it as of 0.4.0, and |
67 |
+ # 1.2.6 is highest in portage |
68 |
+ # rm libSDL-*.so* |
69 |
+ rm runlegends libSDL-1.2.so.0 libopenal.so libogg.so.0 libvorbis.so.0 *.DLL || die |
70 |
+} |
71 |
+ |
72 |
+src_install() { |
73 |
+ insinto "${dir}" |
74 |
+ doins -r * || die "doins * failed" |
75 |
+ |
76 |
+ rm "${D}/${dir}/"/{lindedicated,LinLegends,*.so.0} |
77 |
+ exeinto "${dir}" |
78 |
+ doexe lindedicated LinLegends *.so.0 || die "doexe failed" |
79 |
+ |
80 |
+ make_wrapper ${PN} "./LinLegends" "${dir}" "${dir}" |
81 |
+ if use dedicated ; then |
82 |
+ make_wrapper ${PN}-ded "./lindedicated" "${dir}" "${dir}" |
83 |
+ fi |
84 |
+ |
85 |
+ doicon "${DISTDIR}"/${PN}.png || die "doicon failed" |
86 |
+ make_desktop_entry legends "Legends" |
87 |
+} |
88 |
+ |
89 |
+pkg_postinst() { |
90 |
+ ewarn "Version ${PV} of ${PN} may give problems if there are" |
91 |
+ ewarn "config-files from earlier versions. Removing the ~/.legends dir" |
92 |
+ ewarn "and restarting will solve this." |
93 |
+ echo |
94 |
+} |