summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2021-03-25 17:20:03 +0700
committerAndrey Grozin <grozin@gentoo.org>2021-03-25 17:20:03 +0700
commit153eb2b814b2a6512ad50fe1d6e29fe51b4ef403 (patch)
tree464b30d3e93392cb95066f1292322b7ce4b9a80b /sci-geosciences/gpxlab
parentwww-client/vivaldi: Stabilise 3.7.2218.45 (diff)
downloadgentoo-153eb2b814b2a6512ad50fe1d6e29fe51b4ef403.tar.gz
gentoo-153eb2b814b2a6512ad50fe1d6e29fe51b4ef403.tar.bz2
gentoo-153eb2b814b2a6512ad50fe1d6e29fe51b4ef403.zip
sci-geosciences/gpxlab: initial import
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'sci-geosciences/gpxlab')
-rw-r--r--sci-geosciences/gpxlab/Manifest1
-rw-r--r--sci-geosciences/gpxlab/files/gpxlab-0.7.0.patch10
-rw-r--r--sci-geosciences/gpxlab/gpxlab-0.7.0.ebuild51
-rw-r--r--sci-geosciences/gpxlab/metadata.xml15
4 files changed, 77 insertions, 0 deletions
diff --git a/sci-geosciences/gpxlab/Manifest b/sci-geosciences/gpxlab/Manifest
new file mode 100644
index 00000000000..e53ea4aabfe
--- /dev/null
+++ b/sci-geosciences/gpxlab/Manifest
@@ -0,0 +1 @@
+DIST gpxlab-0.7.0.tar.gz 1082049 BLAKE2B e84b04ef711b9d6d24639f338a5dd1d61185aeb6917699228fdd68309f15736f52b0ead7cba234bd4538bb7012bba5b6889fcf020cbfad96d90e46d26628e086 SHA512 493eaab8d14bb7402eafe8273d6ced2bc2e0632448cfc7b510a4d8dbe180abcaa6e321f435b7a5209a322851f04af493786b88123962cac525a315ecf375f817
diff --git a/sci-geosciences/gpxlab/files/gpxlab-0.7.0.patch b/sci-geosciences/gpxlab/files/gpxlab-0.7.0.patch
new file mode 100644
index 00000000000..40ccab708b0
--- /dev/null
+++ b/sci-geosciences/gpxlab/files/gpxlab-0.7.0.patch
@@ -0,0 +1,10 @@
+diff -r -U2 GPXLab-0.7.0.orig/GPXLab/GPXLab.pro GPXLab-0.7.0/GPXLab/GPXLab.pro
+--- GPXLab-0.7.0.orig/GPXLab/GPXLab.pro 2019-12-11 15:44:11.000000000 +0700
++++ GPXLab-0.7.0/GPXLab/GPXLab.pro 2021-03-25 17:03:19.093288969 +0700
+@@ -140,5 +140,5 @@
+
+ unix:!macx {
+- isEmpty(PREFIX):PREFIX = /usr/local
++ isEmpty(PREFIX):PREFIX = /usr
+ DEFINES += PREFIX=\\\"$$PREFIX\\\"
+
diff --git a/sci-geosciences/gpxlab/gpxlab-0.7.0.ebuild b/sci-geosciences/gpxlab/gpxlab-0.7.0.ebuild
new file mode 100644
index 00000000000..7484b771727
--- /dev/null
+++ b/sci-geosciences/gpxlab/gpxlab-0.7.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PLOCALES="fi ru"
+inherit desktop qmake-utils l10n xdg
+
+MY_PN="GPXLab"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="An application to display and manage GPS tracks"
+HOMEPAGE="https://github.com/BourgeoisLab/GPXLab"
+SRC_URI="https://github.com/BourgeoisLab/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+RDEPEND="dev-qt/qtwidgets:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtcore:5"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-qt/linguist-tools:5"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=( "${FILESDIR}"/${PN}-0.7.0.patch )
+
+src_prepare() {
+ default
+
+ l10n_find_plocales_changes ${MY_PN}/locale "${PN}_" '.ts'
+
+ rm_ts() {
+ sed -e "s|locale/${PN}_${1}.ts||" -i ${MY_PN}/${MY_PN}.pro
+ }
+
+ l10n_for_each_disabled_locale_do rm_ts
+}
+
+src_compile() {
+ lrelease ${MY_PN}.pro
+ eqmake5 ${MY_PN}.pro
+ emake
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ dodoc README.md CHANGELOG.md
+}
diff --git a/sci-geosciences/gpxlab/metadata.xml b/sci-geosciences/gpxlab/metadata.xml
new file mode 100644
index 00000000000..b9ac2eb6253
--- /dev/null
+++ b/sci-geosciences/gpxlab/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">BourgeoisLab/GPXLab</remote-id>
+ </upstream>
+</pkgmetadata>