From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9EEC415808B for ; Sat, 28 Sep 2024 10:22:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC15C2BC015; Sat, 28 Sep 2024 10:22:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0F002BC015 for ; Sat, 28 Sep 2024 10:22:46 +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 D7EFD343201 for ; Sat, 28 Sep 2024 10:22:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3B67D1897 for ; Sat, 28 Sep 2024 10:22:44 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1727518884.956ee86c067380589adaaf06afaffb802c545bde.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/josm-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-geosciences/josm-bin/josm-bin-19207-r2.ebuild X-VCS-Directories: sci-geosciences/josm-bin/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 956ee86c067380589adaaf06afaffb802c545bde X-VCS-Branch: master Date: Sat, 28 Sep 2024 10:22:44 +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: d448a2d7-d2a5-4aff-bea4-2381eb35b299 X-Archives-Hash: a334b6200c10304152674b2f7a836c8d commit: 956ee86c067380589adaaf06afaffb802c545bde Author: Henning Schild hennsch de> AuthorDate: Sat Sep 28 09:55:37 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sat Sep 28 10:21:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=956ee86c sci-geosciences/josm-bin: install scalable icon as well Signed-off-by: Henning Schild hennsch.de> Signed-off-by: Andrew Ammerlaan gentoo.org> sci-geosciences/josm-bin/josm-bin-19207-r2.ebuild | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/sci-geosciences/josm-bin/josm-bin-19207-r2.ebuild b/sci-geosciences/josm-bin/josm-bin-19207-r2.ebuild new file mode 100644 index 000000000000..eaa3dcd4cde6 --- /dev/null +++ b/sci-geosciences/josm-bin/josm-bin-19207-r2.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop java-utils-2 xdg + +DESCRIPTION="Java-based editor for the OpenStreetMap project" +HOMEPAGE="https://josm.openstreetmap.de/" +# PV should be stable here https://josm.openstreetmap.de/wiki/StartupPage +SRC_URI=" + https://josm.openstreetmap.de/download/josm-snapshot-${PV}.jar + https://josm.openstreetmap.de/export/${PV}/josm/trunk/native/linux/tested/usr/share/applications/org.openstreetmap.josm.desktop -> ${P}.desktop + https://josm.openstreetmap.de/export/${PV}/josm/trunk/native/linux/tested/usr/share/mime/packages/josm.xml \ + -> ${P}.mime.xml +" +S="${WORKDIR}" + +LICENSE="Apache-2.0 GPL-2+ GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=">=virtual/jre-1.8" +BDEPEND="app-arch/unzip" + +src_unpack() { + default + + cp "${DISTDIR}/${P}.desktop" "org.openstreetmap.${PN}.desktop" || die +} + +src_prepare() { + default + + sed -i -e 's/^Exec=josm/Exec=josm-bin/' "org.openstreetmap.${PN}.desktop" || die + sed -i -e 's/^Icon=org.openstreetmap.josm/Icon=org.openstreetmap.josm-bin/' "org.openstreetmap.${PN}.desktop" || die +} + +src_install() { + java-pkg_newjar "${DISTDIR}/josm-snapshot-${PV}.jar" ${PN}.jar + java-pkg_dolauncher ${PN} --jar ${PN}.jar \ + --java_args "\ + --add-exports=java.base/sun.security.action=ALL-UNNAMED \ + --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED \ + --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED" + + local icon_size + for icon_size in 16 32 48; do + newicon -s ${icon_size} -t hicolor \ + images/logo_${icon_size}x${icon_size}x32.png "org.openstreetmap.${PN}.png" + newicon -s ${icon_size} -t locolor \ + images/logo_${icon_size}x${icon_size}x8.png "org.openstreetmap.${PN}.png" + done + newicon -s scalable images/logo.svg "org.openstreetmap.${PN}.svg" + domenu "${WORKDIR}/org.openstreetmap.${PN}.desktop" + insinto /usr/share/mime/packages + newins "${DISTDIR}/${P}.mime.xml" "${PN}.xml" +}