diff options
author | Sergey Trofimov <sarg@sarg.org.ru> | 2024-08-04 07:34:20 +0200 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-08-22 12:20:25 +0100 |
commit | 2e884407c4c23fe2b19fa0ba4661680a0b59bc50 (patch) | |
tree | 7dadb74e0311e538750fcc9d9e215726a102ff02 /gnu/packages/gps.scm | |
parent | e936d8a1d8b16ec19228072de27e9c4dac254598 (diff) | |
download | guix-2e884407c4c23fe2b19fa0ba4661680a0b59bc50.tar.gz guix-2e884407c4c23fe2b19fa0ba4661680a0b59bc50.zip |
gnu: gpsbabel: Update to 1.9.0.
* gnu/packages/gps.scm (gpsbabel): Update to 1.9.0.
[build-system]: Use cmake-build-system.
[arguments]: Adjust for the new build system.
* gnu/packages/patches/gpsbabel-fix-i686-test.patch: Delete no longer
needed patch.
* gnu/local.mk: Delete patch line.
Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu/packages/gps.scm')
-rw-r--r-- | gnu/packages/gps.scm | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/gnu/packages/gps.scm b/gnu/packages/gps.scm index ebb7eed99c..d79656494f 100644 --- a/gnu/packages/gps.scm +++ b/gnu/packages/gps.scm @@ -29,6 +29,7 @@ #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system scons) #:use-module (guix build-system qt) @@ -40,6 +41,7 @@ #:use-module (gnu packages build-tools) #:use-module (gnu packages compression) #:use-module (gnu packages docbook) + #:use-module (gnu packages geo) #:use-module (gnu packages glib) #:use-module (gnu packages gtk) #:use-module (gnu packages image) @@ -58,7 +60,7 @@ (define-public gpsbabel (package (name "gpsbabel") - (version "1.7.0") + (version "1.9.0") (source (origin (method git-fetch) (uri (git-reference @@ -69,28 +71,37 @@ (file-name (git-file-name name version)) (sha256 (base32 - "010g0vd2f5knpq5p7qfnl31kv3r8m5sjdsafcinbj5gh02j2nzpy")) - (patches (search-patches "gpsbabel-fix-i686-test.patch")) + "0pyrbykf15znn63y9j1npdv148i9b8sgc947xq6dqw8gwx023ji5")) (modules '((guix build utils))) (snippet '(begin (delete-file-recursively "zlib") - (substitute* "Makefile.in" - ((" zlib/z.*\\.h") "")) - ;; Delete files under GPL-compatible licences but never used - ;; on GNU systems, rather than bloating the LICENSE field. - (delete-file "gui/serial_mac.cc") ; Apple MIT - (delete-file "mingw/include/ddk/hidsdi.h") ; public domain + (delete-file-recursively "shapelib") + (delete-file-recursively "mac") #t)))) - (build-system gnu-build-system) ;; TODO: "make doc" requires Docbook & co. + (build-system cmake-build-system) (arguments - `(#:configure-flags - '("--with-zlib=system"))) + (list #:phases + #~(modify-phases %standard-phases + (add-before 'check 'set-up-test-environment + (lambda* (#:key inputs #:allow-other-keys) + (setenv "TZDIR" (search-input-directory inputs "share/zoneinfo")))) + + (replace 'install + (lambda _ + (install-file "gpsbabel" (string-append #$output "/bin"))))) + + #:configure-flags + #~(list + "-DGPSBABEL_MAPPREVIEW=OFF" + "-DGPSBABEL_WITH_LIBUSB=pkgconfig" + "-DGPSBABEL_WITH_SHAPELIB=pkgconfig" + "-DGPSBABEL_WITH_ZLIB=pkgconfig"))) (inputs - (list expat libusb qtbase-5 zlib)) + (list expat libusb libxkbcommon shapelib qt5compat qtbase qtserialport qttranslations zlib)) (native-inputs - (list which qttools-5 libxml2)) ;'xmllint' needed for the KML tests + (list which pkg-config qttools libxml2 tzdata-for-tests)) ;'xmllint' needed for the KML tests (home-page "https://www.gpsbabel.org/") (synopsis "Convert and exchange data with GPS and map programs") (description @@ -99,8 +110,7 @@ popular GPS receivers and mapping programs. It contains extensive data manipulation abilities making it a convenient for server-side processing or as the back-end for other tools. It does not convert, transfer, send, or manipulate maps.") - (license (list license:expat ; shapelib/*.[ch] - license:gpl2+)))) ; everything else + (license (list license:gpl2+)))) (define-public gpscorrelate (package |