# ChangeLog for games-board/jrisk
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-board/jrisk/ChangeLog,v 1.2 2005/08/07 13:11:53 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-board/jrisk/ChangeLog,v 1.3 2005/10/18 23:46:30 mr_bones_ Exp $
+
+*jrisk-1.0.8.2 (18 Oct 2005)
+
+ 18 Oct 2005; Michael Sterrett <mr_bones_@gentoo.org>
+ +jrisk-1.0.8.2.ebuild:
+ version bump
07 Aug 2005; Diego Pettenò <flameeyes@gentoo.org> jrisk-1.0.7.6.ebuild:
Marked ~amd64.
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 3d2412606d19331a85b819d0695c5646 ChangeLog 500
-MD5 0915c1b474d2731ec5eeb504175966a7 jrisk-1.0.7.6.ebuild 1288
MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 fde94a684becd849836388104353d6f2 ChangeLog 626
+MD5 995b9ba10a703764254e4efbdce45a9d jrisk-1.0.8.2.ebuild 1290
+MD5 0915c1b474d2731ec5eeb504175966a7 jrisk-1.0.7.6.ebuild 1288
+MD5 734a8168a5fd7e066dbf92a62cf2e060 files/digest-jrisk-1.0.8.2 72
MD5 1c7181125aed14e8e720dca1b7a2fc46 files/digest-jrisk-1.0.7.6 66
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFC9ggCj5H05b2HAEkRAr6XAJ9AuEk8CE8SY7DjaibwB73fY3n99gCghTNx
-Mnt3a9SPnbuSm1SUC3vKLmk=
-=AAQP
------END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/jrisk/jrisk-1.0.8.2.ebuild,v 1.1 2005/10/18 23:46:30 mr_bones_ Exp $
+
+inherit eutils games
+
+DESCRIPTION="The well-known board game, written in java"
+HOMEPAGE="http://jrisk.sourceforge.net"
+SRC_URI="mirror://sourceforge/jrisk/backup_of_Risk_${PV}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="jikes"
+
+RDEPEND=">=virtual/jre-1.4"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ >=dev-java/ant-core-1.4.1
+ jikes? ( >=dev-java/jikes-1.17 )"
+
+S=${WORKDIR}
+
+src_compile() {
+ local antflags="game"
+
+ if use jikes; then
+ antflags="${antflags} -Dbuild.compiler=jikes"
+ fi
+ ant ${antflags} || die "failed to build"
+ # change the cd directory of the executable
+ # has to be done after the ant compilation
+ sed \
+ -e "/dirname/ s:.*:cd \"${GAMES_DATADIR}/${PN}\":" \
+ "${S}"/build/game/FlashGUI.sh \
+ > "${T}"/jrisk \
+ || die "sed failed"
+}
+
+src_install() {
+ dogamesbin "${T}"/jrisk || die "dogamesbin failed"
+
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r build/game/* || die "doins failed"
+ rm -f "${D}${GAMES_DATADIR}"/${PN}/*.cmd
+
+ newicon build/game/resources/risk.png ${PN}.png
+ make_desktop_entry ${PN} "Risk"
+
+ prepgamesdirs
+}