ChangeLog

# ChangeLog for games-strategy/xbattle
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/xbattle/ChangeLog,v 1.9 2007/03/12 18:17:53 genone Exp $

12 Mar 2007; Marius Mauch xbattle-5.4.1.ebuild:
Replacing einfo with elog

22 Feb 2007; Piotr JaroszyƄski ChangeLog:
Transition to Manifest2.

06 Dec 2006; Chris Gianelloni xbattle-5.4.1.ebuild:
Remove old virtual/x11 dependency.

22 Mar 2006; Chris Gianelloni xbattle-5.4.1.ebuild:
Added blocker on games-strategy/xbattleai.

22 Mar 2006; Chris Gianelloni xbattle-5.4.1.ebuild:
Changed RDEPENDS to RDEPEND.

14 Mar 2006; Michael Sterrett xbattle-5.4.1.ebuild:
modular X deps

29 Dec 2004; Michael Sterrett xbattle-5.4.1.ebuild:
official homepage went away so use a replacement (bug #72885); tidy

*xbattle-5.4.1 (25 Sep 2003)

25 Sep 2003; Michael Sterrett xbattle-5.4.1.ebuild:
initial commit; ebuild based on the one submitted by Marc Bevand via bug 29224

Manifest

DIST xbattle-5.4.1.tar.gz 128982 RMD160 566b6bee4ffcd16b545d30a0b7604d9416d87076 SHA1 cb58238d7e9e9aa5a03e0fd0aff3c8c68c15a2c5 SHA256 9de38df361c87d0fdc65e13cf2fa3bb28dc22a8d04cc94f2f08e6cd9457ee180
EBUILD xbattle-5.4.1.ebuild 1452 RMD160 0e29d2abc4ca4cf8f68384f26b66a91ec8c7c8b8 SHA1 a90f1a61dd16ca572bbedbd1b61df302ae2b9da4 SHA256 a57aac371ee9e4fb3ecb16eae7f5cd5581abf6174f0fe821b92871f8397f53ee
MISC ChangeLog 1183 RMD160 4200e6fb0945446bd354aa5afe9c4f32f58528d3 SHA1 0d8e143411ce0171c9b4b9bdef1e9500bfa21514 SHA256 54605901012bb1114d5674f850fb5f8f4fe95b6c18877a96eeead6917ef17473
MISC metadata.xml 1360 RMD160 21f3335fb7d0a292d70c9e5062d189e5573a786a SHA1 46583a184881e41a1eff4f8693e52085d0c54790 SHA256 49efcf76d81f70450581242e49c24ace5ee353ee2ccd308aba553447c927efda

metadata.xml




games

mr_bones_@gentoo.org
Michael Sterrett


From the HOMEPAGE:
XBattle is a concurrent multi-player arcade/strategy game that captures
the dynamics of a wide range of military situations through numerous
options. The game board is a matrix of game cells which can be occupied
by troops of various colors, with troop strength indicated by the size of
colored markers within a cell. Troops are commanded by clicking the mouse
near the edge of an occupied cell in the direction that movement is to take
place. XBattle is concurrent, so that commands are given continuously by
all players without waiting for turns. A command will be acknowledged by
the appearance of a command vector, and thereafter, in each update cycle,
a certain proportion of the troops will move from the source cell to the
destination cell. In this way, troops can be slowly redistributed via
supply lines which steadily deliver troops to their endpoints. Troops
of different colors engage in battle whenever they come to occupy the
same cell. A wide variety of options are available for configuring troop
movement, distribution, and production.

xbattle-5.4.1.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/xbattle/xbattle-5.4.1.ebuild,v 1.10 2007/03/12 18:17:53 genone Exp $

inherit games

DESCRIPTION="A multi-player game of strategy and coordination"
HOMEPAGE="http://www.cgl.uwaterloo.ca/~jdsteele/xbattle.html"
SRC_URI="ftp://cns-ftp.bu.edu/pub/xbattle/${P}.tar.gz"

LICENSE="xbattle"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 mips ppc sparc x86"
IUSE=""

RDEPEND="x11-libs/libXext
x11-libs/libX11
!games-strategy/xbattleai"
DEPEND="${RDEPEND}
x11-proto/xproto
x11-libs/libX11
app-text/rman
x11-misc/imake"

src_unpack() {
unpack ${A}
cd "${S}"

sed -i \
-e "s:/export/home/lesher/:${GAMES_DATADIR}/${PN}/:" Imakefile \
|| die "sed Imakefile failed"
}

src_compile() {
xmkmf || die "xmkmf failed"
emake CDEBUGFLAGS="${CFLAGS}" || die "emake failed"
}

src_install() {
dogamesbin xbattle || die "dogamesbin failed"
newgamesbin tutorial1 xbattle-tutorial1 || die "newgamesbin failed"
newgamesbin tutorial2 xbattle-tutorial2 || die "newgamesbin failed"
dodir "${GAMES_DATADIR}/${PN}"
cp -r xbas/ xbos/ xbts/ "${D}${GAMES_DATADIR}/${PN}/" || die "cp failed"
newman xbattle.man xbattle.6
dodoc README xbattle.dot
prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst
elog 'You may be interested by these tutorials:'
elog ' xbattle-tutorial1'
elog ' xbattle-tutorial2'
}