commit:     6a26a6d75ad86729649dfe694cb86ba720a35ae5
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 29 21:49:35 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 21:50:30 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a26a6d7

games-sports/stormbaancoureur: remove deprecated games eclass

Also update to EAPI 6

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

Package-Manager: portage-2.3.0

 .../files/stormbaancoureur-2.1.6-gentoo.patch      |  8 ++--
 .../stormbaancoureur-2.1.6-r1.ebuild               | 44 ++++++++++++++++++++++
 2 files changed, 48 insertions(+), 4 deletions(-)

diff --git 
a/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch 
b/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch
index 07413ec..4523d67 100644
--- a/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch
+++ b/games-sports/stormbaancoureur/files/stormbaancoureur-2.1.6-gentoo.patch
@@ -1,5 +1,5 @@
---- stormbaancoureur-2.1.6.orig/src-stormbaancoureur/Makefile
-+++ stormbaancoureur-2.1.6/src-stormbaancoureur/Makefile
+--- src-stormbaancoureur/Makefile
++++ src-stormbaancoureur/Makefile
 @@ -5,21 +5,21 @@
  GLPREFIX=/usr
  PLIBPREFIX=/usr
@@ -89,8 +89,8 @@
  
  debugrun: stormbaancoureur
        PLODE_DATADIR=`pwd` gdb ./stormbaancoureur
---- stormbaancoureur-2.1.6.orig/src-stormbaancoureur/main.cxx
-+++ stormbaancoureur-2.1.6/src-stormbaancoureur/main.cxx
+--- src-stormbaancoureur/main.cxx
++++ src-stormbaancoureur/main.cxx
 @@ -836,15 +836,7 @@
    fprintf(stderr,"plib is (c) by Steve Baker\n");
    fprintf(stderr,"OpenDE is (c) by Russel L. Smith\n");

diff --git a/games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild 
b/games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild
new file mode 100644
index 00000000..08683c7
--- /dev/null
+++ b/games-sports/stormbaancoureur/stormbaancoureur-2.1.6-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Simulated obstacle course for automobiles"
+HOMEPAGE="http://www.stolk.org/stormbaancoureur/";
+SRC_URI="http://www.stolk.org/stormbaancoureur/download/${P}.tar.gz";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="
+       >=dev-games/ode-0.8
+       media-libs/alsa-lib
+       media-libs/freeglut
+       >=media-libs/plib-1.8.4
+       virtual/glu
+       virtual/opengl"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/${P}/src-${PN}
+
+PATCHES=(
+       "${FILESDIR}"/${P}-gentoo.patch
+)
+
+src_prepare() {
+       default
+
+       sed -ie "s:GENTOODIR:/usr/share/${PN}:" main.cxx || die
+}
+
+src_install() {
+       dobin ${PN}
+       insinto /usr/share/${PN}
+       doins -r images/ models/ sounds/ shaders/
+       dodoc JOYSTICKS README TODO
+       make_desktop_entry ${PN} "Stormbaan Coureur"
+}

Reply via email to