summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2019-08-18 21:49:13 +0700
committerAndrey Grozin <grozin@gentoo.org>2019-08-18 21:49:13 +0700
commit0f7f847bd8e527136f844b9f5c1cda8706a415d2 (patch)
tree3d042be9689dd1d4f34909ede9a0518a65676f66 /sci-geosciences
parentsci-geosciences/gpxsee: cleaning old versions (diff)
downloadgentoo-0f7f847bd8e527136f844b9f5c1cda8706a415d2.tar.gz
gentoo-0f7f847bd8e527136f844b9f5c1cda8706a415d2.tar.bz2
gentoo-0f7f847bd8e527136f844b9f5c1cda8706a415d2.zip
sci-geosciences/gpxsee: bump to 7.12
Package-Manager: Portage-2.3.71, Repoman-2.3.17 Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'sci-geosciences')
-rw-r--r--sci-geosciences/gpxsee/Manifest1
-rw-r--r--sci-geosciences/gpxsee/gpxsee-7.12.ebuild80
2 files changed, 81 insertions, 0 deletions
diff --git a/sci-geosciences/gpxsee/Manifest b/sci-geosciences/gpxsee/Manifest
index 731beadcaec2..9c8f18e45e46 100644
--- a/sci-geosciences/gpxsee/Manifest
+++ b/sci-geosciences/gpxsee/Manifest
@@ -1 +1,2 @@
+DIST gpxsee-7.12.tar.gz 4688060 BLAKE2B 5700bfd8ec4d6702df417297b0c5ce7d5df5f099ee435b4e322b78b65441adb0fcb00d4cbcddd825c75879cc35d2e7f67900525bc515a64813ab8148fc025fe8 SHA512 1630e34e5a367e88f55b690434be6f3ba73d9a55c0d351944939cca8a1994b0ac9ccc4a52ec30562d64179326f7be514549a83a0027a4b0189306fc47840d0bc
DIST gpxsee-7.9.tar.gz 4347609 BLAKE2B 1555576b72ada6d6302fede1ba0d043b4656afeabaa390e5c32289a0b5e57fdf5a5a880516a6960ea2d00844cdf9a88a894a36e3a82bde6f6fb3c30ddb166bc7 SHA512 24522506894e9ea88ab7b79b34082a1c8c563c8e0c73672ba247a5d013f0c802752665a62686259981f2b49494982d3ad0f06de83f37874e87110bee42964659
diff --git a/sci-geosciences/gpxsee/gpxsee-7.12.ebuild b/sci-geosciences/gpxsee/gpxsee-7.12.ebuild
new file mode 100644
index 000000000000..6b28d5dd63ab
--- /dev/null
+++ b/sci-geosciences/gpxsee/gpxsee-7.12.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PLOCALES="cs da de en es fi fr nb pl pt_BR ru sv tr"
+inherit qmake-utils l10n xdg-utils gnome2-utils
+
+MY_PN="GPXSee"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea files"
+HOMEPAGE="http://www.gpxsee.org/"
+SRC_URI="https://github.com/tumic0/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RDEPEND="dev-qt/qtwidgets:5
+ dev-qt/qtgui:5
+ dev-qt/qtopengl:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsql:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5"
+DEPEND="${RDEPEND}
+ dev-qt/linguist-tools:5"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default
+
+ l10n_find_plocales_changes lang "${PN}_" '.ts'
+
+ rm_ts() {
+ sed -e "s|lang/gpxsee_${1}.ts||" -i gpxsee.pro
+ }
+
+ l10n_for_each_disabled_locale_do rm_ts
+}
+
+src_compile() {
+ lrelease gpxsee.pro
+ eqmake5 gpxsee.pro
+ emake
+}
+
+src_install() {
+ local lang
+ dobin ${PN}
+ dodoc README.md
+ insinto /usr/share/${PN}
+ doins -r pkg/maps pkg/csv
+
+ insinto /usr/share/${PN}/translations
+ for lang in lang/*.qm; do
+ [ -f "${lang}" ] && doins "${lang}"
+ done
+
+ insinto /usr/share/applications
+ doins pkg/${PN}.desktop
+ insinto /usr/share/mime/packages
+ doins pkg/${PN}.xml
+ insinto /usr/share/pixmaps
+ doins icons/${PN}.png
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+ gnome2_icon_cache_update
+}