diff options
Diffstat (limited to 'sci-geosciences/gpsprune-bin')
-rw-r--r-- | sci-geosciences/gpsprune-bin/Manifest | 3 | ||||
-rw-r--r-- | sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild | 66 | ||||
-rw-r--r-- | sci-geosciences/gpsprune-bin/metadata.xml | 8 |
3 files changed, 77 insertions, 0 deletions
diff --git a/sci-geosciences/gpsprune-bin/Manifest b/sci-geosciences/gpsprune-bin/Manifest new file mode 100644 index 000000000000..bd68039bea7c --- /dev/null +++ b/sci-geosciences/gpsprune-bin/Manifest @@ -0,0 +1,3 @@ +DIST gpsprune_20.4.jar 1269002 BLAKE2B 616e19f69ce81d26c68714240beae154d66e181067385fa35e0c790c7614d9ec6a1a672d67494c96c443d4c30b20fc7122d2a88f8608ca407f5f5b22fa0cf8e6 SHA512 78347793982e8e39f9747a20d1f366376bed93099c84f2e168dc3ffdee041ff7c3e90e48d3f076637d83f8f5f1e84bd18dbe2a35bef68ce972a4f541315a2f64 +EBUILD gpsprune-bin-20.4.ebuild 1561 BLAKE2B a88e3f7e2c65593cd48f3bd0cc22041dbcd1d37f275c302dfabc9002a7bff6c80c0391086de3f85eed4e60ec636df7fe2e9761cafc9e44dbd62f4cf716be9729 SHA512 548a972c3995249d694f460b93ba8837e182e60b7b2a47acaeef9eac2446ffed44f0d97f72b34031e09dacec2d2b5d58eb0a2f3885b5cccf43538dfff8546ee2 +MISC metadata.xml 261 BLAKE2B 36ef7307b8c913ceda7118a783c7f0c263e94e804f7c75e34007573f82dcddf62cfd202716bf5fb6e0adcad28a5a453d516f4caf4d2ca2eed6d076c6f7824afb SHA512 c24567fd3f715c867c52662d520fbf423d407a2a364d4ea9e5e66610cabb3728b494610106110abfac2b36554c4ad4b63f640e92f8d1b22bdea512037e461602 diff --git a/sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild b/sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild new file mode 100644 index 000000000000..68975bc30884 --- /dev/null +++ b/sci-geosciences/gpsprune-bin/gpsprune-bin-20.4.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="An application for viewing, editing and converting GPS data." +HOMEPAGE="http://activityworkshop.net/software/gpsprune/index.html" +SRC_URI="http://activityworkshop.net/software/gpsprune/gpsprune_${PV}.jar" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="virtual/jre:*" +RDEPEND="${DEPEND}" + +gpsprune_bin="${WORKDIR}/gpsprune" +gpsprune_desktop="${WORKDIR}/gpsprune.desktop" + +S="${WORKDIR}" + +src_prepare() +{ + default + + # Provide the necessary files + cp "${DISTDIR}/${A}" "${WORKDIR}" || die + for size in 128 96 72 64 48 36 32 24 22 16; do + mkdir -p "${WORKDIR}/icons/$size" + cp "${WORKDIR}/tim/prune/gui/images/window_icon_${size}.png" "${WORKDIR}/icons/$size/gpsprune.png" || die + done + + # Generate an executable + cat <<-EOF > "${gpsprune_bin}" || die + #!/bin/sh + java -jar /opt/gpsprune/gpsprune_${PV}.jar \$@ + EOF + + # Generate a .desktop file + cat <<-EOF > "${gpsprune_desktop}" || die + [Desktop Entry] + Name=GpsPrune + Type=Application + Comment=Application for viewing, editing and converting coordinate data from GPS systems + Exec=gpsprune + Icon=gpsprune + Categories=Science;Geoscience; + EOF +} + +src_install() +{ + insinto /opt/gpsprune + doins "gpsprune_${PV}.jar" + exeinto /usr/bin + doexe "${gpsprune_bin}" + + for size in 128 96 72 64 48 36 32 24 22 16; do + insinto "/usr/share/icons/hicolor/${size}x${size}/apps" + doins "icons/${size}/gpsprune.png" + done + + insinto /usr/share/applications + doins gpsprune.desktop +} diff --git a/sci-geosciences/gpsprune-bin/metadata.xml b/sci-geosciences/gpsprune-bin/metadata.xml new file mode 100644 index 000000000000..382e03b1550d --- /dev/null +++ b/sci-geosciences/gpsprune-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zerochaos@gentoo.org</email> + <name>Rick Farina (Zero_Chaos)</name> + </maintainer> +</pkgmetadata> |