summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2009-04-09 17:39:39 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2009-04-09 17:39:39 +0000
commit3f24e9b7aace7aae75a9f01e3afa1f2678088344 (patch)
treed8b3168769a11b27ba56d3394b255846e0a5edae /games-strategy/freecol
parentMoving net-www/moonlight to www-plugins/moonlight per bug 265569. (diff)
downloadgentoo-2-3f24e9b7aace7aae75a9f01e3afa1f2678088344.tar.gz
gentoo-2-3f24e9b7aace7aae75a9f01e3afa1f2678088344.tar.bz2
gentoo-2-3f24e9b7aace7aae75a9f01e3afa1f2678088344.zip
version bump (bug #255139)
(Portage version: 2.1.6.7/cvs/Linux i686)
Diffstat (limited to 'games-strategy/freecol')
-rw-r--r--games-strategy/freecol/ChangeLog11
-rw-r--r--games-strategy/freecol/files/freecol-0.8.1-home.patch11
-rw-r--r--games-strategy/freecol/freecol-0.7.4.ebuild6
-rw-r--r--games-strategy/freecol/freecol-0.8.1.ebuild68
4 files changed, 91 insertions, 5 deletions
diff --git a/games-strategy/freecol/ChangeLog b/games-strategy/freecol/ChangeLog
index e6c8b3f1d666..9755cf2e73aa 100644
--- a/games-strategy/freecol/ChangeLog
+++ b/games-strategy/freecol/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-strategy/freecol
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.30 2008/06/16 20:48:23 nyhm Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.31 2009/04/09 17:39:39 mr_bones_ Exp $
+
+*freecol-0.8.1 (09 Apr 2009)
+
+ 09 Apr 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/freecol-0.8.1-home.patch, freecol-0.7.4.ebuild,
+ +freecol-0.8.1.ebuild:
+ version bump (bug #255139)
*freecol-0.7.4 (16 Jun 2008)
diff --git a/games-strategy/freecol/files/freecol-0.8.1-home.patch b/games-strategy/freecol/files/freecol-0.8.1-home.patch
new file mode 100644
index 000000000000..c2af74e48f3b
--- /dev/null
+++ b/games-strategy/freecol/files/freecol-0.8.1-home.patch
@@ -0,0 +1,11 @@
+--- src/net/sf/freecol/common/logging/DefaultHandler.java
++++ src/net/sf/freecol/common/logging/DefaultHandler.java
+@@ -22,7 +22,7 @@
+
+ public static final String REVISION = "$Revision: 1.1 $";
+
+- private static final String fileName = new String("FreeCol.log");
++ private static final String fileName = new String(System.getProperty("user.home") + "/.freecol/FreeCol.log");
+
+ private FileWriter fileWriter;
+
diff --git a/games-strategy/freecol/freecol-0.7.4.ebuild b/games-strategy/freecol/freecol-0.7.4.ebuild
index 42339e27e7b7..85db0b5b3286 100644
--- a/games-strategy/freecol/freecol-0.7.4.ebuild
+++ b/games-strategy/freecol/freecol-0.7.4.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.7.4.ebuild,v 1.1 2008/06/16 20:48:23 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.7.4.ebuild,v 1.2 2009/04/09 17:39:39 mr_bones_ Exp $
WANT_ANT_TASKS="ant-nodeps"
inherit eutils java-pkg-2 java-ant-2 games
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
IUSE="test"
RDEPEND="dev-java/higlayout"
diff --git a/games-strategy/freecol/freecol-0.8.1.ebuild b/games-strategy/freecol/freecol-0.8.1.ebuild
new file mode 100644
index 000000000000..d6fbafbf4987
--- /dev/null
+++ b/games-strategy/freecol/freecol-0.8.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/freecol-0.8.1.ebuild,v 1.1 2009/04/09 17:39:39 mr_bones_ Exp $
+
+WANT_ANT_TASKS="ant-nodeps"
+inherit eutils java-pkg-2 java-ant-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 ~x86"
+IUSE="test"
+
+RDEPEND="dev-java/higlayout"
+DEPEND="${RDEPEND}
+ test? (
+ dev-java/ant-junit
+ dev-java/ant-trax
+ )
+ >=virtual/jdk-1.6"
+RDEPEND="${RDEPEND}
+ >=virtual/jre-1.6"
+
+S=${WORKDIR}/${PN}
+
+pkg_setup() {
+ games_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -fv $(find . -name '*.jar')
+ java-pkg_jar-from --into jars higlayout
+ epatch "${FILESDIR}"/${P}-home.patch
+ sed -i \
+ -e "/Class-Path/s:jars/.*\":$(java-pkg_getjars higlayout)\":" \
+ build.xml \
+ || die "sed failed"
+}
+
+src_compile() {
+ eant
+}
+
+src_test() {
+ java-pkg_jar-from --into test/lib junit
+ ANT_TASKS="ant-junit ant-trax ant-nodeps" eant testall
+}
+
+src_install () {
+ java-pkg_jarinto "${GAMES_DATADIR}"/${PN}
+ java-pkg_dojar FreeCol.jar
+ java-pkg_dolauncher ${PN} \
+ -into "${GAMES_PREFIX}" \
+ --pwd "${GAMES_DATADIR}"/${PN} \
+ --java_args -Xmx512M
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data || die "doins failed"
+ doicon ${PN}.xpm
+ make_desktop_entry ${PN} FreeCol
+ dodoc README
+ prepgamesdirs
+}