diff options
author | Henning Schild <henning@hennsch.de> | 2024-09-28 11:56:36 +0200 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-09-28 12:21:28 +0200 |
commit | 524c9fd1bfff830197b5ed47ae23d3ee064aaa6c (patch) | |
tree | 7b79ac8cbb8f410e220bf364bc95fde7ced8ba5f /sci-geosciences | |
parent | sci-geosciences/josm-bin: install scalable icon as well (diff) | |
download | gentoo-524c9fd1bfff830197b5ed47ae23d3ee064aaa6c.tar.gz gentoo-524c9fd1bfff830197b5ed47ae23d3ee064aaa6c.tar.bz2 gentoo-524c9fd1bfff830197b5ed47ae23d3ee064aaa6c.zip |
sci-geosciences/josm-bin: drop old
Signed-off-by: Henning Schild <henning@hennsch.de>
Closes: https://github.com/gentoo/gentoo/pull/38803
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r-- | sci-geosciences/josm-bin/josm-bin-19207-r1.ebuild | 57 | ||||
-rw-r--r-- | sci-geosciences/josm-bin/josm-bin-19207.ebuild | 37 |
2 files changed, 0 insertions, 94 deletions
diff --git a/sci-geosciences/josm-bin/josm-bin-19207-r1.ebuild b/sci-geosciences/josm-bin/josm-bin-19207-r1.ebuild deleted file mode 100644 index e7e8259415b6..000000000000 --- a/sci-geosciences/josm-bin/josm-bin-19207-r1.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# 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 - domenu "${WORKDIR}/org.openstreetmap.${PN}.desktop" - insinto /usr/share/mime/packages - newins "${DISTDIR}/${P}.mime.xml" "${PN}.xml" -} diff --git a/sci-geosciences/josm-bin/josm-bin-19207.ebuild b/sci-geosciences/josm-bin/josm-bin-19207.ebuild deleted file mode 100644 index 6303fb8bbeed..000000000000 --- a/sci-geosciences/josm-bin/josm-bin-19207.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# 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" -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 \ - --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 ${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" -} |