commit:     c76d994e1c3cf691b4e73d64aa298914b5bbfd8e
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 01:32:29 2017 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 01:35:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c76d994e

games-action/rafkill: remove deprecated games eclass

Also update to EAPI 6

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

Package-Manager: Portage-2.3.2, Repoman-2.3.1

 .../rafkill/files/rafkill-1.2.3-build.patch        |  4 +-
 .../rafkill/files/rafkill-1.2.3-gcc47.patch        |  4 +-
 .../rafkill/files/rafkill-1.2.3-ldflags.patch      |  4 +-
 games-action/rafkill/rafkill-1.2.3-r1.ebuild       | 49 ++++++++++++++++++++++
 4 files changed, 55 insertions(+), 6 deletions(-)

diff --git a/games-action/rafkill/files/rafkill-1.2.3-build.patch 
b/games-action/rafkill/files/rafkill-1.2.3-build.patch
index 3f96be02..26e5aa6 100644
--- a/games-action/rafkill/files/rafkill-1.2.3-build.patch
+++ b/games-action/rafkill/files/rafkill-1.2.3-build.patch
@@ -1,5 +1,5 @@
---- SConstruct
-+++ SConstruct
+--- a/SConstruct
++++ b/SConstruct
 @@ -8,8 +8,8 @@
  
  print "Use 'scons -h' for help"

diff --git a/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch 
b/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
index 1a06ae6..3c95e02 100644
--- a/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
+++ b/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
@@ -1,5 +1,5 @@
---- src/system.cpp.old 2012-07-19 13:37:12.324303303 +0200
-+++ src/system.cpp     2012-07-19 13:38:05.451584273 +0200
+--- a/src/system.cpp   2012-07-19 13:37:12.324303303 +0200
++++ b/src/system.cpp   2012-07-19 13:38:05.451584273 +0200
 @@ -2,6 +2,8 @@
  #include <strings.h>
  #include <string>

diff --git a/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch 
b/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
index 5c6be09..4adf853 100644
--- a/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
+++ b/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
@@ -1,5 +1,5 @@
---- SConstruct.old     2010-10-07 10:37:26.000000000 +0200
-+++ SConstruct 2010-10-07 10:39:33.000000000 +0200
+--- a/SConstruct       2010-10-07 10:37:26.000000000 +0200
++++ b/SConstruct       2010-10-07 10:39:33.000000000 +0200
 @@ -1,5 +1,6 @@
  import os
  import sys

diff --git a/games-action/rafkill/rafkill-1.2.3-r1.ebuild 
b/games-action/rafkill/rafkill-1.2.3-r1.ebuild
new file mode 100644
index 00000000..bd291b1
--- /dev/null
+++ b/games-action/rafkill/rafkill-1.2.3-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils scons-utils toolchain-funcs
+
+DESCRIPTION="Space shoot-em-up game"
+HOMEPAGE="http://raptorv2.sourceforge.net/";
+SRC_URI="mirror://sourceforge/raptorv2/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="<media-libs/allegro-5
+       media-libs/aldumb"
+RDEPEND=${DEPEND}
+
+PATCHES=(
+       "${FILESDIR}"/${P}-build.patch
+       "${FILESDIR}"/${P}-gcc43.patch
+       "${FILESDIR}"/${P}-gcc47.patch
+       "${FILESDIR}"/${P}-ldflags.patch
+)
+
+src_prepare() {
+       default
+
+       rm -f {data,music}/.sconsign || die
+
+       sed -i \
+               -e "/^#define INSTALL_DIR/s:\.:/usr/share:" \
+               src/defs.cpp || die
+}
+
+src_compile() {
+       tc-export CXX
+       escons
+}
+
+src_install() {
+       dobin ${PN}
+       insinto /usr/share/${PN}
+       doins -r data music
+       dodoc README
+}

Reply via email to