1 |
commit: 9129d0c03be21ff0fed2cf3156dbef95394e8ef3 |
2 |
Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com> |
3 |
AuthorDate: Sun Mar 25 15:10:57 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 26 19:52:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9129d0c0 |
7 |
|
8 |
games-rpg/eternal-lands-data: EAPI bump |
9 |
|
10 |
Removed games.eclass and bumped to EAPI=6. |
11 |
Should not present a problem, since its just flat |
12 |
data. |
13 |
|
14 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
15 |
Closes: https://github.com/gentoo/gentoo/pull/7614 |
16 |
|
17 |
.../eternal-lands-data-1.9.3-r1.ebuild | 28 ++++++++++------------ |
18 |
1 file changed, 12 insertions(+), 16 deletions(-) |
19 |
|
20 |
diff --git a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild |
21 |
index 5a4e5d454bc..cdcd0ac6284 100644 |
22 |
--- a/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild |
23 |
+++ b/games-rpg/eternal-lands-data/eternal-lands-data-1.9.3-r1.ebuild |
24 |
@@ -1,9 +1,7 @@ |
25 |
-# Copyright 1999-2013 Gentoo Foundation |
26 |
+# Copyright 1999-2018 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
-EAPI=2 |
30 |
- |
31 |
-inherit games |
32 |
+EAPI=6 |
33 |
|
34 |
MUSIC_DATE="20060803" |
35 |
|
36 |
@@ -24,10 +22,10 @@ SRC_URI="http://www.eternal-lands.com/el_linux_193.zip |
37 |
LICENSE="eternal_lands" |
38 |
SLOT="0" |
39 |
KEYWORDS="~amd64 ~x86 ~x86-fbsd" |
40 |
-IUSE="music sound bloodsuckermaps" |
41 |
+IUSE="bloodsuckermaps music sound" |
42 |
|
43 |
DEPEND="app-arch/unzip |
44 |
- !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )" |
45 |
+ !bloodsuckermaps? ( !games-rpg/eternal-lands-bloodsucker )" |
46 |
|
47 |
PDEPEND="bloodsuckermaps? ( >=games-rpg/eternal-lands-bloodsucker-3.0_p20110618 )" |
48 |
|
49 |
@@ -37,13 +35,14 @@ S="${WORKDIR}/el_linux" |
50 |
src_prepare() { |
51 |
# Move our music files to the correct directory |
52 |
if use music ; then |
53 |
- mkdir music |
54 |
+ mkdir music || die |
55 |
mv ../*.ogg ../*.pll music || die |
56 |
fi |
57 |
|
58 |
# Fix assertion error with >=libxml2-2.9 (see bug #449352) |
59 |
xmllint --noent actor_defs/actor_defs.xml > actor_defs.xml || die "Failed parsing actor_defs.xml" |
60 |
- mv actor_defs.xml actor_defs |
61 |
+ mv actor_defs.xml actor_defs || die |
62 |
+ eapply_user |
63 |
} |
64 |
|
65 |
src_install() { |
66 |
@@ -72,32 +71,29 @@ src_install() { |
67 |
fi |
68 |
|
69 |
insopts -m 0660 |
70 |
- insinto "${GAMES_DATADIR}/${MY_PN}" |
71 |
+ insinto /usr/share/games/eternal-lands |
72 |
doins -r 2dobjects 3dobjects actor_defs animations maps meshes \ |
73 |
particles skeletons shaders textures languages shaders skybox \ |
74 |
*.lst 3dobjects.txt *.xml \ |
75 |
|| die "doins failed" |
76 |
|
77 |
if use music ; then |
78 |
- doins -r music || die "doins music failed" |
79 |
+ doins -r music |
80 |
fi |
81 |
|
82 |
# Removed sound from above - need to handle sound support |
83 |
|
84 |
cd "${WORKDIR}" |
85 |
if use sound ; then |
86 |
- doins -r sound || die "doins sound failed" |
87 |
+ doins -r sound |
88 |
fi |
89 |
- |
90 |
- prepgamesdirs |
91 |
} |
92 |
|
93 |
pkg_postinst() { |
94 |
- games_pkg_postinst |
95 |
# Ensure that the files are writable by the game group for auto |
96 |
# updating. |
97 |
- chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${MY_PN}" |
98 |
+ chmod -R g+rw "${EROOT}"usr/share/games/eternal-lands || die |
99 |
|
100 |
# Make sure new files stay in games group |
101 |
- find "${ROOT}/${GAMES_DATADIR}/${MY_PN}" -type d -exec chmod g+sx {} \; |
102 |
+ find "${EROOT}"usr/share/games/eternal-lands -type d -exec chmod g+sx {} \; || die |
103 |
} |