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/orbital-eunuchs-sniper/files/, games-action/orbital-eunuchs-sniper/
Date: Wed, 25 Jan 2017 23:05:32
Message-Id: 1485385509.e5294867fc8c369528382a8343f1b9f3e5d9f41b.wizardedit@gentoo
1 commit: e5294867fc8c369528382a8343f1b9f3e5d9f41b
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 25 23:04:23 2017 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 25 23:05:09 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5294867
7
8 games-action/orbital-eunuchs-sniper: 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 .../orbital-eunuchs-sniper-1.30-datadir.patch | 8 ++---
17 .../files/orbital-eunuchs-sniper-1.30-gcc43.patch | 4 +--
18 .../orbital-eunuchs-sniper-1.30-r1.ebuild | 42 ++++++++++++++++++++++
19 3 files changed, 48 insertions(+), 6 deletions(-)
20
21 diff --git a/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch
22 index 090fb60..9492e1e 100644
23 --- a/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch
24 +++ b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-datadir.patch
25 @@ -1,5 +1,5 @@
26 ---- configure.ac
27 -+++ configure.ac
28 +--- a/configure.ac
29 ++++ b/configure.ac
30 @@ -64,14 +64,12 @@
31 ,dnl default action of assigning shell value
32 with_games_dir="${runtime_datadir}/games"
33 @@ -15,8 +15,8 @@
34
35
36 echo $ac_n "ordering crap from http://www.amazon.com/gp/registry/296ST2NHEBO0Z" 1>&6
37 ---- src/Makefile.am
38 -+++ src/Makefile.am
39 +--- a/src/Makefile.am
40 ++++ b/src/Makefile.am
41 @@ -1,6 +1,4 @@
42 -pkgdata_PROGRAMS = snipe2d.@CPU_IS@.dynamic snipe2d.@CPU_IS@.static
43 -BUILT_SOURCES = snipe2d
44
45 diff --git a/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch
46 index 268294a..d3747ed 100644
47 --- a/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch
48 +++ b/games-action/orbital-eunuchs-sniper/files/orbital-eunuchs-sniper-1.30-gcc43.patch
49 @@ -1,5 +1,5 @@
50 ---- src/snipe2d.h
51 -+++ src/snipe2d.h
52 +--- a/src/snipe2d.h
53 ++++ b/src/snipe2d.h
54 @@ -39,6 +39,7 @@
55 #include <stdlib.h>
56 #include <math.h>
57
58 diff --git a/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild b/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild
59 new file mode 100644
60 index 00000000..8f8ef38
61 --- /dev/null
62 +++ b/games-action/orbital-eunuchs-sniper/orbital-eunuchs-sniper-1.30-r1.ebuild
63 @@ -0,0 +1,42 @@
64 +# Copyright 1999-2017 Gentoo Foundation
65 +# Distributed under the terms of the GNU General Public License v2
66 +# $Id$
67 +
68 +EAPI=6
69 +inherit autotools eutils
70 +
71 +MY_P=${PN//-/_}-${PV}
72 +DESCRIPTION="Snipe terrorists from your orbital base"
73 +HOMEPAGE="http://icculus.org/oes/"
74 +SRC_URI="http://filesingularity.timedoctor.org/${MY_P}.tar.gz"
75 +
76 +LICENSE="ZLIB"
77 +SLOT="0"
78 +KEYWORDS="~amd64 ~ppc ~x86"
79 +IUSE=""
80 +
81 +DEPEND="media-libs/libsdl[joystick,video]
82 + media-libs/sdl-image[png]
83 + media-libs/sdl-mixer[vorbis]"
84 +RDEPEND=${DEPEND}
85 +
86 +S=${WORKDIR}/${MY_P}
87 +
88 +PATCHES=(
89 + "${FILESDIR}"/${P}-datadir.patch
90 + "${FILESDIR}"/${P}-gcc43.patch
91 +)
92 +src_prepare() {
93 + default
94 +
95 + sed -i \
96 + -e '/^sleep /d' \
97 + configure.ac || die
98 + eautoreconf
99 +}
100 +
101 +src_install() {
102 + DOCS="AUTHORS ChangeLog readme.txt README TODO" \
103 + default
104 + make_desktop_entry snipe2d "Orbital Eunuchs Sniper"
105 +}