summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-geosciences/gpxsee/Manifest1
-rw-r--r--sci-geosciences/gpxsee/gpxsee-13.33.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/sci-geosciences/gpxsee/Manifest b/sci-geosciences/gpxsee/Manifest
index 5326e9936773..8d93e2891cc7 100644
--- a/sci-geosciences/gpxsee/Manifest
+++ b/sci-geosciences/gpxsee/Manifest
@@ -1,2 +1,3 @@
DIST gpxsee-13.27.tar.gz 5639124 BLAKE2B f3e10b1580e6e96f106d789abf9273530a36f528e4971b430c4b83d0a056f065a08faca28d850a7983df7fc7cc5fcab1d564a88d4337ad7ea4c33b4e2b22579c SHA512 88ed97d6a6813385ce9194d7b18935f410fc69f25072f0a5de20ac19464a1be9ec7c28ac9de2533b3153bb6d43ab2f84428faef0c687d2dffbb39bad4df1c96b
DIST gpxsee-13.32.tar.gz 5551655 BLAKE2B c04aca4c79202b32ca49e2e609e497cac4a92bff08a5b075fea0a8b3d1bbbed9dd5e6a1b5725ffe9a79cdce28b989333c49b0372ef518a1a467aa4ee287eda21 SHA512 2b607742bb0ee2f173721544e205fa98e25c2bf23349811a039a5fd24524edf7e9cba5b64733c7edaa0415bb4b22bf3c4362f9fff342aadf14afc9e1ecd35864
+DIST gpxsee-13.33.tar.gz 5557400 BLAKE2B b1aaf16567ab4f35120cf5dd43f9c29136f8dfe04ba85d4876ed135a5f84ebf3626aac9cb1c63cd7b732245a6fbb76bcedb3255d6157796a7a68c938f1da8d1e SHA512 9ae1c59ca9e3b1ceb36fb1923da7f599c6c3f11be05d789629a0a425c11a634cf5a98f78390fb5b0838f7da4e96cce807fe146d0125671d3567b17cbbf1ae9cb
diff --git a/sci-geosciences/gpxsee/gpxsee-13.33.ebuild b/sci-geosciences/gpxsee/gpxsee-13.33.ebuild
new file mode 100644
index 000000000000..b754057f64d5
--- /dev/null
+++ b/sci-geosciences/gpxsee/gpxsee-13.33.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PLOCALES="ca cs da de en eo es fi fr hu it ko nb pl pt_BR ru sv tr uk zh_CN"
+inherit plocale qmake-utils xdg
+
+MY_PN="GPXSee"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea files"
+HOMEPAGE="https://www.gpxsee.org/ https://github.com/tumic0/GPXSee"
+SRC_URI="https://github.com/tumic0/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="qt6"
+
+RDEPEND="
+ qt6? (
+ dev-qt/qtbase:6
+ dev-qt/qtpositioning:6
+ dev-qt/qtserialport:6
+ )
+ !qt6? (
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtpositioning:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtserialport:5
+ dev-qt/qtsql:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ qt6? ( dev-qt/qttools:6 )
+ !qt6? ( dev-qt/linguist-tools:5 )
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-7.33.patch )
+
+src_prepare() {
+ default
+
+ plocale_find_changes lang "${PN}_" '.ts'
+
+ rm_ts() {
+ sed -e "s|lang/gpxsee_${1}.ts||" -i gpxsee.pro
+ }
+
+ plocale_for_each_disabled_locale rm_ts
+}
+
+src_compile() {
+ if use qt6; then
+ $(qt6_get_bindir)/lrelease gpxsee.pro || die "lrelease failed"
+ eqmake6 gpxsee.pro
+ else
+ $(qt5_get_bindir)/lrelease gpxsee.pro || die "lrelease failed"
+ eqmake5 gpxsee.pro
+ fi
+ emake
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc README.md
+}