1 |
commit: 8b2d43b31cd434601faf4c2e4327a7c23b0d2e95 |
2 |
Author: Austin English <wizardedit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 15 10:38:00 2016 +0000 |
4 |
Commit: Austin English <wizardedit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 15 11:08:15 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b2d43b3 |
7 |
|
8 |
games-rpg/openglad: 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-rpg/openglad/files/0.98-gladpack.c.patch | 2 +- |
17 |
games-rpg/openglad/files/openglad-0.98-gcc43.patch | 4 +- |
18 |
games-rpg/openglad/files/openglad-0.98-ovfl.patch | 4 +- |
19 |
games-rpg/openglad/openglad-0.98-r1.ebuild | 43 ++++++++++++++++++++++ |
20 |
4 files changed, 48 insertions(+), 5 deletions(-) |
21 |
|
22 |
diff --git a/games-rpg/openglad/files/0.98-gladpack.c.patch b/games-rpg/openglad/files/0.98-gladpack.c.patch |
23 |
index 061ccbf..b4f5de9 100644 |
24 |
--- a/games-rpg/openglad/files/0.98-gladpack.c.patch |
25 |
+++ b/games-rpg/openglad/files/0.98-gladpack.c.patch |
26 |
@@ -1,4 +1,4 @@ |
27 |
---- openglad-0.98.orig/util/gladpack.c 2002-09-14 18:37:50.000000000 +1000 |
28 |
+--- openglad-0.98/util/gladpack.c 2002-09-14 18:37:50.000000000 +1000 |
29 |
+++ openglad-0.98/util/gladpack.c 2003-12-06 12:42:31.393812945 +1100 |
30 |
@@ -9,8 +9,8 @@ |
31 |
|
32 |
|
33 |
diff --git a/games-rpg/openglad/files/openglad-0.98-gcc43.patch b/games-rpg/openglad/files/openglad-0.98-gcc43.patch |
34 |
index 831bb53..9f46ce8 100644 |
35 |
--- a/games-rpg/openglad/files/openglad-0.98-gcc43.patch |
36 |
+++ b/games-rpg/openglad/files/openglad-0.98-gcc43.patch |
37 |
@@ -1,5 +1,5 @@ |
38 |
---- src/parser.cpp |
39 |
-+++ src/parser.cpp |
40 |
+--- a/src/parser.cpp |
41 |
++++ b/src/parser.cpp |
42 |
@@ -23,6 +23,8 @@ |
43 |
#include <iostream> |
44 |
#include <fstream> |
45 |
|
46 |
diff --git a/games-rpg/openglad/files/openglad-0.98-ovfl.patch b/games-rpg/openglad/files/openglad-0.98-ovfl.patch |
47 |
index 14cd73c..8ec89d2 100644 |
48 |
--- a/games-rpg/openglad/files/openglad-0.98-ovfl.patch |
49 |
+++ b/games-rpg/openglad/files/openglad-0.98-ovfl.patch |
50 |
@@ -1,5 +1,5 @@ |
51 |
---- src/screen.cpp.old 2011-07-23 21:35:34.385063301 +0200 |
52 |
-+++ src/screen.cpp 2011-07-23 21:35:59.948063312 +0200 |
53 |
+--- a/src/screen.cpp 2011-07-23 21:35:34.385063301 +0200 |
54 |
++++ b/src/screen.cpp 2011-07-23 21:35:59.948063312 +0200 |
55 |
@@ -2383,7 +2383,7 @@ |
56 |
short listsize; |
57 |
short i; |
58 |
|
59 |
diff --git a/games-rpg/openglad/openglad-0.98-r1.ebuild b/games-rpg/openglad/openglad-0.98-r1.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000..8e6381c |
62 |
--- /dev/null |
63 |
+++ b/games-rpg/openglad/openglad-0.98-r1.ebuild |
64 |
@@ -0,0 +1,43 @@ |
65 |
+# Copyright 1999-2016 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+# $Id$ |
68 |
+ |
69 |
+EAPI=6 |
70 |
+inherit eutils |
71 |
+ |
72 |
+DESCRIPTION="An SDL clone of Gladiator, a classic RPG game" |
73 |
+HOMEPAGE="http://snowstorm.sourceforge.net/" |
74 |
+SRC_URI="mirror://sourceforge/snowstorm/${P}.tar.gz |
75 |
+ mirror://gentoo/${PN}.png" |
76 |
+ |
77 |
+LICENSE="GPL-2" |
78 |
+SLOT="0" |
79 |
+KEYWORDS="~amd64 ~ppc ~x86" |
80 |
+IUSE="" |
81 |
+ |
82 |
+DEPEND=" |
83 |
+ media-libs/libsdl[joystick,sound,video] |
84 |
+ media-libs/sdl-image |
85 |
+ media-libs/sdl-mixer" |
86 |
+RDEPEND=${DEPEND} |
87 |
+ |
88 |
+PATCHES=( |
89 |
+ "${FILESDIR}"/${P}-gcc43.patch |
90 |
+ "${FILESDIR}"/${PV}-gladpack.c.patch |
91 |
+ "${FILESDIR}"/${P}-ovfl.patch |
92 |
+) |
93 |
+ |
94 |
+src_configure() { |
95 |
+ econf \ |
96 |
+ --prefix=/usr \ |
97 |
+ --bindir=/usr/bin \ |
98 |
+ --datadir=/usr/share/${PN} |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ emake install \ |
103 |
+ DESTDIR="${D}" \ |
104 |
+ docdir="${D}"/usr/share/doc/${PF} |
105 |
+ doicon "${DISTDIR}"/${PN}.png |
106 |
+ make_desktop_entry openglad OpenGladiator |
107 |
+} |