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-strategy/xbattleai/, games-strategy/xbattleai/files/
Date: Wed, 03 Aug 2016 20:59:48
Message-Id: 1470257955.46956ffca6909f456da8a29be20e5185f5e04de0.wizardedit@gentoo
1 commit: 46956ffca6909f456da8a29be20e5185f5e04de0
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 2 21:43:09 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 3 20:59:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46956ffc
7
8 games-strategy/xbattleai: 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.0
15
16 .../xbattleai/files/xbattleai-1.2.2-sandbox.patch | 4 +-
17 games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild | 43 ++++++++++++++++++++++
18 2 files changed, 45 insertions(+), 2 deletions(-)
19
20 diff --git a/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch
21 index 566d4ee..56d63ac 100644
22 --- a/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch
23 +++ b/games-strategy/xbattleai/files/xbattleai-1.2.2-sandbox.patch
24 @@ -1,5 +1,5 @@
25 ---- Makefile.in
26 -+++ Makefile.in
27 +--- a/Makefile.in
28 ++++ b/Makefile.in
29 @@ -200,87 +200,87 @@
30 .PHONY: install-bin
31
32
33 diff --git a/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild b/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild
34 new file mode 100644
35 index 0000000..3cace4d
36 --- /dev/null
37 +++ b/games-strategy/xbattleai/xbattleai-1.2.2-r2.ebuild
38 @@ -0,0 +1,43 @@
39 +# Copyright 1999-2016 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Id$
42 +
43 +EAPI=6
44 +inherit eutils
45 +
46 +DESCRIPTION="A multi-player game of strategy and coordination"
47 +HOMEPAGE="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/"
48 +SRC_URI="https://inf.ug.edu.pl/~piotao/xbattle/mirror/www.lysator.liu.se/XBattleAI/${P}.tgz"
49 +
50 +LICENSE="xbattle"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE=""
54 +
55 +# Since this uses similar code and the same binary name as the original XBattle,
56 +# we want to make sure you can't install both at the same time
57 +RDEPEND="
58 + dev-lang/tcl:0
59 + dev-lang/tk:0
60 + x11-libs/libX11
61 + x11-libs/libXext
62 + !games-strategy/xbattle"
63 +DEPEND="${RDEPEND}
64 + app-text/rman
65 + x11-misc/imake
66 + x11-proto/xproto"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${P}-sandbox.patch
70 +)
71 +
72 +src_prepare() {
73 + default
74 + rm -f xbcs/foo.xbc~ || die
75 +}
76 +
77 +src_install() {
78 + DOCS="CONTRIBUTORS README README.AI TODO xbattle.dot" \
79 + default
80 + mv "${D}/usr/bin/"{,xb_}gauntletCampaign || die
81 +}