public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Florian Schmaus" <flow@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/freecol/
Date: Sat, 01 Feb 2025 09:18:23 +0000 (UTC)	[thread overview]
Message-ID: <1738401462.0449946dd842aa16005927ec4b66f28eba2363f5.flow@gentoo> (raw)

commit:     0449946dd842aa16005927ec4b66f28eba2363f5
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Thu Nov  7 20:32:20 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 09:17:42 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0449946d

games-strategy/freecol: add 1.2.0, improve ebuild

- use upstream desktop file
- use upstream XPMs
- fix LICENSE
- update & shorten DOCS
- remove "An" from the DESCRIPTION
- remove trailing slash from HOMEPAGE
- shorten SRC_URI (thanks vaukai!)
- change indent style to be more concise
- add comment about splash screen
- add comment about GH distfiles

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 games-strategy/freecol/Manifest             |  1 +
 games-strategy/freecol/freecol-1.2.0.ebuild | 75 +++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/games-strategy/freecol/Manifest b/games-strategy/freecol/Manifest
index 593d31100cdc..ce8c104ac7f6 100644
--- a/games-strategy/freecol/Manifest
+++ b/games-strategy/freecol/Manifest
@@ -1 +1,2 @@
 DIST freecol-1.0.0-src.zip 159875314 BLAKE2B 6153be9553ded4c2a1f9635d67e48165d07b5d1634f26a44d2f01195e1610d6cb525ffa60368f3225cdf62ffd7751242942fd86b5735455e7396deca68d8350d SHA512 68b313b42fc38e6ea95a4a04ca5af534c4487709fb036018d6d09f6de3455325031ad1fd0ae4c6415cbbeebd3f181e598a2602ad7be6cca9150ad9523b8bb3c2
+DIST freecol-1.2.0.zip 939241982 BLAKE2B c938d9862e290af50061e01986df1a384d4d8b2adde00d8b5b109a1801b175da4506b5e25967cdae6da86a8915edf2b8bcf916d4fd6b3859d0ddf6aed46beb5f SHA512 850dbbbdc615b0f08da01735a46bcd787361a29febfc9e7ffe1c55808084be7027082895bf47b3a0aacbf19a49390e143a7a7d3bd9f37ea3bfdb7ca7b83d446a

diff --git a/games-strategy/freecol/freecol-1.2.0.ebuild b/games-strategy/freecol/freecol-1.2.0.ebuild
new file mode 100644
index 000000000000..82d5ae9b33db
--- /dev/null
+++ b/games-strategy/freecol/freecol-1.2.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit desktop java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Open source clone of the game Colonization"
+HOMEPAGE="https://www.freecol.org"
+# GH distfiles are over 3 times the size
+SRC_URI="https://downloads.sourceforge.net/project/freecol/${PN}/${P}/${P}-src.zip"
+S="${WORKDIR}/${PN}"
+
+LICENSE="CC-BY-SA-4.0 GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+CP_DEPEND="
+	dev-java/commons-cli:0
+	dev-java/cortado:0
+	dev-java/findbugs-annotations:0
+	dev-java/miglayout:5
+"
+DEPEND="
+	>=virtual/jdk-11:*
+	${CP_DEPEND}
+"
+# error: variables in try-with-resources are not supported in -source 8
+RDEPEND="
+	>=virtual/jre-11:*
+	${CP_DEPEND}
+"
+BDEPEND="app-arch/unzip"
+
+DOCS=( {CHANGELOG,README,SECURITY}.md )
+
+JAVA_JAR_FILENAME="FreeCol.jar"
+JAVA_RESOURCE_DIRS="resources"
+JAVA_SRC_DIR="src"
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_RUN_ONLY="net.sf.freecol.AllTests"
+JAVA_TEST_SRC_DIR="test/src"
+
+src_prepare() {
+	java-pkg-2_src_prepare
+	java-pkg_clean
+	mkdir -p "${JAVA_RESOURCE_DIRS}/META-INF" || die
+	cp build/splash.jpg "${JAVA_RESOURCE_DIRS}" || die # install splash screen
+	grep Main-Class src/MANIFEST.MF \
+		> "${JAVA_RESOURCE_DIRS}/META-INF/MANIFEST.MF" || die
+}
+
+src_install() {
+	java-pkg-simple_src_install
+
+	local datadir=/usr/share/${PN}
+
+	# launcher of java-pkg-simple.eclass seems not to support --pwd
+	java-pkg_dolauncher ${PN} \
+		--pwd ${datadir} \
+		--main net.sf.freecol.FreeCol \
+		--java_args -Xmx2000M
+
+	insinto ${datadir}
+	doins -r data schema
+
+	doicon -s 32 packaging/common/${PN}.xpm
+	doicon -s 64 packaging/common/${PN}_64x64.xpm
+	newicon packaging/common/${PN}_90x90.xpm ${PN}.xpm
+
+	domenu packaging/common/${PN}.desktop
+}


             reply	other threads:[~2025-02-01  9:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-01  9:18 Florian Schmaus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-01  9:18 [gentoo-commits] repo/gentoo:master commit in: games-strategy/freecol/ Florian Schmaus
2025-02-01  9:18 Florian Schmaus
2024-10-17 15:32 Arthur Zamarin
2023-03-11 17:15 Sam James
2023-03-11 17:15 Sam James
2017-12-21  1:57 David Seifert
2017-01-04 15:29 Agostino Sarubbo
2016-09-26 12:36 Agostino Sarubbo
2016-01-15  9:03 Agostino Sarubbo
2015-12-10  2:29 Michael Sterrett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1738401462.0449946dd842aa16005927ec4b66f28eba2363f5.flow@gentoo \
    --to=flow@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox