1 |
commit: 82320d66c19061edb844897ea86f23aa3cd741fd |
2 |
Author: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> |
3 |
AuthorDate: Sun Jun 22 21:44:33 2014 +0000 |
4 |
Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name> |
5 |
CommitDate: Sun Jun 22 21:44:33 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gamerlay.git;a=commit;h=82320d66 |
7 |
|
8 |
[games-strategy/worms-reloaded] Fixed wrapper |
9 |
|
10 |
Signed-off-by: Vadim A. Misbakh-Soloviov <mva <AT> mva.name> |
11 |
|
12 |
--- |
13 |
.../worms-reloaded/worms-reloaded-20131016.ebuild | 72 ++++++++++++++++++++++ |
14 |
1 file changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/games-strategy/worms-reloaded/worms-reloaded-20131016.ebuild b/games-strategy/worms-reloaded/worms-reloaded-20131016.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..d5be77d |
19 |
--- /dev/null |
20 |
+++ b/games-strategy/worms-reloaded/worms-reloaded-20131016.ebuild |
21 |
@@ -0,0 +1,72 @@ |
22 |
+# Copyright 1999-2012 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Header: $ |
25 |
+ |
26 |
+EAPI="5" |
27 |
+ |
28 |
+inherit eutils games unpacker |
29 |
+ |
30 |
+TS="1381858841" |
31 |
+ |
32 |
+DESCRIPTION="Legendary Worms™ Game. SinglePlayer-only." |
33 |
+HOMEPAGE="http://www.team17.com/games/worms/worms-reloaded/" |
34 |
+SRC_URI="WormsReloaded_Linux_${TS}.sh" |
35 |
+ |
36 |
+RESTRICT="fetch strip" |
37 |
+LICENSE="as-is" |
38 |
+ |
39 |
+SLOT="0" |
40 |
+KEYWORDS="amd64 x86" |
41 |
+IUSE="" |
42 |
+ |
43 |
+DEPEND="" |
44 |
+RDEPEND=" |
45 |
+ amd64? ( |
46 |
+ app-emulation/emul-linux-x86-baselibs |
47 |
+ app-emulation/emul-linux-x86-sdl |
48 |
+ ) |
49 |
+ x86? ( |
50 |
+ media-libs/openal |
51 |
+ sys-libs/zlib |
52 |
+ ) |
53 |
+" |
54 |
+ |
55 |
+S="${WORKDIR}/data" |
56 |
+ |
57 |
+GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" |
58 |
+ |
59 |
+pkg_nofetch() { |
60 |
+ einfo "" |
61 |
+ einfo "Please buy and download \"${SRC_URI}\" from" |
62 |
+ einfo "HumbleIndieBundle or ${HOMEPAGE}" |
63 |
+ einfo "and move/link it to \"${DISTDIR}\"" |
64 |
+ einfo "" |
65 |
+} |
66 |
+ |
67 |
+src_unpack() { |
68 |
+ unpack_zip "${A}"; |
69 |
+} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ rm -r "${S}/x86/lib/libopenal.so.1" |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ # Install documentation |
77 |
+ dodoc noarch/README.linux |
78 |
+ rm noarch/README.linux |
79 |
+ |
80 |
+ # Install data |
81 |
+ insinto "${GAMEDIR}" |
82 |
+ doins -r noarch/* x86/lib |
83 |
+ exeinto "${GAMEDIR}" |
84 |
+ doexe x86/WormsReloaded.bin.x86 |
85 |
+ |
86 |
+ # Install icon and desktop file |
87 |
+ newicon "x86/WormsReloaded.png" "${PN}.png" |
88 |
+ make_desktop_entry "${PN}" "Worms Reloaded" "${PN}" |
89 |
+ games_make_wrapper "${PN}" "./WormsReloaded.bin.x86" "${GAMEDIR}" "${GAMEDIR}/lib" |
90 |
+ |
91 |
+ # Setting permissions. |
92 |
+ prepgamesdirs |
93 |
+} |