sci-geosciences/josm-bin: version bump to 19481

Signed-off-by: Henning Schild <henning@hennsch.de>
Part-of: https://github.com/gentoo/gentoo/pull/45611
Closes: https://github.com/gentoo/gentoo/pull/45611
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Henning Schild
2026-02-03 09:19:23 +01:00
committed by Sam James
parent eec8505bd1
commit 86f448a73c
2 changed files with 61 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
DIST josm-bin-19439.desktop 638 BLAKE2B d3a5e0204d0188e72eed65e71edd079b5aa025b82f13c515605f7d5bb9f96fc93e4a24c9eea76c6c4027f54f1c449cda811f5c59e0f2ab54975ab3b1bf221ee7 SHA512 328bc131d5985cd164e3ffa27f61241098329ac01954e1cdde1dcab92261eb3e84d69c9b158f2bb944b02f373c3868bea1850ae335f9dabe3c2314d16d651394
DIST josm-bin-19439.mime.xml 831 BLAKE2B cc37da2b38a38481e00df0b72dcb9699a4dddb6777a4e71d83bb26f3d48a62e6b4abcc5b6fe8b45624eb3ecfeb231feefa714655e5911eeba203d103a7ab17d6 SHA512 7828c6f281f2701ce0f9e5cfbb57e75ecffab7936ce508c97a796ca820d237c7599bea9fc784825a8006e8fc07ebdd7b091d4d20d6767f9de6ca4e1cf42b58b0
DIST josm-bin-19481.desktop 638 BLAKE2B d3a5e0204d0188e72eed65e71edd079b5aa025b82f13c515605f7d5bb9f96fc93e4a24c9eea76c6c4027f54f1c449cda811f5c59e0f2ab54975ab3b1bf221ee7 SHA512 328bc131d5985cd164e3ffa27f61241098329ac01954e1cdde1dcab92261eb3e84d69c9b158f2bb944b02f373c3868bea1850ae335f9dabe3c2314d16d651394
DIST josm-bin-19481.mime.xml 831 BLAKE2B cc37da2b38a38481e00df0b72dcb9699a4dddb6777a4e71d83bb26f3d48a62e6b4abcc5b6fe8b45624eb3ecfeb231feefa714655e5911eeba203d103a7ab17d6 SHA512 7828c6f281f2701ce0f9e5cfbb57e75ecffab7936ce508c97a796ca820d237c7599bea9fc784825a8006e8fc07ebdd7b091d4d20d6767f9de6ca4e1cf42b58b0
DIST josm-snapshot-19439.jar 19265757 BLAKE2B 8b3bfcb9a1cd61c87471c2096ff6b6c3454300b55abd1052e4d34efb803db8217c073d847e2b0d6c1524e593a15136613931e2235cebee81811b5a42129b8541 SHA512 5f083bc2ad11f8d6bf0f381394525e4d551a02bb9ed826476ede4e53926068aa8c56a839cc7927a052b8b3a14ba24de0f99698aa37f0bc1fc54c8246807301a7
DIST josm-snapshot-19481.jar 19819942 BLAKE2B f3ee4a2e6128186480c0b9673c536d75d8cee8241f7ddbac822aa59fb4d4d85fc86990d7b7f5886f36680350caef6d9af12f0edf654efe1bbfba8260146fd71b SHA512 54b7b4253e5959ed8a2da61a9e1418e13204ca942e208355dd14b7fa15677fa8016275d23789c29390615eeb82b64384c60f86eb96a7d01b168610d0fb87559b

View File

@@ -0,0 +1,58 @@
# Copyright 1999-2026 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"
}