No more bundled jars thanks to caster
authorTristan Heaven <tristan@gentoo.org>
Thu, 11 Jan 2007 19:17:36 +0000 (19:17 +0000)
committerTristan Heaven <tristan@gentoo.org>
Thu, 11 Jan 2007 19:17:36 +0000 (19:17 +0000)
Package-Manager: portage-2.1.2_rc4-r8

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

index 5f3aad8d232d85c68fb485f0a3e1d59fc25a5218..f1d6c70f94b27405f30ff2d43e3535b3b9b71ad3 100644 (file)
@@ -1,6 +1,12 @@
 # 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.10 2006/12/05 23:00:49 nyhm Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/freecol/ChangeLog,v 1.11 2007/01/11 19:17:36 nyhm Exp $
+
+*freecol-0.5.3-r1 (11 Jan 2007)
+
+  11 Jan 2007; Tristan Heaven <nyhm@gentoo.org>
+  +files/freecol-0.5.3-home.patch, +freecol-0.5.3-r1.ebuild:
+  No more bundled jars thanks to caster
 
 *freecol-0.5.3 (05 Dec 2006)
 
index b238b4fe1f0a94c30ab42f85c965c072f8cd5b09..a681ecbdfa6668c1fabc0c38205bc2d6fd42579a 100644 (file)
@@ -5,15 +5,23 @@ AUX freecol-0.5.3-build.patch 568 RMD160 98ac7013b4a9196a18858c1cc6373433b8383c0
 MD5 f017b07254962d322d7d771321bfe044 files/freecol-0.5.3-build.patch 568
 RMD160 98ac7013b4a9196a18858c1cc6373433b8383c02 files/freecol-0.5.3-build.patch 568
 SHA256 fca9bbe8f16c10593ddeaf7f32398fbd976a3c76b32c12589af8c062640397d4 files/freecol-0.5.3-build.patch 568
+AUX freecol-0.5.3-home.patch 931 RMD160 6d9b11226f93de1abf2f080acf1afe6ec3ce9f2f SHA1 5b2a6e9d30d0818db4abbcb203114fb7ad72c11d SHA256 6dd34ac819d1c3fc5b560c39cc431aa88f92874eed0023aa4a4b8a70e60fb13c
+MD5 5c8b81773ca70b44630b8f954a5a0856 files/freecol-0.5.3-home.patch 931
+RMD160 6d9b11226f93de1abf2f080acf1afe6ec3ce9f2f files/freecol-0.5.3-home.patch 931
+SHA256 6dd34ac819d1c3fc5b560c39cc431aa88f92874eed0023aa4a4b8a70e60fb13c files/freecol-0.5.3-home.patch 931
 DIST freecol-0.5.3-src.tar.gz 8239659 RMD160 ea9e48e7f3300359a4c235c99fb0a5235730943f SHA1 6af26395726c3a1f4d3c7675cbeb47427566ac22 SHA256 8532173044ec371bfc88376cbab2b9d5c638a216a065bb0f6351ee5b539ac0ac
+EBUILD freecol-0.5.3-r1.ebuild 1314 RMD160 837dfa2c359c2b0f82587668a3a9ed203ec29b2f SHA1 554596e3432b7bb5845615e8fe811447168b6f26 SHA256 1935f2bf06603613b4034e1faf68d0560c830f4f37e05c056d5695a86e15c5e3
+MD5 d9337d221eb9fc02e1d5978fc49e860e freecol-0.5.3-r1.ebuild 1314
+RMD160 837dfa2c359c2b0f82587668a3a9ed203ec29b2f freecol-0.5.3-r1.ebuild 1314
+SHA256 1935f2bf06603613b4034e1faf68d0560c830f4f37e05c056d5695a86e15c5e3 freecol-0.5.3-r1.ebuild 1314
 EBUILD freecol-0.5.3.ebuild 1105 RMD160 f530dae43502263d1225d50c8face641e2822f24 SHA1 ad019d8d8a5ad65b78da67febc9d51cc8afd3b6b SHA256 d3bbea13c44606ab379261b2bc059311e73b5cd89fe87a23fc80b9ac295b5fcb
 MD5 04fb7d2346cb5e5a5009c6082b1ec81c freecol-0.5.3.ebuild 1105
 RMD160 f530dae43502263d1225d50c8face641e2822f24 freecol-0.5.3.ebuild 1105
 SHA256 d3bbea13c44606ab379261b2bc059311e73b5cd89fe87a23fc80b9ac295b5fcb freecol-0.5.3.ebuild 1105
