From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9624E1580E0 for ; Sat, 01 Feb 2025 09:45:50 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 75E2D341B52 for ; Sat, 01 Feb 2025 09:45:50 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 657BB1103B6; Sat, 01 Feb 2025 09:45:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 5AE811103B6 for ; Sat, 01 Feb 2025 09:45:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C124341B52 for ; Sat, 01 Feb 2025 09:45:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6DE4211A7 for ; Sat, 01 Feb 2025 09:45:47 +0000 (UTC) From: "Filip Kobierski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Filip Kobierski" Message-ID: <1738403073.5d16da2d26b400a9265fe596c6ccbce596a022e6.fkobi@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: games-strategy/unciv-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: games-strategy/unciv-bin/Manifest games-strategy/unciv-bin/unciv-bin-4.15.6_p1.ebuild X-VCS-Directories: games-strategy/unciv-bin/ X-VCS-Committer: fkobi X-VCS-Committer-Name: Filip Kobierski X-VCS-Revision: 5d16da2d26b400a9265fe596c6ccbce596a022e6 X-VCS-Branch: dev Date: Sat, 01 Feb 2025 09:45:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5f7a8d83-235c-428c-a3e4-3b05ab5cbc0b X-Archives-Hash: 29efda24bd3708a5b6bb462557c3fece commit: 5d16da2d26b400a9265fe596c6ccbce596a022e6 Author: Filip Kobierski pm me> AuthorDate: Sat Feb 1 09:43:54 2025 +0000 Commit: Filip Kobierski pm 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 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" +}