1 |
commit: 03549c3500c11e13773cfb5aa2532ec3b9fd99c0 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 28 22:53:34 2020 +0000 |
4 |
Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> |
5 |
CommitDate: Fri Feb 28 22:53:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=03549c35 |
7 |
|
8 |
games-arcade/capsized: update package |
9 |
|
10 |
Migrate from deprecated eclass. |
11 |
|
12 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
13 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
14 |
|
15 |
...-06102013.ebuild => capsized-2013.10.06.ebuild} | 54 +++++++++------------- |
16 |
1 file changed, 22 insertions(+), 32 deletions(-) |
17 |
|
18 |
diff --git a/games-arcade/capsized/capsized-06102013.ebuild b/games-arcade/capsized/capsized-2013.10.06.ebuild |
19 |
similarity index 55% |
20 |
rename from games-arcade/capsized/capsized-06102013.ebuild |
21 |
rename to games-arcade/capsized/capsized-2013.10.06.ebuild |
22 |
index c461bc6..3c68caf 100644 |
23 |
--- a/games-arcade/capsized/capsized-06102013.ebuild |
24 |
+++ b/games-arcade/capsized/capsized-2013.10.06.ebuild |
25 |
@@ -1,32 +1,32 @@ |
26 |
-# Copyright 1999-2012 Gentoo Foundation |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: $ |
30 |
|
31 |
-EAPI="5" |
32 |
+EAPI=7 |
33 |
|
34 |
-inherit unpacker games multilib |
35 |
+inherit desktop eutils multilib-minimal unpacker |
36 |
+ |
37 |
+MY_PN=Capsized |
38 |
|
39 |
DESCRIPTION="A fast paced 2d platformer, focused on intense action and exploration." |
40 |
HOMEPAGE="http://www.capsizedgame.com/" |
41 |
-SRC_URI="${PN}-${PV}-bin" |
42 |
+SRC_URI="${PN}-$(ver_cut 3)$(ver_cut 2)$(ver_cut 1)-bin" |
43 |
|
44 |
-LICENSE="as-is" |
45 |
+LICENSE="all-rights-reserved" |
46 |
SLOT="0" |
47 |
KEYWORDS="-* ~amd64 ~x86" |
48 |
-IUSE="linguas_de linguas_es linguas_fr linguas_it" |
49 |
+IUSE="l10n_de l10n_es l10n_fr l10n_it" |
50 |
|
51 |
RESTRICT="fetch" |
52 |
|
53 |
DEPEND="app-arch/zip" |
54 |
RDEPEND=" |
55 |
- ${DEPEND} |
56 |
- media-libs/libtheora |
57 |
- media-libs/libogg |
58 |
- media-libs/libvorbis |
59 |
- dev-lang/mono |
60 |
- media-libs/openal |
61 |
- media-libs/libsdl2 |
62 |
- media-libs/sdl2-mixer |
63 |
+ media-libs/libtheora[${MULTILIB_USEDEP}] |
64 |
+ media-libs/libogg[${MULTILIB_USEDEP}] |
65 |
+ media-libs/libvorbis[${MULTILIB_USEDEP}] |
66 |
+ dev-lang/mono[${MULTILIB_USEDEP}] |
67 |
+ media-libs/openal[${MULTILIB_USEDEP}] |
68 |
+ media-libs/libsdl2[${MULTILIB_USEDEP}] |
69 |
+ media-libs/sdl2-mixer[${MULTILIB_USEDEP}] |
70 |
" |
71 |
# dev-dotnet/monogame # someday |
72 |
# dev-dotnet/monogame-theoraplay # someday |
73 |
@@ -35,9 +35,6 @@ RDEPEND=" |
74 |
DOCS=( "Linux.README" ) |
75 |
|
76 |
S="${WORKDIR}/data" |
77 |
-GAMEDIR="${GAMES_PREFIX_OPT}/${PN}" |
78 |
- |
79 |
-MY_PN=Capsized |
80 |
|
81 |
pkg_nofetch() { |
82 |
einfo "Please download ${A}" |
83 |
@@ -47,11 +44,12 @@ pkg_nofetch() { |
84 |
} |
85 |
|
86 |
src_unpack() { |
87 |
- unpack_zip "${A}" |
88 |
+ unpack_zip ${A} |
89 |
} |
90 |
|
91 |
src_install() { |
92 |
- insinto "${GAMEDIR}" |
93 |
+ local dir="/opt/${PN}" |
94 |
+ insinto "${dir}" |
95 |
doins -r Content |
96 |
doins "${MY_PN}.bmp" \ |
97 |
NePlusUltra.exe \ |
98 |
@@ -65,22 +63,14 @@ src_install() { |
99 |
'TheoraPlay#'.dll.config |
100 |
|
101 |
for lang in fr it es de; do |
102 |
- use "linguas_${lang}" && doins -r "${lang}" |
103 |
+ use "l10n_${lang}" && doins -r "${lang}" |
104 |
done |
105 |
|
106 |
- # Installing bundled sdl-mixer-2, since it is still not released as |
107 |
- # tarball [hg only]. |
108 |
- # btw, can be inserted in ${GAMEDIR} without subdir. |
109 |
- # |
110 |
- # Also installing bundled theoraplay, since in is no such package in |
111 |
- # portage. |
112 |
- insinto "${GAMEDIR}/$(get_libdir)" |
113 |
-# doins "$(get_libdir)/libSDL2_mixer-2.0.so.0" |
114 |
+ # Installing bundled theoraplay, since in is no such package in portage. |
115 |
+ insinto "${dir}/$(get_libdir)" |
116 |
doins "$(get_libdir)/libtheoraplay.so" |
117 |
|
118 |
- games_make_wrapper "${PN}" "mono ./NePlusUltra.exe" "${GAMEDIR}" "${GAMEDIR}/$(get_libdir)" |
119 |
+ make_wrapper "${PN}" "mono ./NePlusUltra.exe" "${dir}" "${dir}/$(get_libdir)" |
120 |
doicon "${FILESDIR}/${PN}.png" |
121 |
make_desktop_entry "${PN}" "${MY_PN}" "${PN}" |
122 |
- |
123 |
- prepgamesdirs |
124 |
} |