unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Anders Thuné" <asse.97@gmail.com>
To: 42348@debbugs.gnu.org
Cc: "Anders Thuné" <asse.97@gmail.com>
Subject: [bug#42348] [PATCH 2/4] gnu: Add libportal.
Date: Tue, 14 Jul 2020 10:18:52 +0200	[thread overview]
Message-ID: <20200714081854.2003-2-asse.97@gmail.com> (raw)
In-Reply-To: <20200714081854.2003-1-asse.97@gmail.com>

* gnu/packages/freedesktop.scm (libportal): New variable.
---
 gnu/packages/freedesktop.scm | 45 ++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 23cd1aabf9..1c5226182b 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -20,6 +20,7 @@
 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
 ;;; Copyright © 2020 Rene Saavedra <pacoon@protonmail.com>
 ;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xyz>
+;;; Copyright © 2020 Anders Thuné <asse.97@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1881,3 +1882,47 @@ useful with system integration.")
 into the Unity menu bar.  Based on KSNI, it also works in KDE and will
 fallback to generic Systray support if none of those are available.")
     (license license:lgpl2.1+)))
+
+(define-public libportal
+  (let ((commit "bff3289")
+        (revision "1"))
+    (package
+      (name "libportal")
+      (version (git-version "0.3" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/flatpak/libportal")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "104b91qircr1i9jkmm6f725awywky52aimrki303kiaadn2v8b5i"))))
+      (build-system meson-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'install 'move-doc
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let ((out (assoc-ref outputs "out"))
+                     (doc (assoc-ref outputs "doc"))
+                     (html "/share/gtk-doc"))
+                 (copy-recursively (string-append out html)
+                                   (string-append doc html))
+                 (delete-file-recursively (string-append out html))
+                 #t))))))
+      (native-inputs
+       `(("pkg-config" ,pkg-config)
+         ("gtk-doc" ,gtk-doc)
+         ("docbook-xsl" ,docbook-xsl)
+         ("docbook-xml" ,docbook-xml)
+         ("libxml2" ,libxml2)
+         ("glib:bin" ,glib "bin")))
+      (propagated-inputs
+       `(("glib" ,glib)))
+      (outputs '("out" "doc"))
+      (home-page "https://github.com/flatpak/libportal")
+      (synopsis "Flatpak portal library")
+      (description
+       "A library providing GIO-style async APIs for most Flatpak portals.")
+      (license license:lgpl2.1+))))
-- 
2.27.0





  reply	other threads:[~2020-07-14  8:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-13 23:20 [bug#42348] [PATCH 0/4] Add xdg-desktop-portal Anders Thuné
2020-07-14  7:58 ` Giovanni Biscuolo
2020-07-14  8:16   ` Anders Thuné
2020-07-14 13:02     ` Giovanni Biscuolo
2020-07-14  8:18 ` [bug#42348] [PATCH 1/4] gnu: Add pipewire-0.3 Anders Thuné
2020-07-14  8:18   ` Anders Thuné [this message]
2020-07-14  8:18   ` [bug#42348] [PATCH 3/4] gnu: Add xdg-desktop-portal Anders Thuné
2020-07-14  8:18   ` [bug#42348] [PATCH 4/4] gnu: Add xdg-desktop-portal-gtk Anders Thuné
2020-07-27  9:55 ` bug#42348: [PATCH 0/4] Add xdg-desktop-portal Ludovic Courtès
2020-08-01 20:02   ` [bug#42348] " Anders Thuné

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200714081854.2003-2-asse.97@gmail.com \
    --to=asse.97@gmail.com \
    --cc=42348@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).