unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#30358] [PATCH] gnu: Add gpxsee.
@ 2018-02-05 14:21 Mathieu Othacehe
  2018-02-05 16:47 ` Danny Milosavljevic
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Othacehe @ 2018-02-05 14:21 UTC (permalink / raw)
  To: 30358

* gnu/packages/gps.scm (gpxsee): New variable.
---
 gnu/packages/gps.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/gps.scm b/gnu/packages/gps.scm
index 732c073b5..b9d0d3109 100644
--- a/gnu/packages/gps.scm
+++ b/gnu/packages/gps.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -171,3 +172,51 @@ useful in measurements where Global Positioning System (GPS) is not available,
 such as underground.  It features the ability to adjust in local Cartesian
 coordinates as well as partial support for adjustments in global coordinate systems.")
     (license license:gpl3+)))
+
+(define-public gpxsee
+  (package
+    (name "gpxsee")
+    (version "4.19")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append "https://github.com/tumic0/GPXSee/archive/"
+                              version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "00j0gjldw1kn3i45dppld1pz8r4s1g7lw89k7gfvvqbjjyjih1wg"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'configure
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (for-each (lambda (file)
+                         (system* "lrelease" file))
+                       (find-files "lang" "\\.ts"))
+             (substitute* "src/config.h"
+               (("/usr/share/gpxsee")
+                (string-append
+                 (assoc-ref outputs "out") "/share/gpxsee/")))
+             (zero?
+              (system* "qmake"
+                       (string-append "PREFIX="
+                                      (assoc-ref outputs "out"))))))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (share (string-append out "/share/gpxsee/")))
+               (install-file "GPXSee" (string-append out "/bin/GPXSee"))
+               (install-file "pkg/maps.txt" share))
+             #t)))))
+    (inputs
+     `(("qtbase" ,qtbase)))
+    (native-inputs
+     `(("qttools" ,qttools)))
+    (home-page "http://www.gpxsee.org")
+    (synopsis "GPX file viewer and analyser")
+    (description
+     "GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX,
+TCX, KML, FIT, IGC and NMEA files.")
+    (license license:gpl3)))
-- 
2.16.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#30358] [PATCH] gnu: Add gpxsee.
  2018-02-05 14:21 [bug#30358] [PATCH] gnu: Add gpxsee Mathieu Othacehe
@ 2018-02-05 16:47 ` Danny Milosavljevic
  2018-02-06 10:04   ` Mathieu Othacehe
  2018-02-06 14:52   ` bug#30358: " Mathieu Othacehe
  0 siblings, 2 replies; 4+ messages in thread
From: Danny Milosavljevic @ 2018-02-05 16:47 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 30358

Hi Mathieu,

On Mon,  5 Feb 2018 15:21:08 +0100
Mathieu Othacehe <m.othacehe@gmail.com> wrote:

> +             (for-each (lambda (file)
> +                         (system* "lrelease" file))
> +                       (find-files "lang" "\\.ts"))

Please add comment that that's for translation.

> +             (substitute* "src/config.h"
> +               (("/usr/share/gpxsee")
> +                (string-append
> +                 (assoc-ref outputs "out") "/share/gpxsee/")))

Why once with, once without slash at the end?

> +             (zero?
> +              (system* "qmake"
> +                       (string-append "PREFIX="
> +                                      (assoc-ref outputs "out"))))))

Please use "invoke".

> +    (synopsis "GPX file viewer and analyser")
> +    (description
> +     "GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX,
> +TCX, KML, FIT, IGC and NMEA files.")

"analyser" or "analyzer" ?

Otherwise LGTM!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#30358] [PATCH] gnu: Add gpxsee.
  2018-02-05 16:47 ` Danny Milosavljevic
@ 2018-02-06 10:04   ` Mathieu Othacehe
  2018-02-06 14:52   ` bug#30358: " Mathieu Othacehe
  1 sibling, 0 replies; 4+ messages in thread
From: Mathieu Othacehe @ 2018-02-06 10:04 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30358


Hi Danny,

Thanks for the review!

>> +    (synopsis "GPX file viewer and analyser")
>> +    (description
>> +     "GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX,
>> +TCX, KML, FIT, IGC and NMEA files.")
>
> "analyser" or "analyzer" ?

It seems that analyzer is US while analyser is GB, which one should I
pick ?

I fixed the other issues.

Mathieu

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#30358: [PATCH] gnu: Add gpxsee.
  2018-02-05 16:47 ` Danny Milosavljevic
  2018-02-06 10:04   ` Mathieu Othacehe
@ 2018-02-06 14:52   ` Mathieu Othacehe
  1 sibling, 0 replies; 4+ messages in thread
From: Mathieu Othacehe @ 2018-02-06 14:52 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: 30358-done


Hi Danny,

> "analyser" or "analyzer" ?
>
> Otherwise LGTM!

I choose analyzer and pushed, thanks.

Mathieu

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-06 14:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 14:21 [bug#30358] [PATCH] gnu: Add gpxsee Mathieu Othacehe
2018-02-05 16:47 ` Danny Milosavljevic
2018-02-06 10:04   ` Mathieu Othacehe
2018-02-06 14:52   ` bug#30358: " Mathieu Othacehe

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).