diff mbox series

[bug#73019,v5,1/3] gnu: Add libpqmarble.

Message ID acecdf12b5a35f793a765bcfb6ee9fdf6e4afd51.1725737233.git.ashvithshetty10@gmail.com
State New
Headers show
Series Add Black Box terminal | expand

Commit Message

Ashvith Shetty Sept. 7, 2024, 7:31 p.m. UTC
* gnu/packages/gnome-xyz.scm (libpqmarble-2.0.0): New public variable.

Change-Id: I15889e5e17eb533d8486322d6db48eb31ee557fc
---
 gnu/packages/gnome-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/gnome-xyz.scm b/gnu/packages/gnome-xyz.scm
index a09c0befb0..c5abcbb14d 100644
--- a/gnu/packages/gnome-xyz.scm
+++ b/gnu/packages/gnome-xyz.scm
@@ -20,6 +20,7 @@ 
 ;;; Copyright © 2022 Sughosha <sughosha@proton.me>
 ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
 ;;; Copyright © 2023 Eidvilas Markevičius <markeviciuseidvilas@gmail.com>
+;;; Copyright © 2024 Ashvith Shetty <ashvithshetty10@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1759,3 +1760,38 @@  (define-public tiramisu
 notifications to STDOUT in order to allow the user to process notifications any
 way they prefer.")
     (license license:expat)))
+
+(define-public libpqmarble
+  (package
+    (name "libpqmarble")
+    (version "2.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.gnome.org/raggesilver/marble")
+             ;; Tag for v2.0.0 is currently missing, so use commit instead
+             (commit "f240b2ec7d5cdacb8fdcc553703420dc5101ffdb")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0jx53yadqkcsfk9khkqmapznd8g9xg98wkgkigh964dj6gpp7fx1"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:glib-or-gtk? #t
+       #:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'fix-gtk4-update-icon-cache
+                    (lambda _
+                      (substitute* "build-aux/meson/postinstall.py"
+                        (("gtk-update-icon-cache")
+                         "gtk4-update-icon-cache")))))))
+    (native-inputs (list pkg-config
+                         vala
+                         `(,gtk "bin") ;gtk4-update-icon-cache
+                         `(,glib "bin") ;for glib-compile-schemas, etc.
+                         desktop-file-utils ;for update-desktop-database
+                         gobject-introspection))
+    (inputs (list gtk))
+    (home-page "https://gitlab.gnome.org/raggesilver/marble")
+    (synopsis "Utility library for GNOME apps")
+    (description "Utility library for GNOME apps.")
+    (license license:gpl3)))