1 |
commit: 113d000a4b43db6742196ff6983b0bb74e4b30f1 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 28 18:52:01 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 28 21:13:55 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=113d000a |
7 |
|
8 |
games-sports/gracer: 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.0 |
15 |
|
16 |
games-sports/gracer/files/0.1.5-gldefs.patch | 8 ++-- |
17 |
.../gracer/files/gracer-0.1.5-as-needed.patch | 4 +- |
18 |
games-sports/gracer/files/gracer-0.1.5-gcc41.patch | 4 +- |
19 |
.../gracer/files/gracer-0.1.5-giflib.patch | 2 +- |
20 |
.../gracer/files/gracer-0.1.5-libpng14.patch | 4 +- |
21 |
games-sports/gracer/files/gracer-0.1.5-png15.patch | 4 +- |
22 |
.../gracer/files/gracer-0.1.5-warnings.patch | 4 +- |
23 |
games-sports/gracer/files/gracer-gcc-3.4.patch | 16 +++---- |
24 |
games-sports/gracer/gracer-0.1.5-r1.ebuild | 51 ++++++++++++++++++++++ |
25 |
9 files changed, 74 insertions(+), 23 deletions(-) |
26 |
|
27 |
diff --git a/games-sports/gracer/files/0.1.5-gldefs.patch b/games-sports/gracer/files/0.1.5-gldefs.patch |
28 |
index 825edff..43fe738 100644 |
29 |
--- a/games-sports/gracer/files/0.1.5-gldefs.patch |
30 |
+++ b/games-sports/gracer/files/0.1.5-gldefs.patch |
31 |
@@ -1,5 +1,5 @@ |
32 |
---- src/glbind.c.orig 2003-07-30 00:18:37.000000000 -0400 |
33 |
-+++ src/glbind.c 2003-07-30 00:19:32.000000000 -0400 |
34 |
+--- a/src/glbind.c 2003-07-30 00:18:37.000000000 -0400 |
35 |
++++ b/src/glbind.c 2003-07-30 00:19:32.000000000 -0400 |
36 |
@@ -22,6 +22,8 @@ |
37 |
#include <unistd.h> |
38 |
#include <GL/gl.h> |
39 |
@@ -9,8 +9,8 @@ |
40 |
#include <string.h> |
41 |
#include <stdlib.h> |
42 |
#include <ctype.h> |
43 |
---- src/glhash.h.orig 2003-07-30 00:20:32.000000000 -0400 |
44 |
-+++ src/glhash.h 2003-07-30 00:20:58.000000000 -0400 |
45 |
+--- a/src/glhash.h 2003-07-30 00:20:32.000000000 -0400 |
46 |
++++ b/src/glhash.h 2003-07-30 00:20:58.000000000 -0400 |
47 |
@@ -1,4 +1,5 @@ |
48 |
/* this file is generated automaticaly from GL/gl.h */ |
49 |
+#undef GL_EXT_paletted_texture |
50 |
|
51 |
diff --git a/games-sports/gracer/files/gracer-0.1.5-as-needed.patch b/games-sports/gracer/files/gracer-0.1.5-as-needed.patch |
52 |
index 3d3c53b..1b8b21f 100644 |
53 |
--- a/games-sports/gracer/files/gracer-0.1.5-as-needed.patch |
54 |
+++ b/games-sports/gracer/files/gracer-0.1.5-as-needed.patch |
55 |
@@ -1,5 +1,5 @@ |
56 |
---- src/Makefile.in.old 2009-02-11 14:31:56.000000000 +0100 |
57 |
-+++ src/Makefile.in 2009-02-11 14:32:29.000000000 +0100 |
58 |
+--- a/src/Makefile.in 2009-02-11 14:31:56.000000000 +0100 |
59 |
++++ b/src/Makefile.in 2009-02-11 14:32:29.000000000 +0100 |
60 |
@@ -109,7 +109,7 @@ |
61 |
INCLUDES = -I$(top_srcdir) @X_CFLAGS@ @GL_CFLAGS@ @GLUT_CFLAGS@ @TCL_CFLAGS@ @GIF_CFLAGS@ @JPEG_CFLAGS@ @PNG_CFLAGS@ @PLIB_CFLAGS@ |
62 |
|
63 |
|
64 |
diff --git a/games-sports/gracer/files/gracer-0.1.5-gcc41.patch b/games-sports/gracer/files/gracer-0.1.5-gcc41.patch |
65 |
index 7d47f96..3877e76 100644 |
66 |
--- a/games-sports/gracer/files/gracer-0.1.5-gcc41.patch |
67 |
+++ b/games-sports/gracer/files/gracer-0.1.5-gcc41.patch |
68 |
@@ -1,5 +1,5 @@ |
69 |
---- common/gr_memory.h.old 2006-05-23 09:16:21.000000000 +0200 |
70 |
-+++ common/gr_memory.h 2006-05-23 09:16:40.000000000 +0200 |
71 |
+--- a/common/gr_memory.h 2006-05-23 09:16:21.000000000 +0200 |
72 |
++++ b/common/gr_memory.h 2006-05-23 09:16:40.000000000 +0200 |
73 |
@@ -64,7 +64,7 @@ |
74 |
void gr_dlist_free (GrDList *list); |
75 |
|
76 |
|
77 |
diff --git a/games-sports/gracer/files/gracer-0.1.5-giflib.patch b/games-sports/gracer/files/gracer-0.1.5-giflib.patch |
78 |
index 2d62b8c..a5ce023 100644 |
79 |
--- a/games-sports/gracer/files/gracer-0.1.5-giflib.patch |
80 |
+++ b/games-sports/gracer/files/gracer-0.1.5-giflib.patch |
81 |
@@ -1,4 +1,4 @@ |
82 |
---- gracer-0.1.5.orig/common/gr_texture.c |
83 |
+--- gracer-0.1.5/common/gr_texture.c |
84 |
+++ gracer-0.1.5/common/gr_texture.c |
85 |
@@ -274,7 +274,11 @@ |
86 |
int index; |
87 |
|
88 |
diff --git a/games-sports/gracer/files/gracer-0.1.5-libpng14.patch b/games-sports/gracer/files/gracer-0.1.5-libpng14.patch |
89 |
index 6230eb2..618c987 100644 |
90 |
--- a/games-sports/gracer/files/gracer-0.1.5-libpng14.patch |
91 |
+++ b/games-sports/gracer/files/gracer-0.1.5-libpng14.patch |
92 |
@@ -1,7 +1,7 @@ |
93 |
http://bugs.gentoo.org/show_bug.cgi?id=308885 |
94 |
|
95 |
---- common/gr_texture.c |
96 |
-+++ common/gr_texture.c |
97 |
+--- a/common/gr_texture.c |
98 |
++++ b/common/gr_texture.c |
99 |
@@ -419,7 +419,7 @@ read_png_file (GrTexture *texture, char |
100 |
if (fread (header, 1, PNG_BYTES_TO_CHECK, file) != PNG_BYTES_TO_CHECK) { |
101 |
goto ERROR; |
102 |
|
103 |
diff --git a/games-sports/gracer/files/gracer-0.1.5-png15.patch b/games-sports/gracer/files/gracer-0.1.5-png15.patch |
104 |
index 1efaec3..d606c14 100644 |
105 |
--- a/games-sports/gracer/files/gracer-0.1.5-png15.patch |
106 |
+++ b/games-sports/gracer/files/gracer-0.1.5-png15.patch |
107 |
@@ -1,5 +1,5 @@ |
108 |
---- common/gr_texture.c.old 2011-09-14 14:23:46.820207882 +0200 |
109 |
-+++ common/gr_texture.c 2011-09-14 14:24:22.861203604 +0200 |
110 |
+--- a/common/gr_texture.c 2011-09-14 14:23:46.820207882 +0200 |
111 |
++++ b/common/gr_texture.c 2011-09-14 14:24:22.861203604 +0200 |
112 |
@@ -431,7 +431,7 @@ |
113 |
if (!info_ptr) { |
114 |
goto ERROR; |
115 |
|
116 |
diff --git a/games-sports/gracer/files/gracer-0.1.5-warnings.patch b/games-sports/gracer/files/gracer-0.1.5-warnings.patch |
117 |
index 5886ef7..b5ede40 100644 |
118 |
--- a/games-sports/gracer/files/gracer-0.1.5-warnings.patch |
119 |
+++ b/games-sports/gracer/files/gracer-0.1.5-warnings.patch |
120 |
@@ -1,4 +1,4 @@ |
121 |
---- gracer-0.1.5.orig/src/glbind.c |
122 |
+--- gracer-0.1.5/src/glbind.c |
123 |
+++ gracer-0.1.5/src/glbind.c |
124 |
@@ -142,7 +142,7 @@ |
125 |
return NULL; |
126 |
@@ -9,7 +9,7 @@ |
127 |
return NULL; |
128 |
|
129 |
return Tcl_GetHashValue (entry); |
130 |
---- gracer-0.1.5.orig/src/joystick.c |
131 |
+--- gracer-0.1.5/src/joystick.c |
132 |
+++ gracer-0.1.5/src/joystick.c |
133 |
@@ -20,6 +20,7 @@ |
134 |
*/ |
135 |
|
136 |
diff --git a/games-sports/gracer/files/gracer-gcc-3.4.patch b/games-sports/gracer/files/gracer-gcc-3.4.patch |
137 |
index 354f986..c12cb9a 100644 |
138 |
--- a/games-sports/gracer/files/gracer-gcc-3.4.patch |
139 |
+++ b/games-sports/gracer/files/gracer-gcc-3.4.patch |
140 |
@@ -1,5 +1,5 @@ |
141 |
---- src/glbind.c.old 2004-11-05 01:15:07.141221016 +0000 |
142 |
-+++ src/glbind.c 2004-11-05 01:15:32.808319024 +0000 |
143 |
+--- a/src/glbind.c 2004-11-05 01:15:07.141221016 +0000 |
144 |
++++ b/src/glbind.c 2004-11-05 01:15:32.808319024 +0000 |
145 |
@@ -2150,6 +2150,7 @@ |
146 |
return 3; |
147 |
|
148 |
@@ -24,8 +24,8 @@ |
149 |
} |
150 |
|
151 |
ERROR: |
152 |
---- src/glutwidgets.c.old 2004-11-05 01:17:17.941336376 +0000 |
153 |
-+++ src/glutwidgets.c 2004-11-05 01:18:42.059548464 +0000 |
154 |
+--- a/src/glutwidgets.c 2004-11-05 01:17:17.941336376 +0000 |
155 |
++++ b/src/glutwidgets.c 2004-11-05 01:18:42.059548464 +0000 |
156 |
@@ -255,6 +255,7 @@ |
157 |
widget->width += (width - screen_width); |
158 |
break; |
159 |
@@ -74,8 +74,8 @@ |
160 |
} |
161 |
|
162 |
glColor4fv (widget->fg_color[GR_STATE_NORMAL]); |
163 |
---- src/gr_world.c.old 2004-11-05 01:19:30.766143936 +0000 |
164 |
-+++ src/gr_world.c 2004-11-05 01:19:07.717647840 +0000 |
165 |
+--- a/src/gr_world.c 2004-11-05 01:19:30.766143936 +0000 |
166 |
++++ b/src/gr_world.c 2004-11-05 01:19:07.717647840 +0000 |
167 |
@@ -169,6 +169,7 @@ |
168 |
break; |
169 |
|
170 |
@@ -84,8 +84,8 @@ |
171 |
} |
172 |
|
173 |
tlist = entry->triggers; |
174 |
---- ac2scene/ac2scene.c.old 2004-11-05 01:13:55.845059680 +0000 |
175 |
-+++ ac2scene/ac2scene.c 2004-11-05 01:14:32.526483256 +0000 |
176 |
+--- a/ac2scene/ac2scene.c 2004-11-05 01:13:55.845059680 +0000 |
177 |
++++ b/ac2scene/ac2scene.c 2004-11-05 01:14:32.526483256 +0000 |
178 |
@@ -162,6 +162,7 @@ |
179 |
break; |
180 |
|
181 |
|
182 |
diff --git a/games-sports/gracer/gracer-0.1.5-r1.ebuild b/games-sports/gracer/gracer-0.1.5-r1.ebuild |
183 |
new file mode 100644 |
184 |
index 00000000..d841e11 |
185 |
--- /dev/null |
186 |
+++ b/games-sports/gracer/gracer-0.1.5-r1.ebuild |
187 |
@@ -0,0 +1,51 @@ |
188 |
+# Copyright 1999-2016 Gentoo Foundation |
189 |
+# Distributed under the terms of the GNU General Public License v2 |
190 |
+# $Id$ |
191 |
+ |
192 |
+EAPI=6 |
193 |
+inherit eutils |
194 |
+ |
195 |
+DESCRIPTION="3D motor sports simulator" |
196 |
+HOMEPAGE="http://gracer.sourceforge.net/" |
197 |
+SRC_URI="mirror://sourceforge/gracer/${P}.tar.gz" |
198 |
+ |
199 |
+LICENSE="GPL-2" |
200 |
+SLOT="0" |
201 |
+KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
202 |
+IUSE="joystick" |
203 |
+ |
204 |
+DEPEND=" |
205 |
+ dev-lang/tcl:0 |
206 |
+ media-libs/freeglut |
207 |
+ media-libs/giflib |
208 |
+ media-libs/libpng:0 |
209 |
+ media-libs/plib |
210 |
+ x11-libs/libXi |
211 |
+ x11-libs/libXmu |
212 |
+ virtual/glu |
213 |
+ virtual/jpeg:0 |
214 |
+ virtual/opengl" |
215 |
+ |
216 |
+RDEPEND=${DEPEND} |
217 |
+ |
218 |
+PATCHES=( |
219 |
+ "${FILESDIR}"/${PV}-gldefs.patch |
220 |
+ "${FILESDIR}"/${PN}-gcc-3.4.patch |
221 |
+ "${FILESDIR}/${P}"-gcc41.patch |
222 |
+ "${FILESDIR}"/${P}-as-needed.patch |
223 |
+ "${FILESDIR}"/${P}-libpng14.patch |
224 |
+ "${FILESDIR}"/${P}-png15.patch |
225 |
+ "${FILESDIR}"/${P}-giflib.patch |
226 |
+ "${FILESDIR}"/${P}-warnings.patch |
227 |
+) |
228 |
+ |
229 |
+src_configure() { |
230 |
+ econf \ |
231 |
+ --enable-gif \ |
232 |
+ --enable-jpeg \ |
233 |
+ --enable-png \ |
234 |
+ $(use_enable joystick) |
235 |
+ sed -i \ |
236 |
+ -e 's:-lplibsl:-lplibsl -lplibul:' \ |
237 |
+ $(find -name Makefile) || die |
238 |
+} |