Version bump
authorTristan Heaven <tristan@gentoo.org>
Tue, 5 Dec 2006 23:00:49 +0000 (23:00 +0000)
committerTristan Heaven <tristan@gentoo.org>
Tue, 5 Dec 2006 23:00:49 +0000 (23:00 +0000)
Package-Manager: portage-2.1.2_rc2-r5

games-strategy/freecol/ChangeLog
games-strategy/freecol/files/digest-freecol-0.5.3 [new file with mode: 0644]
games-strategy/freecol/files/freecol-0.5.3-build.patch [new file with mode: 0644]
games-strategy/freecol/freecol-0.5.3.ebuild [new file with mode: 0644]

index 7b86ba1a9a8a5b106ed42593c46b4a6069de7316..5f3aad8d232d85c68fb485f0a3e1d59fc25a5218 100644 (file)
@@ -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 (file)
index 0000000..4801561
--- /dev/null
@@ -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 (file)
index 0000000..e489b53
--- /dev/null
@@ -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>\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
diff --git a/games-strategy/freecol/freecol-0.5.3.ebuild b/games-strategy/freecol/freecol-0.5.3.ebuild
new file mode 100644 (file)
index 0000000..83e6f9c
--- /dev/null
@@ -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
+}