games-rpg/openglad: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Sat, 15 Oct 2016 10:38:00 +0000 (05:38 -0500)
committerAustin English <wizardedit@gentoo.org>
Sat, 15 Oct 2016 11:08:15 +0000 (06:08 -0500)
Also update to EAPI 6

Gentoo-Bug: https://bugs.gentoo.org/574082

Package-Manager: portage-2.3.0

games-rpg/openglad/files/0.98-gladpack.c.patch
games-rpg/openglad/files/openglad-0.98-gcc43.patch
games-rpg/openglad/files/openglad-0.98-ovfl.patch
games-rpg/openglad/openglad-0.98-r1.ebuild [new file with mode: 0644]

index 061ccbf36305ab20a2df9db953cb76c6829ec074..b4f5de9e3995c36c536d1fa36ac002b6d084395e 100644 (file)
@@ -1,4 +1,4 @@
---- openglad-0.98.orig/util/gladpack.c 2002-09-14 18:37:50.000000000 +1000
+--- openglad-0.98/util/gladpack.c      2002-09-14 18:37:50.000000000 +1000
 +++ openglad-0.98/util/gladpack.c      2003-12-06 12:42:31.393812945 +1100
 @@ -9,8 +9,8 @@
  
index 831bb53671d4809e40d7216abd7365c5948fd0cd..9f46ce8e5b95c51c51c4be9ff0477ab7c67a1302 100644 (file)
@@ -1,5 +1,5 @@
---- src/parser.cpp
-+++ src/parser.cpp
+--- a/src/parser.cpp
++++ b/src/parser.cpp
 @@ -23,6 +23,8 @@
  #include <iostream>
  #include <fstream>
index 14cd73cc53b0a840721a2c429671259bb4ca55b4..8ec89d22559d9ec4a7b9c9a60052bbb62a2da3e8 100644 (file)
@@ -1,5 +1,5 @@
---- src/screen.cpp.old 2011-07-23 21:35:34.385063301 +0200
-+++ src/screen.cpp     2011-07-23 21:35:59.948063312 +0200
+--- a/src/screen.cpp   2011-07-23 21:35:34.385063301 +0200
++++ b/src/screen.cpp   2011-07-23 21:35:59.948063312 +0200
 @@ -2383,7 +2383,7 @@
        short listsize;
        short i;
diff --git a/games-rpg/openglad/openglad-0.98-r1.ebuild b/games-rpg/openglad/openglad-0.98-r1.ebuild
new file mode 100644 (file)
index 0000000..8e6381c
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="An SDL clone of Gladiator, a classic RPG game"
+HOMEPAGE="http://snowstorm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/snowstorm/${P}.tar.gz
+       mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+       media-libs/libsdl[joystick,sound,video]
+       media-libs/sdl-image
+       media-libs/sdl-mixer"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+               "${FILESDIR}"/${P}-gcc43.patch
+               "${FILESDIR}"/${PV}-gladpack.c.patch
+               "${FILESDIR}"/${P}-ovfl.patch
+)
+
+src_configure() {
+       econf \
+               --prefix=/usr \
+               --bindir=/usr/bin \
+               --datadir=/usr/share/${PN}
+}
+
+src_install() {
+       emake install \
+               DESTDIR="${D}" \
+               docdir="${D}"/usr/share/doc/${PF}
+       doicon "${DISTDIR}"/${PN}.png
+       make_desktop_entry openglad OpenGladiator
+}