mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-geosciences/josm-bin: version bump to 19439
Signed-off-by: Henning Schild <henning@hennsch.de> Part-of: https://github.com/gentoo/gentoo/pull/43653 Closes: https://github.com/gentoo/gentoo/pull/43653 Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
committed by
Florian Schmaus
parent
28408f607b
commit
4df2f55bc5
@@ -1,3 +1,6 @@
|
||||
DIST josm-bin-19423.desktop 638 BLAKE2B d3a5e0204d0188e72eed65e71edd079b5aa025b82f13c515605f7d5bb9f96fc93e4a24c9eea76c6c4027f54f1c449cda811f5c59e0f2ab54975ab3b1bf221ee7 SHA512 328bc131d5985cd164e3ffa27f61241098329ac01954e1cdde1dcab92261eb3e84d69c9b158f2bb944b02f373c3868bea1850ae335f9dabe3c2314d16d651394
|
||||
DIST josm-bin-19423.mime.xml 831 BLAKE2B cc37da2b38a38481e00df0b72dcb9699a4dddb6777a4e71d83bb26f3d48a62e6b4abcc5b6fe8b45624eb3ecfeb231feefa714655e5911eeba203d103a7ab17d6 SHA512 7828c6f281f2701ce0f9e5cfbb57e75ecffab7936ce508c97a796ca820d237c7599bea9fc784825a8006e8fc07ebdd7b091d4d20d6767f9de6ca4e1cf42b58b0
|
||||
DIST josm-bin-19439.desktop 638 BLAKE2B d3a5e0204d0188e72eed65e71edd079b5aa025b82f13c515605f7d5bb9f96fc93e4a24c9eea76c6c4027f54f1c449cda811f5c59e0f2ab54975ab3b1bf221ee7 SHA512 328bc131d5985cd164e3ffa27f61241098329ac01954e1cdde1dcab92261eb3e84d69c9b158f2bb944b02f373c3868bea1850ae335f9dabe3c2314d16d651394
|
||||
DIST josm-bin-19439.mime.xml 831 BLAKE2B cc37da2b38a38481e00df0b72dcb9699a4dddb6777a4e71d83bb26f3d48a62e6b4abcc5b6fe8b45624eb3ecfeb231feefa714655e5911eeba203d103a7ab17d6 SHA512 7828c6f281f2701ce0f9e5cfbb57e75ecffab7936ce508c97a796ca820d237c7599bea9fc784825a8006e8fc07ebdd7b091d4d20d6767f9de6ca4e1cf42b58b0
|
||||
DIST josm-snapshot-19423.jar 19256265 BLAKE2B 7838f10d34234126dd095ff12ecfe09d1c22e4abc32a6bf241da470dca806473f96803633f6318271bfa169958f8760af329294dcb4740c1304f95e6dc2c4f01 SHA512 59a76db3c0d83ebfba669d43ff33fdbdfb65b8401ac7325a6b9e89bdc1f3096398693735302019a2e7eb6054506cd387e87185e247155621d431fa10b1384359
|
||||
DIST josm-snapshot-19439.jar 19265757 BLAKE2B 8b3bfcb9a1cd61c87471c2096ff6b6c3454300b55abd1052e4d34efb803db8217c073d847e2b0d6c1524e593a15136613931e2235cebee81811b5a42129b8541 SHA512 5f083bc2ad11f8d6bf0f381394525e4d551a02bb9ed826476ede4e53926068aa8c56a839cc7927a052b8b3a14ba24de0f99698aa37f0bc1fc54c8246807301a7
|
||||
|
||||
58
sci-geosciences/josm-bin/josm-bin-19439.ebuild
Normal file
58
sci-geosciences/josm-bin/josm-bin-19439.ebuild
Normal file
@@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2025 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"
|
||||
}
|
||||
Reference in New Issue
Block a user