From: Jonathan Brielmaier <jonathan.brielmaier@web.de>
To: 44400@debbugs.gnu.org
Cc: Jonathan Brielmaier <jonathan.brielmaier@web.de>
Subject: [bug#44400] [PATCH 1/2] WIP: gnu: Add phoc.
Date: Mon, 2 Nov 2020 23:28:26 +0100 [thread overview]
Message-ID: <20201102222827.23533-1-jonathan.brielmaier@web.de> (raw)
In-Reply-To: <20201102221301.23038-1-jonathan.brielmaier@web.de>
* gnu/packages/gnome.scm (phoc): New variable.
---
gnu/packages/gnome.scm | 73 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 73 insertions(+)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index cd7bc0ceba..af5ea09e55 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -12034,3 +12034,76 @@ for the GNOME 3.x platform with many features. It aims to be a very complete
editing environment for translation issues within the GNU gettext/GNOME desktop
world.")
(license license:gpl3+)))
+
+(define-public phoc
+ (package
+ (name "phoc")
+ (version "0.4.4")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://source.puri.sm/Librem5/phoc.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "08nqlmbklyjiirqdv56cs94rjs0bjwzjcccmbgzmjdbxxpklqy9k"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ ; source of wlroots required in subprojects/wlroots folder
+ (add-after 'unpack 'get-wlroots
+ (lambda* (#:key inputs #:allow-other-keys)
+ (copy-recursively (assoc-ref inputs "wlroots-librem5-source")
+ "subprojects/wlroots")
+ #t))
+ (add-after 'get-wlroots 'patch-paths
+ (lambda _
+ (substitute* "src/server.c"
+ (("/bin/sh") (which "sh")))
+ (substitute* "tests/test-run.c"
+ (("/bin/true") (which "true"))
+ (("/bin/false") (which "false")))
+ #t))
+ ;; Those check a running phoc server against some screenshots in the repo.
+ ;; They differ only by the mouse cursor (shadow vs. no shadow).
+ (add-before 'patch-paths 'disable-failing-tests
+ (lambda _
+ (substitute* "tests/meson.build"
+ (("'layer-shell',") "")
+ (("'xdg-shell',") "")
+ (("'phosh'") ""))
+ #t))
+ (add-before 'check 'pre-check
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Tests require a running X server.
+ (system "Xvfb :1 &")
+ (setenv "DISPLAY" ":1")
+ #t)))))
+ (native-inputs
+ `(("gobject-introspection" ,gobject-introspection)
+ ("glib:bin" ,glib "bin")
+ ("gnome-desktop" ,gnome-desktop)
+ ("libinput" ,libinput)
+ ("libxkbcommon" ,libxkbcommon)
+ ("pkg-config" ,pkg-config)
+ ("wayland" ,wayland)
+ ("wayland-protocols" ,wayland-protocols)
+ ("wlroots-librem5-source" ; patched version for Librem 5
+ ,(origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://source.puri.sm/Librem5/wlroots.git")
+ (commit "7723a09a226d812aa51d1439c2b5e8e21238d45c")))
+ (file-name (string-append name "-" version "-checkout"))
+ (sha256
+ (base32
+ "0k7662x40ssc0zvvz1qpwcwl98ndfpv2363hg9lsff5y0p4gk653"))))
+ ("xorg-server" ,xorg-server-for-tests)))
+ (propagated-inputs
+ `(("mutter" ,mutter)))
+ (synopsis "wlroots based phone compositor")
+ (description "Phoc is a...")
+ (home-page "https://source.puri.sm/Librem5/phoc")
+ (license license:gpl3))) ; TODO or gpl3+?
--
2.29.2
next prev parent reply other threads:[~2020-11-02 22:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-02 22:13 [bug#44400] [PATCH 0/2] WIP: Add phosh Jonathan Brielmaier
2020-11-02 22:28 ` Jonathan Brielmaier [this message]
2020-11-02 22:28 ` [bug#44400] [PATCH 2/2] WIP: gnu: " Jonathan Brielmaier
2021-02-08 11:02 ` Jonathan Brielmaier
2021-11-17 10:16 ` [bug#44400] [PATCH v2 1/4] gnu: Add phoc phodina via Guix-patches via
2021-11-17 10:17 ` [bug#44400] [PATCH v2 2/4] gnu: libhandy: Update to 1.5.0 phodina via Guix-patches via
2021-11-17 10:18 ` [bug#44400] [PATCH v2 3/4] gnu: Add callaudiod phodina via Guix-patches via
2021-11-17 10:19 ` [bug#44400] [PATCH v2 4/4] WIP: gnu: Add phosh phodina via Guix-patches via
2021-11-17 10:26 ` Jonathan Brielmaier
2021-11-17 10:32 ` phodina via Guix-patches via
2021-11-28 10:46 ` phodina via Guix-patches via
2022-03-24 13:32 ` [bug#44400] [PATCH v3 1/5] " phodina via Guix-patches via
2021-11-17 10:26 ` [bug#44400] Phosh v2 patches comments phodina via Guix-patches via
2022-03-04 17:40 ` [bug#44400] [PATCH 0/2] WIP: Add phosh Jonathan Brielmaier
2022-08-14 20:00 ` [bug#44400] [PATCH v4]: gnu: " phodina via Guix-patches via
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=20201102222827.23533-1-jonathan.brielmaier@web.de \
--to=jonathan.brielmaier@web.de \
--cc=44400@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).