1 |
commit: a27d7123ca199c7bc22b73d2874c0bb60c35d799 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 25 22:48:45 2017 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 25 23:05:05 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a27d7123 |
7 |
|
8 |
games-action/lugaru: 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 |
.../lugaru/files/lugaru-20151204-dir.patch | 4 +-- |
17 |
games-action/lugaru/files/lugaru-9999-dir.patch | 4 +-- |
18 |
...ugaru-9999.ebuild => lugaru-20151204-r1.ebuild} | 36 ++++++++++------------ |
19 |
games-action/lugaru/lugaru-9999.ebuild | 33 +++++++++++--------- |
20 |
4 files changed, 39 insertions(+), 38 deletions(-) |
21 |
|
22 |
diff --git a/games-action/lugaru/files/lugaru-20151204-dir.patch b/games-action/lugaru/files/lugaru-20151204-dir.patch |
23 |
index 8595084..da9310d 100644 |
24 |
--- a/games-action/lugaru/files/lugaru-20151204-dir.patch |
25 |
+++ b/games-action/lugaru/files/lugaru-20151204-dir.patch |
26 |
@@ -1,5 +1,5 @@ |
27 |
---- Source/OpenGL_Windows.cpp.orig 2015-01-14 23:57:19.799186785 -0500 |
28 |
-+++ Source/OpenGL_Windows.cpp 2015-01-14 23:57:36.022643953 -0500 |
29 |
+--- a/Source/OpenGL_Windows.cpp 2015-01-14 23:57:19.799186785 -0500 |
30 |
++++ b/Source/OpenGL_Windows.cpp 2015-01-14 23:57:36.022643953 -0500 |
31 |
@@ -1330,7 +1330,7 @@ |
32 |
|
33 |
// !!! FIXME: we could use a Win32 API for this. --ryan. |
34 |
|
35 |
diff --git a/games-action/lugaru/files/lugaru-9999-dir.patch b/games-action/lugaru/files/lugaru-9999-dir.patch |
36 |
index 8595084..da9310d 100644 |
37 |
--- a/games-action/lugaru/files/lugaru-9999-dir.patch |
38 |
+++ b/games-action/lugaru/files/lugaru-9999-dir.patch |
39 |
@@ -1,5 +1,5 @@ |
40 |
---- Source/OpenGL_Windows.cpp.orig 2015-01-14 23:57:19.799186785 -0500 |
41 |
-+++ Source/OpenGL_Windows.cpp 2015-01-14 23:57:36.022643953 -0500 |
42 |
+--- a/Source/OpenGL_Windows.cpp 2015-01-14 23:57:19.799186785 -0500 |
43 |
++++ b/Source/OpenGL_Windows.cpp 2015-01-14 23:57:36.022643953 -0500 |
44 |
@@ -1330,7 +1330,7 @@ |
45 |
|
46 |
// !!! FIXME: we could use a Win32 API for this. --ryan. |
47 |
|
48 |
diff --git a/games-action/lugaru/lugaru-9999.ebuild b/games-action/lugaru/lugaru-20151204-r1.ebuild |
49 |
similarity index 66% |
50 |
copy from games-action/lugaru/lugaru-9999.ebuild |
51 |
copy to games-action/lugaru/lugaru-20151204-r1.ebuild |
52 |
index 2c42553..576d94b 100644 |
53 |
--- a/games-action/lugaru/lugaru-9999.ebuild |
54 |
+++ b/games-action/lugaru/lugaru-20151204-r1.ebuild |
55 |
@@ -1,40 +1,39 @@ |
56 |
-# Copyright 1999-2015 Gentoo Foundation |
57 |
+# Copyright 1999-2017 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
# $Id$ |
60 |
|
61 |
-EAPI=5 |
62 |
-inherit eutils cmake-utils mercurial games |
63 |
+EAPI=6 |
64 |
+inherit eutils cmake-utils |
65 |
|
66 |
-EHG_REPO_URI="https://bitbucket.org/osslugaru/lugaru/" |
67 |
DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters" |
68 |
HOMEPAGE="https://bitbucket.org/osslugaru/lugaru/wiki/Home" |
69 |
-SRC_URI="" |
70 |
+SRC_URI="mirror://gentoo/${P}.tar.bz2" |
71 |
|
72 |
LICENSE="GPL-2+ free-noncomm CC-BY-SA-3.0" |
73 |
SLOT="0" |
74 |
-KEYWORDS="" |
75 |
+KEYWORDS="~amd64 ~x86" |
76 |
IUSE="" |
77 |
|
78 |
RDEPEND=" |
79 |
- virtual/glu |
80 |
- virtual/opengl |
81 |
+ media-libs/libpng:0 |
82 |
media-libs/libsdl[opengl,video] |
83 |
- media-libs/openal |
84 |
media-libs/libvorbis |
85 |
+ media-libs/openal |
86 |
+ sys-libs/zlib |
87 |
+ virtual/glu |
88 |
virtual/jpeg:0 |
89 |
- media-libs/libpng:0 |
90 |
- sys-libs/zlib" |
91 |
+ virtual/opengl" |
92 |
DEPEND="${RDEPEND} |
93 |
virtual/pkgconfig" |
94 |
|
95 |
-src_unpack() { |
96 |
- mercurial_src_unpack |
97 |
-} |
98 |
+PATCHES=( |
99 |
+ "${FILESDIR}/${P}-dir.patch" |
100 |
+) |
101 |
|
102 |
src_prepare() { |
103 |
- epatch "${FILESDIR}/${P}-dir.patch" |
104 |
+ default |
105 |
sed -i \ |
106 |
- -e "s:@GENTOO_DIR@:${GAMES_DATADIR}/${PN}:" \ |
107 |
+ -e "s:@GENTOO_DIR@:/usr/share/${PN}:" \ |
108 |
Source/OpenGL_Windows.cpp || die |
109 |
} |
110 |
|
111 |
@@ -51,10 +50,9 @@ src_compile() { |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
- dogamesbin "${WORKDIR}/${P}_build/lugaru" |
116 |
- insinto "${GAMES_DATADIR}/${PN}" |
117 |
+ dobin "${WORKDIR}/${P}_build/lugaru" |
118 |
+ insinto /usr/share/${PN} |
119 |
doins -r Data/ |
120 |
newicon Source/win-res/Lugaru.png ${PN}.png |
121 |
make_desktop_entry ${PN} Lugaru ${PN} |
122 |
- prepgamesdirs |
123 |
} |
124 |
|
125 |
diff --git a/games-action/lugaru/lugaru-9999.ebuild b/games-action/lugaru/lugaru-9999.ebuild |
126 |
index 2c42553..7aa42ee 100644 |
127 |
--- a/games-action/lugaru/lugaru-9999.ebuild |
128 |
+++ b/games-action/lugaru/lugaru-9999.ebuild |
129 |
@@ -1,9 +1,9 @@ |
130 |
-# Copyright 1999-2015 Gentoo Foundation |
131 |
+# Copyright 1999-2017 Gentoo Foundation |
132 |
# Distributed under the terms of the GNU General Public License v2 |
133 |
# $Id$ |
134 |
|
135 |
-EAPI=5 |
136 |
-inherit eutils cmake-utils mercurial games |
137 |
+EAPI=6 |
138 |
+inherit eutils cmake-utils mercurial |
139 |
|
140 |
EHG_REPO_URI="https://bitbucket.org/osslugaru/lugaru/" |
141 |
DESCRIPTION="3D arcade with unique fighting system and anthropomorphic characters" |
142 |
@@ -16,14 +16,14 @@ KEYWORDS="" |
143 |
IUSE="" |
144 |
|
145 |
RDEPEND=" |
146 |
- virtual/glu |
147 |
- virtual/opengl |
148 |
media-libs/libsdl[opengl,video] |
149 |
- media-libs/openal |
150 |
+ media-libs/libpng:0 |
151 |
media-libs/libvorbis |
152 |
+ media-libs/openal |
153 |
+ sys-libs/zlib |
154 |
+ virtual/glu |
155 |
virtual/jpeg:0 |
156 |
- media-libs/libpng:0 |
157 |
- sys-libs/zlib" |
158 |
+ virtual/opengl" |
159 |
DEPEND="${RDEPEND} |
160 |
virtual/pkgconfig" |
161 |
|
162 |
@@ -31,11 +31,15 @@ src_unpack() { |
163 |
mercurial_src_unpack |
164 |
} |
165 |
|
166 |
+PATCHES=( |
167 |
+ "${FILESDIR}/${P}-dir.patch" |
168 |
+) |
169 |
+ |
170 |
src_prepare() { |
171 |
- epatch "${FILESDIR}/${P}-dir.patch" |
172 |
- sed -i \ |
173 |
- -e "s:@GENTOO_DIR@:${GAMES_DATADIR}/${PN}:" \ |
174 |
- Source/OpenGL_Windows.cpp || die |
175 |
+ default |
176 |
+ sed -i \ |
177 |
+ -e "s:@GENTOO_DIR@:/usr/share/${PN}:" \ |
178 |
+ Source/OpenGL_Windows.cpp || die |
179 |
} |
180 |
|
181 |
src_configure() { |
182 |
@@ -51,10 +55,9 @@ src_compile() { |
183 |
} |
184 |
|
185 |
src_install() { |
186 |
- dogamesbin "${WORKDIR}/${P}_build/lugaru" |
187 |
- insinto "${GAMES_DATADIR}/${PN}" |
188 |
+ dobin "${WORKDIR}/${P}_build/lugaru" |
189 |
+ insinto /usr/share/${PN} |
190 |
doins -r Data/ |
191 |
newicon Source/win-res/Lugaru.png ${PN}.png |
192 |
make_desktop_entry ${PN} Lugaru ${PN} |
193 |
- prepgamesdirs |
194 |
} |