summaryrefslogtreecommitdiff
path: root/games-strategy/freecol
diff options
context:
space:
mode:
authorPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
committerPalica <palica+gitlab@liguros.net>2020-06-23 22:35:08 +0200
commitecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch)
treeb89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /games-strategy/freecol
parent1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff)
downloadbaldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz
baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip
Updating liguros repo
Diffstat (limited to 'games-strategy/freecol')
-rw-r--r--games-strategy/freecol/Manifest1
-rw-r--r--games-strategy/freecol/files/commons-cli-1.3.patch22
-rw-r--r--games-strategy/freecol/files/freecol-0.11.6-gentoo.patch18
-rw-r--r--games-strategy/freecol/freecol-0.11.6-r1.ebuild63
-rw-r--r--games-strategy/freecol/metadata.xml12
5 files changed, 116 insertions, 0 deletions
diff --git a/games-strategy/freecol/Manifest b/games-strategy/freecol/Manifest
new file mode 100644
index 000000000000..bb4d63f2b73b
--- /dev/null
+++ b/games-strategy/freecol/Manifest
@@ -0,0 +1 @@
+DIST freecol-0.11.6-src.zip 45002451 BLAKE2B 1d0e56b43f63557e3a520d6d30b8831db6c0284ac6cfebf68f3a11264d8bcfc80b883c8d4fe82e4fbd992f02a82ffdf36ed102613010d28375b61cfa30874f68 SHA512 fbfec95ad7128477d631be92b750d639d42bde3e052c94265590933e841adf66e670d5e1b2f6e8ef05629afeafded60cbb495ef93272ebc14ce7fd2f2eaa53de
diff --git a/games-strategy/freecol/files/commons-cli-1.3.patch b/games-strategy/freecol/files/commons-cli-1.3.patch
new file mode 100644
index 000000000000..84fc6e5064c1
--- /dev/null
+++ b/games-strategy/freecol/files/commons-cli-1.3.patch
@@ -0,0 +1,22 @@
+From: Markus Koschany <apo@debian.org>
+Date: Sun, 20 Dec 2015 18:49:11 +0100
+Subject: commons-cli 1.3
+
+Forwarded: not-needed
+---
+ src/net/sf/freecol/FreeCol.java | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/net/sf/freecol/FreeCol.java b/src/net/sf/freecol/FreeCol.java
+index d05ae3d..99b9cdc 100644
+--- a/src/net/sf/freecol/FreeCol.java
++++ b/src/net/sf/freecol/FreeCol.java
+@@ -426,7 +426,7 @@ public final class FreeCol {
+ private static void handleArgs(String[] args) {
+ Options options = new Options();
+ final String help = Messages.message("cli.help");
+- final File dummy = new File("dummy");
++ final Class dummy = null;
+ final String argDirectory = Messages.message("cli.arg.directory");
+
+ // Help options.
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..770279b69030
--- /dev/null
+++ b/games-strategy/freecol/files/freecol-0.11.6-gentoo.patch
@@ -0,0 +1,18 @@
+diff -Naur a/build.xml b/build.xml
+--- a/build.xml 2015-10-17 07:54:48.000000000 +0100
++++ b/build.xml 2019-04-13 21:51:21.679100596 +0100
+@@ -162,14 +162,9 @@
+
+ <target name="manifest" depends="git-revision"
+ description="Creates the Manifest file.">
+- <manifestclasspath property="jar.classpath"
+- jarfile="Freecol.jar">
+- <classpath refid="libraries.classpath" />
+- </manifestclasspath>
+ <manifest file="${basedir}/src/MANIFEST.MF">
+ <attribute name="Created-By" value="FreeCol Team"/>
+ <attribute name="Main-Class" value="net.sf.freecol.FreeCol"/>
+- <attribute name="Class-Path" value="${jar.classpath}"/>
+ <attribute name="Product-Name" value="FreeCol"/>
+ <attribute name="Package-Title" value="FreeCol"/>
+ <attribute name="Package-Version" value="${FreeCol.Revision}"/>
diff --git a/games-strategy/freecol/freecol-0.11.6-r1.ebuild b/games-strategy/freecol/freecol-0.11.6-r1.ebuild
new file mode 100644
index 000000000000..fad44bf0d1eb
--- /dev/null
+++ b/games-strategy/freecol/freecol-0.11.6-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop java-pkg-2 java-ant-2
+
+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"
+
+# Rightly or wrongly, jogg and jorbis are bundled within Cortado but we
+# don't have packages for them anyway.
+
+CP_DEPEND="
+ dev-java/commons-cli:1
+ dev-java/cortado:0
+ dev-java/miglayout:0
+"
+
+DEPEND=">=virtual/jdk-1.8
+ app-arch/unzip
+ ${CP_DEPEND}"
+
+RDEPEND=">=virtual/jre-1.8
+ ${CP_DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+PATCHES=(
+ "${FILESDIR}"/commons-cli-1.3.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+)
+
+JAVA_ANT_REWRITE_CLASSPATH=true
+EANT_BUILD_TARGET=package
+
+src_prepare() {
+ default
+ rm -v jars/* || die
+ java-pkg-2_src_prepare
+}
+
+src_install() {
+ local datadir=/usr/share/${PN}
+
+ java-pkg_dojar FreeCol.jar
+ java-pkg_dolauncher ${PN} \
+ --pwd ${datadir} \
+ --main net.sf.freecol.FreeCol \
+ --java_args -Xmx512M
+
+ insinto ${datadir}
+ doins -r data schema
+
+ doicon data/${PN}.png
+ make_desktop_entry ${PN} FreeCol
+
+ dodoc README
+}
diff --git a/games-strategy/freecol/metadata.xml b/games-strategy/freecol/metadata.xml
new file mode 100644
index 000000000000..5ee97cef73f4
--- /dev/null
+++ b/games-strategy/freecol/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+ <origin>gentoo-staging</origin>
+</pkgmetadata>