diff options
Diffstat (limited to 'games-strategy/freecol')
-rw-r--r-- | games-strategy/freecol/Manifest | 9 | ||||
-rw-r--r-- | games-strategy/freecol/files/freecol-0.11.5-gentoo.patch | 27 | ||||
-rw-r--r-- | games-strategy/freecol/files/freecol-0.11.6-gentoo.patch | 27 | ||||
-rw-r--r-- | games-strategy/freecol/freecol-0.11.5.ebuild | 79 | ||||
-rw-r--r-- | games-strategy/freecol/freecol-0.11.6.ebuild | 79 | ||||
-rw-r--r-- | games-strategy/freecol/metadata.xml | 11 |
6 files changed, 232 insertions, 0 deletions
diff --git a/games-strategy/freecol/Manifest b/games-strategy/freecol/Manifest new file mode 100644 index 000000000000..ee9c6700d086 --- /dev/null +++ b/games-strategy/freecol/Manifest @@ -0,0 +1,9 @@ +AUX freecol-0.11.5-gentoo.patch 1251 SHA256 c56baa4a1e50c69bf1bc98040d2aa243e61a76c4e597178dd234b83d89c9f48c SHA512 c94fa10fb210547b67b38562faa2d1e39f17264cdfc8819c5b6b856ba068757d88e29ea43bec573400a81b081965f687aea93335b62969b15122d9373290f224 WHIRLPOOL a590139a9afc6cc59baf723614b0108b4e64ea0c1d9a4f9f93b62ea49a21cf7abd4499e3f999393f7dfc07d514a5b702ff544eeadffccfa350f9fd6a8e66a75c +AUX freecol-0.11.6-gentoo.patch 1251 SHA256 c56baa4a1e50c69bf1bc98040d2aa243e61a76c4e597178dd234b83d89c9f48c SHA512 c94fa10fb210547b67b38562faa2d1e39f17264cdfc8819c5b6b856ba068757d88e29ea43bec573400a81b081965f687aea93335b62969b15122d9373290f224 WHIRLPOOL a590139a9afc6cc59baf723614b0108b4e64ea0c1d9a4f9f93b62ea49a21cf7abd4499e3f999393f7dfc07d514a5b702ff544eeadffccfa350f9fd6a8e66a75c +DIST freecol-0.11.5-src.zip 45280324 SHA256 99b31077fb3d7bfab44fcb900e0ea828a1dedf44fa814e05e166f240a68a5078 SHA512 1059c3b5c87c0f5ae07a99aaab1af2f73c7767a536aa2cff1b6c518b53d9ef6cb75713b4aeb601ab02bf946dcf451d01775b27cf82c457c0b9869e4cfeb55965 WHIRLPOOL 859c5097db4db88642fdfe0189bb731f47e7fe5118e943958698c351b21b6e0762a106b9541a8554633f770c7c2a0d4b57a8b7b26584e96be1277ec887721d67 +DIST freecol-0.11.6-src.zip 45002451 SHA256 52bbc35a8101cbfa770a004750c88969d6caf3f182733671a1e04dd97b86021a SHA512 fbfec95ad7128477d631be92b750d639d42bde3e052c94265590933e841adf66e670d5e1b2f6e8ef05629afeafded60cbb495ef93272ebc14ce7fd2f2eaa53de WHIRLPOOL 355c046419c4fe62a1564460145d13938ae7435a8cb518e1de156a5f575627249c5bccd79d56e8a2b3f156d8f0d291d2cd9c24e4c1d9b27efb9427a8a33acb07 +EBUILD freecol-0.11.5.ebuild 1678 SHA256 a0aafdd9daff4017ad3ffa2fd79bbe2f0c5f77eef1ce54afb91964a6cc466579 SHA512 a34dd87ef563003915d237eb613f0fb9ce807beb1272b22034d140572921c4951bf389a92d6c043db6ded1a4929bd54d9960faf8cb2eb896b3b86a4ff97094eb WHIRLPOOL c791b4691c5dd55ce64e9bf91d13a4226d6e7bd07f18c6c296caf94a6b0bb8aee1f125f3ef30cd15e075a07f3d32879040a1a18647343748170198fef8ca83a8 +EBUILD freecol-0.11.6.ebuild 1667 SHA256 4e554a47fbd530865a6cf7fb13b719bf0a616a60ee335d26af3470ca961d2fc4 SHA512 ff4be102e960c24f164d3bdfbdb43e3da599bf28d9ba946f89e99a8b72ee3d32a6497a357e001a5759f6be9b58b79fc438f1104a04bd5e8fd8ea33b366f80cb5 WHIRLPOOL 0883e2d43e588e69a1f9d45d3a7cbdd72e27cf8cf55aee2a1919f0a537f367e2a7151f65e1bf34b13f758ea1883d9f060cdf3b5dc3565ec536d0644d0f1eacca +MISC ChangeLog 3887 SHA256 bfa4fe3b0ae4f04fdda3c71efbf236bf681f741d588e93c25cffa612c333a32c SHA512 5ccf5306014e7f319e5d79a692aafcc75424a62c27353534863463c16b8f4f047a9447539322a431d79e9bb77581dcd9811679d3d68b7de92738d6716dc91ff2 WHIRLPOOL 8249dad1101de6addd9adbf7b122202b0659e87b7e234212191c00d98543e7735b4e051642eecda890e5726a9616772ab648b61b4804c1b846958f97931a97fb +MISC ChangeLog-2015 6861 SHA256 fb7dfba4c9ff13e44b9bf21d80200e0f79124210fabab346957b01803e0632e7 SHA512 4b3b4adf5f4b17b4c21476740b2abcaa62e1745e2caba1726ba58863c95f3369cc77da5c56c0117327730300f83d62313fe64ae7a7294a5206272454f7db3f92 WHIRLPOOL e8695669eca1255a3049091dd5dd0806ab46a75983c6287c8f427f770886831ccaa28fcb3eff4d8742a0e88be7f8cf06542922ac3e34f7a49261282414a5a888 +MISC metadata.xml 330 SHA256 5e9fc5b58af28e0361bbf6b2b650aa88ea9f4f69e94126d5feb173e8cc8b2ab8 SHA512 a626ad559d71b69d9f074fc7a223d226c3e911f21adecfaea48425f81fd81accf443e7518f16bbbadb1b92854f7c99e3eafda22ba0aa787bae3d44b02f8d71ab WHIRLPOOL 807868ea1247623d0c0b07366951cc3cca946871409ce1bf45fb108931b83e36424945f4103772dc22b9f9642e369a9b986ccc07ca891826a8557c31672a8c2c diff --git a/games-strategy/freecol/files/freecol-0.11.5-gentoo.patch b/games-strategy/freecol/files/freecol-0.11.5-gentoo.patch new file mode 100644 index 000000000000..c087193eb8c5 --- /dev/null +++ b/games-strategy/freecol/files/freecol-0.11.5-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/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.5.ebuild b/games-strategy/freecol/freecol-0.11.5.ebuild new file mode 100644 index 000000000000..39fc16767772 --- /dev/null +++ b/games-strategy/freecol/freecol-0.11.5.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 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.7 + app-arch/unzip + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.7 + ${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 splash.jpg + 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/freecol-0.11.6.ebuild b/games-strategy/freecol/freecol-0.11.6.ebuild new file mode 100644 index 000000000000..0fd3df020aa7 --- /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> |