unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#75839] [PATCH] gnu: Add pantheon-screenshot
@ 2025-01-25 19:33 altadil via Guix-patches via
  2025-02-04 21:55 ` [bug#75839] QA review for 75839 Andrew Wong
  2025-02-05 11:52 ` bug#75839: Close Andreas Enge
  0 siblings, 2 replies; 3+ messages in thread
From: altadil via Guix-patches via @ 2025-01-25 19:33 UTC (permalink / raw)
  To: 75839; +Cc: altadil

    * gnu/packages/pantheon.scm (pantheon-screenshot): New variable.

Change-Id: I68fac745434503b43cb0137cddb48a56478960d9
---
Built and tested successfully on Guix System on x86_64-linux.
 gnu/packages/pantheon.scm | 47 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/pantheon.scm b/gnu/packages/pantheon.scm
index 9268aff292..da322f3e91 100644
--- a/gnu/packages/pantheon.scm
+++ b/gnu/packages/pantheon.scm
@@ -30,6 +30,7 @@ (define-module (gnu packages pantheon)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages libcanberra)
   #:use-module (gnu packages package-management)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages photo)
@@ -258,6 +259,52 @@ (define-public pantheon-photos
     (home-page "https://elementary.io/open-source")
     (license license:lgpl2.1+)))
 
+(define-public pantheon-screenshot
+  (package
+    (name "pantheon-screenshot")
+    (version "8.0.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/elementary/screenshot")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1h3xv0pckkkgvqkk6fxssydq9gmncapaf1hx4n7j19jcvhwx65da"))))
+    (build-system meson-build-system)
+    (arguments
+      (list
+        #:glib-or-gtk? #t
+        #:phases
+          #~(modify-phases %standard-phases
+               (add-after 'unpack 'disable-schema-cache-generation
+                 (lambda _ (setenv "DESTDIR" "/")))
+               (add-after 'install 'install-symlinks
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let* ((bin (string-append #$output
+                                              "/bin/io.elementary.screenshot"))
+                          (link (string-append #$output
+                                               "/bin/pantheon-screenshot")))
+                     (symlink bin link)))))))
+    (native-inputs (list desktop-file-utils
+                         gettext-minimal ;for msgfmt
+                         `(,glib "bin")
+                         pkg-config
+                         vala))
+    (inputs (list granite
+                  gtk
+                  libcanberra
+                  libgee
+                  libportal
+                  libhandy))
+    (propagated-inputs (list glib))
+    (synopsis "Screenshot tool")
+    (description "Screenshot is a screenshot tool designed for the Pantheon
+desktop environment.")
+    (home-page "https://elementary.io/open-source")
+    (license license:lgpl3)))
+
 (define-public pantheon-stylesheet
   (package
     (name "pantheon-stylesheet")
-- 
2.47.1






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

* [bug#75839] QA review for 75839
  2025-01-25 19:33 [bug#75839] [PATCH] gnu: Add pantheon-screenshot altadil via Guix-patches via
@ 2025-02-04 21:55 ` Andrew Wong
  2025-02-05 11:52 ` bug#75839: Close Andreas Enge
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Wong @ 2025-02-04 21:55 UTC (permalink / raw)
  To: control, 75839

user guix
usertag 75839 + reviewed-looks-good
thanks

Guix QA review form submission:


Items marked as checked: Lint warnings, Package builds, New package 
licenses, New package tests, New package synopsis and descriptions





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

* bug#75839: Close
  2025-01-25 19:33 [bug#75839] [PATCH] gnu: Add pantheon-screenshot altadil via Guix-patches via
  2025-02-04 21:55 ` [bug#75839] QA review for 75839 Andrew Wong
@ 2025-02-05 11:52 ` Andreas Enge
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Enge @ 2025-02-05 11:52 UTC (permalink / raw)
  To: 75839-done; +Cc: Andrew Wong

Pushed, thanks for the patch and the review!

Andreas





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

end of thread, other threads:[~2025-02-05 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-25 19:33 [bug#75839] [PATCH] gnu: Add pantheon-screenshot altadil via Guix-patches via
2025-02-04 21:55 ` [bug#75839] QA review for 75839 Andrew Wong
2025-02-05 11:52 ` bug#75839: Close Andreas Enge

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).