public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rick Farina" <zerochaos@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsprune-bin/
Date: Sun, 20 Aug 2023 18:57:32 +0000 (UTC)	[thread overview]
Message-ID: <1692557820.c20253a18310eec1e74f8e55e1ad0cef7d6b41fc.zerochaos@gentoo> (raw)

commit:     c20253a18310eec1e74f8e55e1ad0cef7d6b41fc
Author:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 20 18:57:00 2023 +0000
Commit:     Rick Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Sun Aug 20 18:57:00 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c20253a1

sci-geosciences/gpsprune-bin: add 23.1

Signed-off-by: Rick Farina <zerochaos <AT> gentoo.org>

 sci-geosciences/gpsprune-bin/Manifest              |  1 +
 .../gpsprune-bin/gpsprune-bin-23.1.ebuild          | 65 ++++++++++++++++++++++
 2 files changed, 66 insertions(+)

diff --git a/sci-geosciences/gpsprune-bin/Manifest b/sci-geosciences/gpsprune-bin/Manifest
index bac1d5dc6ebf..e9eeb5495f6e 100644
--- a/sci-geosciences/gpsprune-bin/Manifest
+++ b/sci-geosciences/gpsprune-bin/Manifest
@@ -1 +1,2 @@
 DIST gpsprune_20.4.jar 1269002 BLAKE2B 616e19f69ce81d26c68714240beae154d66e181067385fa35e0c790c7614d9ec6a1a672d67494c96c443d4c30b20fc7122d2a88f8608ca407f5f5b22fa0cf8e6 SHA512 78347793982e8e39f9747a20d1f366376bed93099c84f2e168dc3ffdee041ff7c3e90e48d3f076637d83f8f5f1e84bd18dbe2a35bef68ce972a4f541315a2f64
+DIST gpsprune_23.1.jar 1201224 BLAKE2B 829383d8fdc5406b4bbddfb224d48142cee910b478db8e67029592c9a8382b78f0286b3850b484801688254455d043e6409e3af21d3fb4956fc284a6f2e3685d SHA512 45b285bd6f940619c2e6f73f29f377a8db01e29435833c07286261d57eee2b5584193b040ed4ce15fe1c0cfae15f629a3b95c0a25af74cf51af64cfa7fc19183

diff --git a/sci-geosciences/gpsprune-bin/gpsprune-bin-23.1.ebuild b/sci-geosciences/gpsprune-bin/gpsprune-bin-23.1.ebuild
new file mode 100644
index 000000000000..af6ab8ead830
--- /dev/null
+++ b/sci-geosciences/gpsprune-bin/gpsprune-bin-23.1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop
+
+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
+
+	domenu gpsprune.desktop
+}


             reply	other threads:[~2023-08-20 18:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-20 18:57 Rick Farina [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-17 18:11 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpsprune-bin/ Florian Schmaus
2023-08-20 18:57 Rick Farina
2022-03-26  0:27 Sam James
2021-12-26  0:20 Sam James
2021-12-21 15:28 Rick Farina
2021-10-18 14:40 Rick Farina
2021-10-18 14:40 Rick Farina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1692557820.c20253a18310eec1e74f8e55e1ad0cef7d6b41fc.zerochaos@gentoo \
    --to=zerochaos@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox