public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/
@ 2025-02-01 15:05 Takuya Wakazono
  0 siblings, 0 replies; 4+ messages in thread
From: Takuya Wakazono @ 2025-02-01 15:05 UTC (permalink / raw
  To: gentoo-commits

commit:     02af97fa58f1a14c1ee64c6356e5ee9cb888fe43
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sat Feb  1 14:58:59 2025 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Sat Feb  1 15:00:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=02af97fa

games-strategy/unciv-bin: use xdg eclass

This ebuild installs desktop/icon files.

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild b/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild
index 6efb8c437..b5b5e3038 100644
--- a/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild
+++ b/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit desktop java-pkg-2
+inherit desktop java-pkg-2 xdg
 
 MY_PV=${PV/_p/-patch}
 DESCRIPTION="Turn-based historical strategy game, a remake of Civ V"
@@ -32,3 +32,8 @@ src_install() {
 	# this desktop file is better than upstream's
 	make_desktop_entry "${PN}" Unciv-bin unciv "Game;StrategyGame" "Terminal=false"
 }
+
+pkg_preinst() {
+	java-pkg-2_pkg_preinst
+	xdg_pkg_preinst
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/
@ 2025-02-01  9:45 Filip Kobierski
  0 siblings, 0 replies; 4+ messages in thread
From: Filip Kobierski @ 2025-02-01  9:45 UTC (permalink / raw
  To: gentoo-commits

commit:     5d16da2d26b400a9265fe596c6ccbce596a022e6
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Sat Feb  1 09:43:54 2025 +0000
Commit:     Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Sat Feb  1 09:44:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5d16da2d

games-strategy/unciv-bin: add 4.15.6_p1

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>

 games-strategy/unciv-bin/Manifest                  |  1 +
 .../unciv-bin/unciv-bin-4.15.6_p1.ebuild           | 34 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/games-strategy/unciv-bin/Manifest b/games-strategy/unciv-bin/Manifest
index 8423c287c..54a257c39 100644
--- a/games-strategy/unciv-bin/Manifest
+++ b/games-strategy/unciv-bin/Manifest
@@ -1 +1,2 @@
 DIST unciv-bin-4.15.2.jar 55155994 BLAKE2B 5940c04447573f825ed28cb994cf65315216835ce390c04e6b6353361fb5428f13bc2d032838c5166ec628c05feeee07d3a549e8e52d10fec841d5d1cf055feb SHA512 7571fba7540b40fd159e95c26d15a2a980cb0657824704c9c552ce95ef2b26b944e01a6a18d56c72f2395a296e86f66b9f8078a610a34643b47136e84e39ab2d
+DIST unciv-bin-4.15.6_p1.jar 55233049 BLAKE2B 2740e43206c98c66c4f05c876f5fb5f9a979220dbb3a35ae97626b74d48252389d28ca18113ef3f09e5c71b81ee4ef723447b01707aa5cf6044816159531c3fa SHA512 4eb7e342986e48244573bc9b1db56a9731958f169d5790149fdea2839a7fdd346fbc570d7cd54c8fc04d7aca6f1ac4079e8f0849ca1428012a109f02c36429c7

diff --git a/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild b/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild
new file mode 100644
index 000000000..6efb8c437
--- /dev/null
+++ b/games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop java-pkg-2
+
+MY_PV=${PV/_p/-patch}
+DESCRIPTION="Turn-based historical strategy game, a remake of Civ V"
+HOMEPAGE="https://github.com/yairm210/Unciv"
+SRC_URI="https://github.com/yairm210/Unciv/releases/download/${MY_PV}/Unciv.jar -> ${P}.jar"
+S="${WORKDIR}"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="-* ~amd64" # the jar also should work on arm{,64} but I am unable to test that
+
+RDEPEND=">=virtual/jre-11:*" # could be more
+BDEPEND="app-arch/unzip"
+
+declare -r IMG_PATH="ExtraImages/Icon.png"
+
+src_unpack() {
+	cp "${DISTDIR}/${P}.jar" "${WORKDIR}"
+	unzip ${P}.jar ${IMG_PATH} || die "Extracting icon failed"
+}
+
+src_install() {
+	java-pkg_newjar "${P}.jar"
+	java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
+	newicon --size 32 ${IMG_PATH} unciv.png || die "Installing icon failed"
+	# this desktop file is better than upstream's
+	make_desktop_entry "${PN}" Unciv-bin unciv "Game;StrategyGame" "Terminal=false"
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/
@ 2025-01-12 12:46 Filip Kobierski
  0 siblings, 0 replies; 4+ messages in thread
From: Filip Kobierski @ 2025-01-12 12:46 UTC (permalink / raw
  To: gentoo-commits

commit:     1973ba0faf481289e03a9a2f54fa93a22af61d9c
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Sun Jan 12 12:46:33 2025 +0000
Commit:     Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Sun Jan 12 12:46:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1973ba0f

games-strategy/unciv-bin: bump to 4.15.2

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>

 games-strategy/unciv-bin/Manifest                                       | 2 +-
 .../unciv-bin/{unciv-bin-4.14.17.ebuild => unciv-bin-4.15.2.ebuild}     | 0
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/games-strategy/unciv-bin/Manifest b/games-strategy/unciv-bin/Manifest
index 2d8d7a201..8423c287c 100644
--- a/games-strategy/unciv-bin/Manifest
+++ b/games-strategy/unciv-bin/Manifest
@@ -1 +1 @@
-DIST unciv-bin-4.14.17.jar 55257536 BLAKE2B 8683dd1f4c85e4bb9731cbfcd751d6ac937cee8580ad58556b6ab28c9e7283af6e789a9e51c23585beee4ac75109f0729a59dc56ea76f25d43c57629ed940ddf SHA512 62cbb7feb6f15a69f152c6c62a6aed52591db81541e499419a12720a0c927fcc069d3328b94c850c14a21a6addacb3344c44311ccddb882ca154603df4398fe9
+DIST unciv-bin-4.15.2.jar 55155994 BLAKE2B 5940c04447573f825ed28cb994cf65315216835ce390c04e6b6353361fb5428f13bc2d032838c5166ec628c05feeee07d3a549e8e52d10fec841d5d1cf055feb SHA512 7571fba7540b40fd159e95c26d15a2a980cb0657824704c9c552ce95ef2b26b944e01a6a18d56c72f2395a296e86f66b9f8078a610a34643b47136e84e39ab2d

diff --git a/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild b/games-strategy/unciv-bin/unciv-bin-4.15.2.ebuild
similarity index 100%
rename from games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild
rename to games-strategy/unciv-bin/unciv-bin-4.15.2.ebuild


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/
@ 2024-12-23 18:54 Filip Kobierski
  0 siblings, 0 replies; 4+ messages in thread
From: Filip Kobierski @ 2024-12-23 18:54 UTC (permalink / raw
  To: gentoo-commits

commit:     ebdf2542e6bc1773b49bc87d242a6e5b4a6b8559
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Mon Dec 23 18:45:19 2024 +0000
Commit:     Filip Kobierski <fkobi <AT> pm <DOT> me>
CommitDate: Mon Dec 23 18:54:46 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ebdf2542

games-strategy/unciv-bin: new package, add 4.14.17

This ebuild was loosely based on the ebuild from schplaf's overlay.

Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>

 games-strategy/unciv-bin/Manifest                 |  1 +
 games-strategy/unciv-bin/metadata.xml             | 19 +++++++++++++
 games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild | 33 +++++++++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/games-strategy/unciv-bin/Manifest b/games-strategy/unciv-bin/Manifest
new file mode 100644
index 000000000..2d8d7a201
--- /dev/null
+++ b/games-strategy/unciv-bin/Manifest
@@ -0,0 +1 @@
+DIST unciv-bin-4.14.17.jar 55257536 BLAKE2B 8683dd1f4c85e4bb9731cbfcd751d6ac937cee8580ad58556b6ab28c9e7283af6e789a9e51c23585beee4ac75109f0729a59dc56ea76f25d43c57629ed940ddf SHA512 62cbb7feb6f15a69f152c6c62a6aed52591db81541e499419a12720a0c927fcc069d3328b94c850c14a21a6addacb3344c44311ccddb882ca154603df4398fe9

diff --git a/games-strategy/unciv-bin/metadata.xml b/games-strategy/unciv-bin/metadata.xml
new file mode 100644
index 000000000..908929c81
--- /dev/null
+++ b/games-strategy/unciv-bin/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>fkobi@pm.me</email>
+		<name>Filip Kobierski</name>
+	</maintainer>
+	<longdescription>
+		Unciv is an open source, mod-friendly  remake of Civ V, made with Kotlin and LibGDX.
+		It has a touch-friendly user interface but also keyboard binds, so do not think it is mainly for Android.
+		In this game you can build your civilization, research technologies, expand your cities and finally defeat your foes!
+	</longdescription>
+	<upstream>
+		<bugs-to>https://github.com/yairm210/Unciv/issues</bugs-to>
+		<changelog>https://github.com/yairm210/Unciv/blob/master/changelog.md</changelog>
+		<doc>https://yairm210.itch.io/unciv</doc>
+		<remote-id type="github">yairm210/Unciv</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild b/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild
new file mode 100644
index 000000000..411a9bcea
--- /dev/null
+++ b/games-strategy/unciv-bin/unciv-bin-4.14.17.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2021-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop java-pkg-2
+
+DESCRIPTION="Turn-based historical strategy game, a remake of Civ V"
+HOMEPAGE="https://github.com/yairm210/Unciv"
+SRC_URI="https://github.com/yairm210/Unciv/releases/download/${PV}/Unciv.jar -> ${P}.jar"
+S="${WORKDIR}"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="-* ~amd64" # the jar also should work on arm{,64} but I am unable to test that
+
+RDEPEND=">=virtual/jre-11:*" # could be more
+BDEPEND="app-arch/unzip"
+
+declare -r IMG_PATH="ExtraImages/Icon.png"
+
+src_unpack() {
+	cp "${DISTDIR}/${P}.jar" "${WORKDIR}"
+	unzip ${P}.jar ${IMG_PATH} || die "Extracting icon failed"
+}
+
+src_install() {
+	java-pkg_newjar "${P}.jar"
+	java-pkg_dolauncher "${PN}" --jar "${PN}.jar"
+	newicon --size 32 ${IMG_PATH} unciv.png || die "Installing icon failed"
+	# this desktop file is better than upstream's
+	make_desktop_entry "${PN}" Unciv-bin unciv "Game;StrategyGame" "Terminal=false"
+}


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-01 15:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-01 15:05 [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/ Takuya Wakazono
  -- strict thread matches above, loose matches on Subject: below --
2025-02-01  9:45 Filip Kobierski
2025-01-12 12:46 Filip Kobierski
2024-12-23 18:54 Filip Kobierski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox