* [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpxlab/files/, sci-geosciences/gpxlab/
@ 2021-03-25 10:20 Andrey Grozin
0 siblings, 0 replies; only message in thread
From: Andrey Grozin @ 2021-03-25 10:20 UTC (permalink / raw
To: gentoo-commits
commit: 153eb2b814b2a6512ad50fe1d6e29fe51b4ef403
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 25 10:20:03 2021 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Thu Mar 25 10:20:03 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153eb2b8
sci-geosciences/gpxlab: initial import
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
sci-geosciences/gpxlab/Manifest | 1 +
sci-geosciences/gpxlab/files/gpxlab-0.7.0.patch | 10 +++++
sci-geosciences/gpxlab/gpxlab-0.7.0.ebuild | 51 +++++++++++++++++++++++++
sci-geosciences/gpxlab/metadata.xml | 15 ++++++++
4 files changed, 77 insertions(+)
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>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-25 10:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-25 10:20 [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/gpxlab/files/, sci-geosciences/gpxlab/ Andrey Grozin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox