commit:     8b2d43b31cd434601faf4c2e4327a7c23b0d2e95
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 15 10:38:00 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Sat Oct 15 11:08:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b2d43b3

games-rpg/openglad: remove deprecated games eclass

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     |  2 +-
 games-rpg/openglad/files/openglad-0.98-gcc43.patch |  4 +-
 games-rpg/openglad/files/openglad-0.98-ovfl.patch  |  4 +-
 games-rpg/openglad/openglad-0.98-r1.ebuild         | 43 ++++++++++++++++++++++
 4 files changed, 48 insertions(+), 5 deletions(-)

diff --git a/games-rpg/openglad/files/0.98-gladpack.c.patch 
b/games-rpg/openglad/files/0.98-gladpack.c.patch
index 061ccbf..b4f5de9 100644
--- a/games-rpg/openglad/files/0.98-gladpack.c.patch
+++ b/games-rpg/openglad/files/0.98-gladpack.c.patch
@@ -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 @@
  

diff --git a/games-rpg/openglad/files/openglad-0.98-gcc43.patch 
b/games-rpg/openglad/files/openglad-0.98-gcc43.patch
index 831bb53..9f46ce8 100644
--- a/games-rpg/openglad/files/openglad-0.98-gcc43.patch
+++ b/games-rpg/openglad/files/openglad-0.98-gcc43.patch
@@ -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>

diff --git a/games-rpg/openglad/files/openglad-0.98-ovfl.patch 
b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
index 14cd73c..8ec89d2 100644
--- a/games-rpg/openglad/files/openglad-0.98-ovfl.patch
+++ b/games-rpg/openglad/files/openglad-0.98-ovfl.patch
@@ -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
index 00000000..8e6381c
--- /dev/null
+++ b/games-rpg/openglad/openglad-0.98-r1.ebuild
@@ -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
+}

Reply via email to