diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm index 334de0ddb7..a1095a7fba 100644 --- a/gnu/packages/geo.scm +++ b/gnu/packages/geo.scm @@ -3963,112 +3963,114 @@ time. Interactively visualize vector, raster and volume data.") (license license:gpl2+))) (define-public navit + ;; XXX: The latest commit provides compatibility with GCC 14, switch to tag + ;; when a fresh release is available. (let ((commit "2418e3f42af0641c734f93f3d6d20d3025ad2182") (revision "0")) - (package - (name "navit") - (version (git-version "0.5.6" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/navit-gps/navit") - (commit commit))) - (sha256 - (base32 - "0s7rhg1xyj56g19fh84znj6fzdiglgf010appjydivn5gkyzb9kq")) - (file-name (git-file-name name version)))) - (build-system cmake-build-system) - (arguments - (list - ;; There are no tests - #:tests? #f - ;; With -DSAMPLE_MAP=TRUE (the default), it tries to download a - ;; map during the build process. - #:configure-flags #~(list "-DSAMPLE_MAP=FALSE") - #:phases - #~(modify-phases %standard-phases - (add-after - 'unpack 'patch-navit-config - (lambda _ - ;; For now this package only supports SDL, so if we keep - ;; the configuration as-is, Navit doesn't start. - (substitute* - "navit/navit_shipped.xml" - (("") - "")) - ;; Users are expected to be able to add XML files inside - ;; $NAVIT_SHAREDIR, however that directory is in the store. - (substitute* - "navit/navit_shipped.xml" - (("") - "")) - ;; Navit also works without GPS but in that case there is - ;; no automatic zooming, so we need zoom buttons to be able - ;; to manually zoom in or out. - (substitute* - "navit/navit_shipped.xml" - (((string-append - ""))))) - (add-before - 'build 'set-cache - ;; During the build, svg icons are converted in different - ;; formats, and this needs XDG_CACHE_HOME to work. - (lambda _ - (setenv "XDG_CACHE_HOME" "/tmp/xdg-cache")))))) - (inputs (list dbus-glib - espeak - freeglut - freeimage - freetype - fribidi - glib - gettext-minimal - gpsd - gdk-pixbuf - imlib2 - python - sdl - sdl-image)) - (native-inputs (list fontconfig - (librsvg-for-system) - libxslt - pkg-config - protobuf-c)) - (home-page "https://www.navit-project.org") - (synopsis "Car navigation system with routing engine that uses vector maps data") - (description "Navit is a car navigation system with a routing engine. + (package + (name "navit") + (version (git-version "0.5.6" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/navit-gps/navit") + (commit commit))) + (sha256 + (base32 + "0s7rhg1xyj56g19fh84znj6fzdiglgf010appjydivn5gkyzb9kq")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list + ;; There are no tests + #:tests? #f + ;; With -DSAMPLE_MAP=TRUE (the default), it tries to download a + ;; map during the build process. + #:configure-flags #~(list "-DSAMPLE_MAP=FALSE") + #:phases + #~(modify-phases %standard-phases + (add-after + 'unpack 'patch-navit-config + (lambda _ + ;; For now this package only supports SDL, so if we keep + ;; the configuration as-is, Navit doesn't start. + (substitute* + "navit/navit_shipped.xml" + (("") + "")) + ;; Users are expected to be able to add XML files inside + ;; $NAVIT_SHAREDIR, however that directory is in the store. + (substitute* + "navit/navit_shipped.xml" + (("") + "")) + ;; Navit also works without GPS but in that case there is + ;; no automatic zooming, so we need zoom buttons to be able + ;; to manually zoom in or out. + (substitute* + "navit/navit_shipped.xml" + (((string-append + ""))))) + (add-before + 'build 'set-cache + ;; During the build, svg icons are converted in different + ;; formats, and this needs XDG_CACHE_HOME to work. + (lambda _ + (setenv "XDG_CACHE_HOME" "/tmp/xdg-cache")))))) + (inputs (list dbus-glib + espeak + freeglut + freeimage + freetype + fribidi + glib + gettext-minimal + gpsd + gdk-pixbuf + imlib2 + python + sdl + sdl-image)) + (native-inputs (list fontconfig + (librsvg-for-system) + libxslt + pkg-config + protobuf-c)) + (home-page "https://www.navit-project.org") + (synopsis "Car navigation system with routing engine that uses vector maps data") + (description + "Navit is a car navigation system with a routing engine. -It is meant to work with touchscreen devices, but it also works -without a touchscreen. It also supports text to speech. +It is meant to work with touchscreen devices, but it also works without a +touchscreen. It also supports text to speech. -It can be configured extensively through its own configuration file -format. For instance we can configure the graphical interface, and -which map data is to be displayed at which zoom level. +It can be configured extensively through its own configuration file format. +For instance we can configure the graphical interface, and which map data is +to be displayed at which zoom level. It supports different routing profiles: bike, car, car_avoid_toll, car_pedantic, car_shortest, horse, pedestrian, truck. -It can use gpsd or NMEA GPS directly to get position data. It also -works without GPS: in this case users can also enter position data -directly. +It can use gpsd or NMEA GPS directly to get position data. It also works +without GPS: in this case users can also enter position data directly. -It can also be used to log GPS data to files using the GPX or NMEA -formats, or to replay NMEA data. +It can also be used to log GPS data to files using the GPX or NMEA formats, or +to replay NMEA data. -For maps, it can uses its own \"binfile\" map format, or Garmin map -file format, and data from OpenStreetMap, Garmin maps, Marco Polo -Grosser Reiseplaner, Routeplaner Europa 2007, Map + Route.") - (license license:gpl2)))) +For maps, it can uses its own \"binfile\" map format, or Garmin map file +format, and data from OpenStreetMap, Garmin maps, Marco Polo Grosser +Reiseplaner, Routeplaner Europa 2007, Map + Route.") + (license license:gpl2)))) (define-public laszip (package