summaryrefslogtreecommitdiff
path: root/games-strategy/freecol
diff options
context:
space:
mode:
Diffstat (limited to 'games-strategy/freecol')
-rw-r--r--games-strategy/freecol/Manifest4
-rw-r--r--games-strategy/freecol/files/freecol-0.11.6-gentoo.patch27
-rw-r--r--games-strategy/freecol/freecol-0.11.6.ebuild79
-rw-r--r--games-strategy/freecol/metadata.xml11
4 files changed, 121 insertions, 0 deletions
diff --git a/games-strategy/freecol/Manifest b/games-strategy/freecol/Manifest
new file mode 100644
index 000000000000..9a9aef337104
--- /dev/null
+++ b/games-strategy/freecol/Manifest
@@ -0,0 +1,4 @@
+AUX freecol-0.11.6-gentoo.patch 1251 BLAKE2B 7de241498bba19c665812236a7898cf8295ffa9be0123a56ff0b65c85e9173dbfb3e458c26c632538230035320d9b93f0ba57b4eb6e8cf606c82b20befcf11ac SHA512 c94fa10fb210547b67b38562faa2d1e39f17264cdfc8819c5b6b856ba068757d88e29ea43bec573400a81b081965f687aea93335b62969b15122d9373290f224
+DIST freecol-0.11.6-src.zip 45002451 BLAKE2B 1d0e56b43f63557e3a520d6d30b8831db6c0284ac6cfebf68f3a11264d8bcfc80b883c8d4fe82e4fbd992f02a82ffdf36ed102613010d28375b61cfa30874f68 SHA512 fbfec95ad7128477d631be92b750d639d42bde3e052c94265590933e841adf66e670d5e1b2f6e8ef05629afeafded60cbb495ef93272ebc14ce7fd2f2eaa53de
+EBUILD freecol-0.11.6.ebuild 1669 BLAKE2B c1250ab2b190f052f838af33c5de61c1f3974e38c8cdd3c9a6b9237b71a60732a1734f1654d6659a25bac29bd54f930641659dfc9d87b8d5af4444a598a4dcb4 SHA512 f17d732be0523537ac0a467da97a54063b16804013525caa2893497c0b03cfebcd536fc6ddc99206962fac6d1f2066ac71146e1c75422036567e439bdad36b34
+MISC metadata.xml 330 BLAKE2B ae0631cafebbd8fdebafaf416d6a8c7ca0152f83915aecca6366b74026523914e60761219eab4034401673fce1e54ea3c548bcbae7a084f301aaf6922569e61b SHA512 a626ad559d71b69d9f074fc7a223d226c3e911f21adecfaea48425f81fd81accf443e7518f16bbbadb1b92854f7c99e3eafda22ba0aa787bae3d44b02f8d71ab
diff --git a/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch b/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch
new file mode 100644
index 000000000000..c087193eb8c5
--- /dev/null
+++ b/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch
@@ -0,0 +1,27 @@
+--- build.xml.orig 2015-12-09 21:10:08.272361404 -0500
++++ build.xml 2015-12-09 21:11:26.189663216 -0500
+@@ -36,12 +36,11 @@
+
+ <path id="libraries.classpath">
+ <!-- MigLayout manager -->
+- <pathelement location="${basedir}/${miglayout-swing.jar}"/>
+- <pathelement location="${basedir}/${miglayout-core.jar}"/>
++ <pathelement location="${miglayout.jar}"/>
+ <!-- Command line processor -->
+- <pathelement location="${basedir}/${cli.jar}"/>
++ <pathelement location="${cli.jar}"/>
+ <!-- Cortado Video Applet -->
+- <pathelement location="${basedir}/${cortado.jar}"/>
++ <pathelement location="${cortado.jar}"/>
+ <!-- JOgg/JOrbis libraries -->
+ <pathelement location="${basedir}/jars/jogg-0.0.17.jar"/>
+ <pathelement location="${basedir}/jars/jorbis-0.0.17.jar"/>
+@@ -162,7 +161,7 @@
+
+ <target name="manifest" depends="git-revision"
+ description="Creates the Manifest file.">
+- <manifestclasspath property="jar.classpath"
++ <manifestclasspath maxParentLevels="50" property="jar.classpath"
+ jarfile="Freecol.jar">
+ <classpath refid="libraries.classpath" />
+ </manifestclasspath>
diff --git a/games-strategy/freecol/freecol-0.11.6.ebuild b/games-strategy/freecol/freecol-0.11.6.ebuild
new file mode 100644
index 000000000000..8d7df3ab2726
--- /dev/null
+++ b/games-strategy/freecol/freecol-0.11.6.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+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.zip"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEP="dev-java/jsr173
+ dev-java/wstx:3.2
+ dev-java/commons-cli:1
+ dev-java/cortado
+ dev-java/miglayout"
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.8
+ ${COMMON_DEP}"
+
+S=${WORKDIR}/${PN}
+
+java_prepare() {
+ # jorbis isn't in portage yet
+ rm jars/{commons-cli-1.1,cortado-0.6.0,miglayout-core-4.2,miglayout-swing-4.2}.jar || die
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_prepare() {
+ java-pkg-2_src_prepare
+}
+
+src_configure() {
+ java-ant-2_src_configure
+}
+
+src_compile() {
+ EANT_BUILD_TARGET=package
+ EANT_EXTRA_ARGS="
+ -Dstax.jar=$(java-pkg_getjars jsr173)
+ -Dwoodstox.jar=$(java-pkg_getjars wstx-3.2)
+ -Dcli.jar=$(java-pkg_getjars commons-cli-1)
+ -Dmiglayout.jar=$(java-pkg_getjars miglayout)
+ -Dcortado.jar=$(java-pkg_getjars cortado)
+ "
+ java-pkg-2_src_compile
+}
+
+src_install() {
+ java-pkg_jarinto "${GAMES_DATADIR}"/${PN}
+ java-pkg_dojar FreeCol.jar
+ java-pkg_dolauncher ${PN} \
+ -into "${GAMES_PREFIX}" \
+ --pwd "${GAMES_DATADIR}"/${PN} \
+ --jar FreeCol.jar \
+ --java_args -Xmx512M
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r data schema
+ doicon data/${PN}.png
+ make_desktop_entry ${PN} FreeCol
+ dodoc README
+ prepgamesdirs
+}
+
+pkg_setup() {
+ games_pkg_setup
+ java-pkg-2_pkg_setup
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ java-pkg-2_pkg_preinst
+}
diff --git a/games-strategy/freecol/metadata.xml b/games-strategy/freecol/metadata.xml
new file mode 100644
index 000000000000..683a3878d849
--- /dev/null
+++ b/games-strategy/freecol/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">freecol</remote-id>
+ </upstream>
+</pkgmetadata>