Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/rafkill/files/, games-action/rafkill/
Date: Tue, 24 Jan 2017 01:35:35
Message-Id: 1485221711.c76d994e1c3cf691b4e73d64aa298914b5bbfd8e.wizardedit@gentoo
1 commit: c76d994e1c3cf691b4e73d64aa298914b5bbfd8e
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 01:32:29 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 24 01:35:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c76d994e
7
8 games-action/rafkill: remove deprecated games eclass
9
10 Also update to EAPI 6
11
12 Gentoo-Bug: https://bugs.gentoo.org/574082
13
14 Package-Manager: Portage-2.3.2, Repoman-2.3.1
15
16 .../rafkill/files/rafkill-1.2.3-build.patch | 4 +-
17 .../rafkill/files/rafkill-1.2.3-gcc47.patch | 4 +-
18 .../rafkill/files/rafkill-1.2.3-ldflags.patch | 4 +-
19 games-action/rafkill/rafkill-1.2.3-r1.ebuild | 49 ++++++++++++++++++++++
20 4 files changed, 55 insertions(+), 6 deletions(-)
21
22 diff --git a/games-action/rafkill/files/rafkill-1.2.3-build.patch b/games-action/rafkill/files/rafkill-1.2.3-build.patch
23 index 3f96be02..26e5aa6 100644
24 --- a/games-action/rafkill/files/rafkill-1.2.3-build.patch
25 +++ b/games-action/rafkill/files/rafkill-1.2.3-build.patch
26 @@ -1,5 +1,5 @@
27 ---- SConstruct
28 -+++ SConstruct
29 +--- a/SConstruct
30 ++++ b/SConstruct
31 @@ -8,8 +8,8 @@
32
33 print "Use 'scons -h' for help"
34
35 diff --git a/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch b/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
36 index 1a06ae6..3c95e02 100644
37 --- a/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
38 +++ b/games-action/rafkill/files/rafkill-1.2.3-gcc47.patch
39 @@ -1,5 +1,5 @@
40 ---- src/system.cpp.old 2012-07-19 13:37:12.324303303 +0200
41 -+++ src/system.cpp 2012-07-19 13:38:05.451584273 +0200
42 +--- a/src/system.cpp 2012-07-19 13:37:12.324303303 +0200
43 ++++ b/src/system.cpp 2012-07-19 13:38:05.451584273 +0200
44 @@ -2,6 +2,8 @@
45 #include <strings.h>
46 #include <string>
47
48 diff --git a/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch b/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
49 index 5c6be09..4adf853 100644
50 --- a/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
51 +++ b/games-action/rafkill/files/rafkill-1.2.3-ldflags.patch
52 @@ -1,5 +1,5 @@
53 ---- SConstruct.old 2010-10-07 10:37:26.000000000 +0200
54 -+++ SConstruct 2010-10-07 10:39:33.000000000 +0200
55 +--- a/SConstruct 2010-10-07 10:37:26.000000000 +0200
56 ++++ b/SConstruct 2010-10-07 10:39:33.000000000 +0200
57 @@ -1,5 +1,6 @@
58 import os
59 import sys
60
61 diff --git a/games-action/rafkill/rafkill-1.2.3-r1.ebuild b/games-action/rafkill/rafkill-1.2.3-r1.ebuild
62 new file mode 100644
63 index 00000000..bd291b1
64 --- /dev/null
65 +++ b/games-action/rafkill/rafkill-1.2.3-r1.ebuild
66 @@ -0,0 +1,49 @@
67 +# Copyright 1999-2017 Gentoo Foundation
68 +# Distributed under the terms of the GNU General Public License v2
69 +# $Id$
70 +
71 +EAPI=6
72 +
73 +inherit eutils scons-utils toolchain-funcs
74 +
75 +DESCRIPTION="Space shoot-em-up game"
76 +HOMEPAGE="http://raptorv2.sourceforge.net/"
77 +SRC_URI="mirror://sourceforge/raptorv2/${P}.tar.gz"
78 +
79 +LICENSE="GPL-2"
80 +SLOT="0"
81 +KEYWORDS="~amd64 ~ppc ~x86"
82 +IUSE=""
83 +
84 +DEPEND="<media-libs/allegro-5
85 + media-libs/aldumb"
86 +RDEPEND=${DEPEND}
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/${P}-build.patch
90 + "${FILESDIR}"/${P}-gcc43.patch
91 + "${FILESDIR}"/${P}-gcc47.patch
92 + "${FILESDIR}"/${P}-ldflags.patch
93 +)
94 +
95 +src_prepare() {
96 + default
97 +
98 + rm -f {data,music}/.sconsign || die
99 +
100 + sed -i \
101 + -e "/^#define INSTALL_DIR/s:\.:/usr/share:" \
102 + src/defs.cpp || die
103 +}
104 +
105 +src_compile() {
106 + tc-export CXX
107 + escons
108 +}
109 +
110 +src_install() {
111 + dobin ${PN}
112 + insinto /usr/share/${PN}
113 + doins -r data music
114 + dodoc README
115 +}