summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-strategy/freecol/ChangeLog10
-rw-r--r--games-strategy/freecol/files/digest-freecol-0.5.33
-rw-r--r--games-strategy/freecol/files/freecol-0.5.3-build.patch18
-rw-r--r--games-strategy/freecol/freecol-0.5.3.ebuild51
4 files changed, 81 insertions, 1 deletions
diff --git a/games-strategy/freecol/ChangeLog b/games-strategy/freecol/ChangeLog
index 7b86ba1a9a8a..5f3aad8d232d 100644
--- a/games-strategy/freecol/ChangeLog
+++ b/games-strategy/freecol/ChangeLog
@@ -1,6 +1,14 @@
# 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
diff --git a/games-strategy/freecol/files/digest-freecol-0.5.3 b/games-strategy/freecol/files/digest-freecol-0.5.3
new file mode 100644
index 000000000000..480156102809
--- /dev/null
+++ b/games-strategy/freecol/files/digest-freecol-0.5.3
@@ -0,0 +1,3 @@
+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
diff --git a/games-strategy/freecol/files/freecol-0.5.3-build.patch b/games-strategy/freecol/files/freecol-0.5.3-build.patch
new file mode 100644
index 000000000000..e489b53e8234
--- /dev/null
+++ b/games-strategy/freecol/files/freecol-0.5.3-build.patch
@@ -0,0 +1,18 @@
+--- 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>
+
+ <!-- TASK DEFINITIONS -->
++ <!--
+ <taskdef name="jsmoothgen"
+ classname="net.charabia.jsmoothgen.ant.JSmoothGen"
+ classpath="${freecol.build.dir}/jars/jsmoothgen-ant.jar"
+@@ -29,6 +30,7 @@
+ classname="com.izforge.izpack.ant.IzPackTask"
+ classpath="${freecol.build.dir}/jars/standalone-compiler.jar"
+ />
++ -->
+
+ <target name="init" unless="TSTAMP">
+ <tstamp/>
diff --git a/games-strategy/freecol/freecol-0.5.3.ebuild b/games-strategy/freecol/freecol-0.5.3.ebuild
new file mode 100644
index 000000000000..83e6f9cd767b
--- /dev/null
+++ b/games-strategy/freecol/freecol-0.5.3.ebuild
@@ -0,0 +1,51 @@
+# 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
+}