games-action/gltron: remove deprecated games eclass
authorAustin English <wizardedit@gentoo.org>
Wed, 25 Jan 2017 19:26:31 +0000 (13:26 -0600)
committerAustin English <wizardedit@gentoo.org>
Wed, 25 Jan 2017 23:04:41 +0000 (17:04 -0600)
Also update to EAPI 6

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

Package-Manager: Portage-2.3.2, Repoman-2.3.1

games-action/gltron/files/gltron-0.70-configure.patch
games-action/gltron/files/gltron-0.70-debian.patch
games-action/gltron/files/gltron-0.70-prototypes.patch
games-action/gltron/gltron-0.70-r2.ebuild [new file with mode: 0644]

index 91414b3956ec7ebe4ddbf802124edb9a28521d2e..5bdef979a57fdbae4ac406251b901f3c8fdea628 100644 (file)
@@ -1,7 +1,7 @@
 configure.in is written poorly so it just stomps all over CFLAGS
 
---- configure
-+++ configure
+--- a/configure
++++ b/configure
 @@ -2805,7 +2805,7 @@
    RANLIB="$ac_cv_prog_RANLIB"
  fi
index 464cf59282072677c1b5c445400a0b3859990bff..4e25618ce9b6d6ba0ded76506830ac2b3f79c968 100644 (file)
@@ -1,7 +1,7 @@
 Ripped from Debian patchset 6
 
---- src/include/game/game_data.h
-+++ src/include/game/game_data.h
+--- a/src/include/game/game_data.h
++++ b/src/include/game/game_data.h
 @@ -71,7 +71,7 @@
  typedef struct AI {
    int active;
@@ -11,8 +11,8 @@ Ripped from Debian patchset 6
        segment2 left, right, front, backleft;
  } AI;
  
---- src/include/video/fonttex.h
-+++ src/include/video/fonttex.h
+--- a/src/include/video/fonttex.h
++++ b/src/include/video/fonttex.h
 @@ -10,7 +10,7 @@
    int lower; /* lowest ascii character (normally: 32) */
    int upper; /* highest ascii character (normally: 126) */
@@ -22,8 +22,8 @@ Ripped from Debian patchset 6
  
    char *fontname;
    char *bitmapname;
---- src/video/trail.c
-+++ src/video/trail.c
+--- a/src/video/trail.c
++++ b/src/video/trail.c
 @@ -19,7 +19,7 @@
    n[1] = s->vStart.v[1] - s->vDirection.v[0];
    tmp[0] = eye[0] - s->vStart.v[0];
index d697f1ad59acc8184937b64573b19a6192ed6949..621963aeb6897cea97662b2001261cf64b89c856 100644 (file)
@@ -1,7 +1,7 @@
 scripting.h declares these params as const so make sure they're the same.
 
---- nebu/scripting/scripting.c
-+++ nebu/scripting/scripting.c
+--- a/nebu/scripting/scripting.c
++++ b/nebu/scripting/scripting.c
 @@ -169,16 +169,16 @@
    return status;
  }    
diff --git a/games-action/gltron/gltron-0.70-r2.ebuild b/games-action/gltron/gltron-0.70-r2.ebuild
new file mode 100644 (file)
index 0000000..8086cac
--- /dev/null
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="3d tron, just like the movie"
+HOMEPAGE="http://gltron.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz
+       mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+       media-libs/libmikmod
+       media-libs/libpng:0
+       media-libs/libsdl[sound,video]
+       media-libs/sdl-mixer[vorbis]
+       media-libs/sdl-sound[vorbis,mikmod]
+       media-libs/smpeg
+       virtual/opengl"
+
+RDEPEND=${DEPEND}
+
+PATCHES=(
+       "${FILESDIR}"/${P}-configure.patch
+       "${FILESDIR}"/${P}-debian.patch
+       "${FILESDIR}"/${P}-gcc49.patch
+       "${FILESDIR}"/${P}-prototypes.patch
+)
+
+src_prepare() {
+       default
+       sed -i \
+               -e '/^gltron_LINK/s/$/ $(LDFLAGS)/' \
+               Makefile.in || die
+}
+
+src_configure() {
+       # warn/debug/profile just modify CFLAGS, they aren't
+       # real options, so don't utilize USE flags here
+       econf \
+               --disable-warn \
+               --disable-debug \
+               --disable-profile
+}
+
+src_install() {
+       default
+       doicon "${DISTDIR}"/${PN}.png
+       make_desktop_entry ${PN} GLtron
+}