-MISC ChangeLog 1706 RMD160 d8f7745d5258f0cfaab09c4c2c4699a0750d8074 SHA1 b635ba636289e043f8f77bbbe7f316491f7c5f54 SHA256 135f91d7ff388399a2bf497c0112a819c2fec52e731e11ebd98c1b4d772cee57
-MD5 1980d0312a5107345ec2845c05c040f8 ChangeLog 1706
-RMD160 d8f7745d5258f0cfaab09c4c2c4699a0750d8074 ChangeLog 1706
-SHA256 135f91d7ff388399a2bf497c0112a819c2fec52e731e11ebd98c1b4d772cee57 ChangeLog 1706
+MISC ChangeLog 1889 RMD160 29f1cc8c8557a1eaef5e0e76dc603d286b645bc5 SHA1 61a6c0fcde5ff5ce29dc9dc031623fd7a9aae97b SHA256 88d5f2620b2e35672dbd7a891427ef06e20a18fa2be72157e746c8d1ba906cda
+MD5 3d750b5b1113365569439b3b21316d57 ChangeLog 1889
+RMD160 29f1cc8c8557a1eaef5e0e76dc603d286b645bc5 ChangeLog 1889
+SHA256 88d5f2620b2e35672dbd7a891427ef06e20a18fa2be72157e746c8d1ba906cda ChangeLog 1889
 MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
@@ -21,10 +29,13 @@ SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata
 MD5 3788c05960c7203cf68d43244f8e75ce files/digest-freecol-0.5.3 256
 RMD160 ebd19f51fdd5ddeff4af728af046da85619e7a9a files/digest-freecol-0.5.3 256
 SHA256 604c593df6cd3180d9f62217762389f45bcba889e998cd460ec8571b873ee344 files/digest-freecol-0.5.3 256
+MD5 3788c05960c7203cf68d43244f8e75ce files/digest-freecol-0.5.3-r1 256
+RMD160 ebd19f51fdd5ddeff4af728af046da85619e7a9a files/digest-freecol-0.5.3-r1 256
+SHA256 604c593df6cd3180d9f62217762389f45bcba889e998cd460ec8571b873ee344 files/digest-freecol-0.5.3-r1 256
 -----BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
+Version: GnuPG v2.0.1 (GNU/Linux)
 
-iD8DBQFFdfo9dz7hIScOURERArcyAKDHDnMH43YuI2AAP5fJYbHh4EJu5gCgiWK/
-BRj4ZQLg2bcxi3TuprmIRr4=
-=f4f8
+iD8DBQFFpo1Xdz7hIScOURERAmzxAKCv4pxmQdON9HCNTS6FVy0/acZpOACgtgU2
+ByXW+bgMn9VDh/39Oa3Gmqg=
+=svaN
 -----END PGP SIGNATURE-----
diff --git a/games-strategy/freecol/files/digest-freecol-0.5.3-r1 b/games-strategy/freecol/files/digest-freecol-0.5.3-r1
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-home.patch b/games-strategy/freecol/files/freecol-0.5.3-home.patch
new file mode 100644 (file)
index 0000000..01ee1f4
--- /dev/null
@@ -0,0 +1,22 @@
+--- src/net/sf/freecol/common/logging/DefaultHandler.java
++++ src/net/sf/freecol/common/logging/DefaultHandler.java
+@@ -21,7 +21,7 @@
+     public static final String  LICENSE = "http://www.gnu.org/licenses/gpl.html";
+     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;
+--- src/net/sf/freecol/FreeCol.java
++++ src/net/sf/freecol/FreeCol.java
+@@ -83,7 +83,7 @@
+         if (!saveDirectory.exists()) {
+             saveDirectory = new File("save");
+         } else {        
+-            saveDirectory = new File(saveDirectory, "freecol" + FILE_SEP + "save");
++            saveDirectory = new File(saveDirectory, ".freecol" + FILE_SEP + "save");
+         }
+         
+         handleArgs(args);
diff --git a/games-strategy/freecol/freecol-0.5.3-r1.ebuild b/games-strategy/freecol/freecol-0.5.3-r1.ebuild
new file mode 100644 (file)
index 0000000..ed6bb0b
--- /dev/null
@@ -0,0 +1,62 @@
+# Copyright 1999-2007 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-r1.ebuild,v 1.1 2007/01/11 19:17:36 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="x86"
+IUSE=""
+
+RDEPEND="dev-java/higlayout"
+DEPEND="${RDEPEND}
+       >=virtual/jdk-1.5
+       dev-java/ant"
+RDEPEND="${RDEPEND}
+       >=virtual/jre-1.5"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       rm -rf FreeCol.jar src/classes jars/*
+
+       epatch \
+               "${FILESDIR}"/${P}-build.patch \
+               "${FILESDIR}"/${P}-home.patch
+
+       sed -i "/Class-Path/s:jars/.*$:$(java-pkg_getjars higlayout):" \
+               src/MANIFEST.MF \
+               || die "sed failed"
+
+       cd jars
+       java-pkg_jar-from higlayout
+}
+
+src_compile() {
+       eant
+}
+
+src_install () {
+       insinto "${GAMES_DATADIR}"/${PN}
+       doins -r data || die "doins failed"
+
+       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
+
+       dodoc README
+       doicon ${PN}.xpm
+       make_desktop_entry ${PN} FreeCol ${PN}.xpm
+       prepgamesdirs
+}