diff options
author | Henning Schild <henning@hennsch.de> | 2021-09-07 21:53:27 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-09-10 10:22:25 +0300 |
commit | 0bf4aec24745c14421a772624ecf5407f878a144 (patch) | |
tree | 6910d46c2d9a5a4ed1bfdc2a93666bb29b012e11 /sci-geosciences/josm-bin/josm-bin-18193.ebuild | |
parent | app-backup/deja-dup: update dep list for 42.8 (diff) | |
download | gentoo-0bf4aec24745c14421a772624ecf5407f878a144.tar.gz gentoo-0bf4aec24745c14421a772624ecf5407f878a144.tar.bz2 gentoo-0bf4aec24745c14421a772624ecf5407f878a144.zip |
sci-geosciences/josm-bin: version bump to 18193
Signed-off-by: Henning Schild <henning@hennsch.de>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-geosciences/josm-bin/josm-bin-18193.ebuild')
-rw-r--r-- | sci-geosciences/josm-bin/josm-bin-18193.ebuild | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sci-geosciences/josm-bin/josm-bin-18193.ebuild b/sci-geosciences/josm-bin/josm-bin-18193.ebuild new file mode 100644 index 000000000000..d042ecaab171 --- /dev/null +++ b/sci-geosciences/josm-bin/josm-bin-18193.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop java-utils-2 xdg + +DESCRIPTION="Java-based editor for the OpenStreetMap project" +HOMEPAGE="https://josm.openstreetmap.de/" +SRC_URI="https://josm.openstreetmap.de/download/josm-snapshot-${PV}.jar" +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_install() { + java-pkg_newjar "${DISTDIR}/${A}" ${PN}.jar + java-pkg_dolauncher ${PN} --jar ${PN}.jar + + 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 ${PN}.png + newicon -s ${icon_size} -t locolor \ + images/logo_${icon_size}x${icon_size}x8.png ${PN}.png + done + make_desktop_entry ${PN} "Java OpenStreetMap Editor" ${PN} "Utility;Science;Geoscience" +} |