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/0verkill/, games-action/0verkill/files/
Date: Fri, 01 Jul 2016 18:58:00
Message-Id: 1467399436.13162a44fca97ec87f3022b4759bee5e12810b64.wizardedit@gentoo
1 commit: 13162a44fca97ec87f3022b4759bee5e12810b64
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 1 18:57:16 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 1 18:57:16 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13162a44
7
8 games-action/0verkill: 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.2.28
15
16 games-action/0verkill/0verkill-0.16-r4.ebuild | 63 ++++++++++++++++++++++
17 games-action/0verkill/files/0verkill-0.16-CC.patch | 4 +-
18 .../files/0verkill-0.16-gentoo-paths.patch | 4 +-
19 .../files/0verkill-0.16-home-overflow.patch | 4 +-
20 .../0verkill/files/0verkill-0.16-ovflfix.patch | 8 +--
21 5 files changed, 73 insertions(+), 10 deletions(-)
22
23 diff --git a/games-action/0verkill/0verkill-0.16-r4.ebuild b/games-action/0verkill/0verkill-0.16-r4.ebuild
24 new file mode 100644
25 index 0000000..5eb0dc1
26 --- /dev/null
27 +++ b/games-action/0verkill/0verkill-0.16-r4.ebuild
28 @@ -0,0 +1,63 @@
29 +# Copyright 1999-2016 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=6
34 +inherit autotools eutils
35 +
36 +DESCRIPTION="a bloody 2D action deathmatch-like game in ASCII-ART"
37 +HOMEPAGE="http://artax.karlin.mff.cuni.cz/~brain/0verkill/"
38 +SRC_URI="http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/${P}.tgz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
43 +IUSE="X"
44 +
45 +DEPEND="X? ( x11-libs/libXpm )"
46 +RDEPEND=${DEPEND}
47 +
48 +PATCHES=(
49 + "${FILESDIR}"/${P}-docs.patch
50 + "${FILESDIR}"/${P}-home-overflow.patch
51 + "${FILESDIR}"/${P}-segv.patch
52 + "${FILESDIR}"/${P}-gentoo-paths.patch
53 + "${FILESDIR}"/${P}-ovflfix.patch
54 + "${FILESDIR}"/${P}-CC.patch
55 + "${FILESDIR}"/${P}-underflow-check.patch #136222
56 +)
57 +
58 +src_prepare() {
59 + default
60 + sed -i \
61 + -e "s:data/:/usr/share/${PN}/data/:" cfg.h || die
62 + sed -i \
63 + -e "s:@CFLAGS@ -O3 :@CFLAGS@ :" Makefile.in || die
64 + sed -i \
65 + -e "/gettimeofday/s/getopt/getopt calloc/" configure.in || die
66 + eautoreconf
67 +}
68 +
69 +src_configure() {
70 + econf $(use_with X x)
71 +}
72 +
73 +src_install() {
74 + local x
75 + dobin 0verkill
76 + for x in avi bot editor server test_server ; do
77 + newbin ${x} 0verkill-${x}
78 + done
79 + if use X ; then
80 + dobin x0verkill
81 + for x in avi editor ; do
82 + newbin ${x} 0verkill-${x}
83 + done
84 + fi
85 +
86 + insinto "/usr/share/${PN}"
87 + doins -r data grx
88 +
89 + rm doc/README.OS2 doc/Readme\ Win32.txt doc/COPYING
90 + dodoc -r doc/
91 +}
92
93 diff --git a/games-action/0verkill/files/0verkill-0.16-CC.patch b/games-action/0verkill/files/0verkill-0.16-CC.patch
94 index b2ba0f0..568f8a4 100644
95 --- a/games-action/0verkill/files/0verkill-0.16-CC.patch
96 +++ b/games-action/0verkill/files/0verkill-0.16-CC.patch
97 @@ -1,5 +1,5 @@
98 ---- Makefile.in.orig 2010-11-08 13:30:42.060916323 -0500
99 -+++ Makefile.in 2010-11-08 13:31:03.199940471 -0500
100 +--- a/Makefile.in 2010-11-08 13:30:42.060916323 -0500
101 ++++ b/Makefile.in 2010-11-08 13:31:03.199940471 -0500
102 @@ -24,7 +24,7 @@
103 server.o: server.c server.h net.h data.h hash.h cfg.h time.h math.h config.h error.h
104 client.o: client.c data.h sprite.h cfg.h net.h hash.h time.h math.h console.h help.h blit.h config.h error.h
105
106 diff --git a/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch b/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch
107 index a5ecaec..d48b758 100644
108 --- a/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch
109 +++ b/games-action/0verkill/files/0verkill-0.16-gentoo-paths.patch
110 @@ -1,5 +1,5 @@
111 ---- sprite.c.orig 2007-11-15 18:26:30.000000000 -0500
112 -+++ sprite.c 2007-11-15 18:26:57.000000000 -0500
113 +--- a/sprite.c 2007-11-15 18:26:30.000000000 -0500
114 ++++ b/sprite.c 2007-11-15 18:26:57.000000000 -0500
115 @@ -2,6 +2,7 @@
116 #include <ctype.h>
117 #include <stdlib.h>
118
119 diff --git a/games-action/0verkill/files/0verkill-0.16-home-overflow.patch b/games-action/0verkill/files/0verkill-0.16-home-overflow.patch
120 index ec9b7ef..63bfb5f 100644
121 --- a/games-action/0verkill/files/0verkill-0.16-home-overflow.patch
122 +++ b/games-action/0verkill/files/0verkill-0.16-home-overflow.patch
123 @@ -1,5 +1,5 @@
124 ---- client.c.orig 2001-12-16 04:26:38.000000000 -0500
125 -+++ client.c 2003-11-17 15:12:52.850772508 -0500
126 +--- a/client.c 2001-12-16 04:26:38.000000000 -0500
127 ++++ b/client.c 2003-11-17 15:12:52.850772508 -0500
128 @@ -191,9 +191,9 @@
129 unsigned char txt[256];
130
131
132 diff --git a/games-action/0verkill/files/0verkill-0.16-ovflfix.patch b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch
133 index 3df8a07..a8a832e 100644
134 --- a/games-action/0verkill/files/0verkill-0.16-ovflfix.patch
135 +++ b/games-action/0verkill/files/0verkill-0.16-ovflfix.patch
136 @@ -1,5 +1,5 @@
137 ---- server.c.old 2010-11-08 11:53:18.000000000 +0100
138 -+++ server.c 2010-11-08 11:53:43.000000000 +0100
139 +--- a/server.c 2010-11-08 11:53:18.000000000 +0100
140 ++++ b/server.c 2010-11-08 11:53:43.000000000 +0100
141 @@ -905,8 +905,8 @@
142 int len;
143
144 @@ -11,8 +11,8 @@
145 send_chunk_packet_to_player(packet,len,player);
146 }
147
148 ---- console.c.old 2010-11-08 11:53:26.000000000 +0100
149 -+++ console.c 2010-11-08 11:54:44.000000000 +0100
150 +--- a/console.c 2010-11-08 11:53:26.000000000 +0100
151 ++++ b/console.c 2010-11-08 11:54:44.000000000 +0100
152 @@ -206,7 +206,7 @@
153 void c_setcolor_3b(unsigned char a)
154 {