# ChangeLog for games-strategy/freecol
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.9 2006/11/28 18:10:20 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.10 2006/12/05 23:00:49 nyhm Exp $
+
+*freecol-0.5.3 (05 Dec 2006)
+
+ 05 Dec 2006; Tristan Heaven <nyhm@gentoo.org>
+ -files/freecol-0.5.1-build.patch, -files/freecol-0.5.2-build.patch,
+ +files/freecol-0.5.3-build.patch, -freecol-0.4.0.ebuild,
+ -freecol-0.5.1.ebuild, -freecol-0.5.2.ebuild, +freecol-0.5.3.ebuild:
+ Version bump
28 Nov 2006; Tristan Heaven <nyhm@gentoo.org> freecol-0.5.2.ebuild:
Needs jdk-1.5 to build
--- /dev/null
+MD5 27103eb03dae963ad72dd5ed0354434d freecol-0.5.3-src.tar.gz 8239659
+RMD160 ea9e48e7f3300359a4c235c99fb0a5235730943f freecol-0.5.3-src.tar.gz 8239659
+SHA256 8532173044ec371bfc88376cbab2b9d5c638a216a065bb0f6351ee5b539ac0ac freecol-0.5.3-src.tar.gz 8239659
--- /dev/null
+--- build.xml.old 2006-10-07 12:09:28.000000000 +0200
++++ build.xml 2006-10-07 12:10:53.000000000 +0200
+@@ -21,6 +21,7 @@
+ </path>\r
+ \r
+ <!-- TASK DEFINITIONS -->\r
++ <!--\r
+ <taskdef name="jsmoothgen"\r
+ classname="net.charabia.jsmoothgen.ant.JSmoothGen"\r
+ classpath="${freecol.build.dir}/jars/jsmoothgen-ant.jar"\r
+@@ -29,6 +30,7 @@
+ classname="com.izforge.izpack.ant.IzPackTask"\r
+ classpath="${freecol.build.dir}/jars/standalone-compiler.jar"\r
+ />\r
++ -->\r
+ \r
+ <target name="init" unless="TSTAMP">\r
+ <tstamp/>\r
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.5.3.ebuild,v 1.1 2006/12/05 23:00:49 nyhm Exp $
+
+inherit eutils java-ant-2 java-pkg-2 games
+
+DESCRIPTION="An open source clone of the game Colonization"
+HOMEPAGE="http://www.freecol.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.5"
+DEPEND=">=virtual/jdk-1.5
+ dev-java/ant"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ rm -f FreeCol.jar
+
+ sed -i \
+ -e '/saveDirectory/s/freecol/.freecol/' \
+ src/net/sf/freecol/FreeCol.java \
+ || die "sed failed"
+
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ eant || die
+}
+
+src_install () {
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r FreeCol.jar data/ jars/ || die "doins failed"
+
+ games_make_wrapper ${PN} "java -Xmx512M -jar FreeCol.jar" \
+ "${GAMES_DATADIR}"/${PN}
+
+ dodoc README
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN} FreeCol ${PN}.xpm
+ prepgamesdirs
+}