summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2018-06-26 19:01:53 +0700
committerAndrey Grozin <grozin@gentoo.org>2018-06-26 19:01:53 +0700
commit6d98f0ed045f5090683176100fe1b3508ddca589 (patch)
tree7ed5f9f554d603139b247a42afb8a39b3a693fd2 /sci-geosciences/gpxsee
parentsci-mathematics/ginac: bump to 1.7.4 (diff)
downloadgentoo-6d98f0ed045f5090683176100fe1b3508ddca589.tar.gz
gentoo-6d98f0ed045f5090683176100fe1b3508ddca589.tar.bz2
gentoo-6d98f0ed045f5090683176100fe1b3508ddca589.zip
sci-geosciences/gpxsee: bump to 5.14, installation with empty L10N fixed
Closes: https://bugs.gentoo.org/657440 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'sci-geosciences/gpxsee')
-rw-r--r--sci-geosciences/gpxsee/Manifest1
-rw-r--r--sci-geosciences/gpxsee/gpxsee-5.14.ebuild77
2 files changed, 78 insertions, 0 deletions
diff --git a/sci-geosciences/gpxsee/Manifest b/sci-geosciences/gpxsee/Manifest
index 69ef51fd97fe..032017d0b22c 100644
--- a/sci-geosciences/gpxsee/Manifest
+++ b/sci-geosciences/gpxsee/Manifest
@@ -1,3 +1,4 @@
DIST GPXSee-5.1.tar.gz 926296 BLAKE2B 77685685229869bf8bb6c7c71e49c2b2a0a93e7b1d2c16912f2ddc2fa5b779e92a650760c726b4f17b0dcc5154783d3f1c6ab69b44b20257549dc0cd13669d8b SHA512 e963228d168822f9796ec1e5244a5eefcf0ca24f424dd579531fe4749f5d946724b4e76f2c2ab028776d87df6e593e06d04963c2e1e338ec0d12d729be646723
DIST GPXSee-5.10.tar.gz 3009762 BLAKE2B 6152b5268c1715ccd6c2d080a5a720a9369b09834a0d192eb37ca95c10948613c49cd078ff4ffeb4684d7305f557592cee34c1ab2fab1cad49cc01d956844eec SHA512 74f99d18c692e7411ec7350c5a2f3618884b5e84e799b4999b5988a8c5a8af000ebe325b0523dbb7daff1fc0e05687a3d8f53d136934c9ca8cd791b1eee445db
DIST GPXSee-5.13.tar.gz 3058493 BLAKE2B 3c262d1e78380f8cc0a4a989dd721cfb6eef72f2285f9f5d88f8d521c6d0b24b3c5e8a3b3b7a3a87b7a0e11ca350540a78d826e62afe3c82ad614899c5663f79 SHA512 7cffbf5d3e928cfc14074c62c046be9b2e7546c1cc59716c52c5f43b8a1ffabe04585cff5b4eccbfd6a756c6d635443af610bb3e8c82834f21bb768a93f7bbb6
+DIST gpxsee-5.14.tar.gz 3155455 BLAKE2B 6180efa345532c99a655b80b6052e6646d4b8bcf5b7feda1eec6f0c73ca63a21cf6ab7efd29e297d35e2cd5ab8cd73204864f1db0e9417107b59bc29f8982d3e SHA512 0fa666b999bb6990a3e78087053f9647c023a21b2bbec870fffc4fe1df3982e06beb294231340c4a0a006d06a1c136f94a09724ffa76758c1246d79f3077b075
diff --git a/sci-geosciences/gpxsee/gpxsee-5.14.ebuild b/sci-geosciences/gpxsee/gpxsee-5.14.ebuild
new file mode 100644
index 000000000000..50bccd2c2d46
--- /dev/null
+++ b/sci-geosciences/gpxsee/gpxsee-5.14.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PLOCALES="cs de fi fr pl ru sv"
+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/qtprintsupport:5
+ dev-qt/qtnetwork: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
+ newbin ${MY_PN} ${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
+}