unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: florhizome@posteo.net
To: 58501@debbugs.gnu.org
Cc: florhizome <florhizome@posteo.net>
Subject: [bug#58501] [PATCH v2 1/3] gnu: Add iio-sensor-proxy
Date: Thu,  3 Nov 2022 20:59:54 +0000	[thread overview]
Message-ID: <8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net> (raw)
In-Reply-To: <87bkqflolh.fsf@posteo.net>

From: florhizome <florhizome@posteo.net>

Second round, adjust to gexp argument style, enable all tests and minor improvements

* gnu/packages/freedesktop.scm (Add iio-sendor-proxy): New variable.
---
 gnu/packages/freedesktop.scm | 51 ++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 07ccf9f8f2..8190f59c48 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2022 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
 ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
+;;; Copyright © 2022 florhizome <florhizome@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -728,6 +729,56 @@ (define-public elogind
 of a the system to know what users are logged in, and where.")
     (license license:lgpl2.1+)))
 
+(define-public iio-sensor-proxy
+ (package
+    (name "iio-sensor-proxy")
+    (version "3.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1dpcc3i53aw5illfhfkwxy0hsjsnya5iw4iv4al46vgyvcnvjc8z"))))
+    (build-system meson-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list "-Dsystemdsystemunitdir=false"
+                   (string-append "-Dudevrulesdir="
+                                  #$output "/lib/udev"))
+           #:glib-or-gtk? #t
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'configure 'fake-pkexec
+                 (lambda _
+                   (setenv "PKEXEC_UID" "-1")))
+               (add-before 'configure 'correct-polkit-dir
+                 (lambda _
+                   (substitute* "meson.build"
+                     (("polkit_gobject_dep\\..*")
+                      (string-append "'" #$output "/share/polkit-1/actions'"))))))))
+    (native-inputs
+     (list dbus
+           (list glib "bin")
+           gobject-introspection
+           python
+           python-dbusmock
+           python-psutil
+           pkg-config
+           umockdev))
+    (inputs
+     (list glib libgudev polkit))
+    (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy")
+    (synopsis "Proxies sensor devices to applications through D-Bus")
+    (description "With a GNOME 3.18 (or newer) based system, orientation changes
+ will automatically be applied when rotating the panel, ambient light will be
+ used to change the screen brightness, and GeoClue will be able to read the compass
+data to show the direction in Maps.")
+    (license license:gpl3)))
+
 (define-public basu
   (package
     (name "basu")

base-commit: 754f260753fb6ebe28325616bc08336a184e4621
prerequisite-patch-id: 36ae907c0ae2cbc001f774c0514ab217855270c2
prerequisite-patch-id: 2c99b804c1a929fc9d74b4c3d92263cbd296f785
prerequisite-patch-id: 2525aea715c2eb5be5f61e2e14296a36898413ca
prerequisite-patch-id: f7afbf36e2776eced1e69090ec127a40456efca4
-- 
2.38.0





  parent reply	other threads:[~2022-11-03 21:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-13 15:39 [bug#58501] [PATCH] gnu: Add userspace desktop services florhizome
2022-10-14 12:02 ` [bug#58501] [PATCH 1/3] gnu: freedesktop: Add iio-sensor-proxy florhizome
2022-10-14 12:02   ` [bug#58501] [PATCH 2/3] gnu: freedesktop: Add power-profiles-daemon florhizome
2022-10-14 12:02   ` [bug#58501] [PATCH 3/3] gnu: freedesktop: Add low-memory-monitor florhizome
2022-11-03 20:59 ` florhizome [this message]
2022-11-03 20:59   ` [bug#58501] [PATCH v2 2/3] gnu: Add power-profiles-daemon florhizome
2022-11-03 20:59   ` [bug#58501] [PATCH v2 3/3] gnu: Add low-memory-monitor florhizome
2023-03-14 15:44 ` [bug#58501] [PATCH] gnu: Add userspace desktop services florhizome
2023-03-14 15:48   ` bug#58501: " Tobias Geerinckx-Rice 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=8dc869129712737addcc056b47384d3fd66c8977.1667508108.git.florhizome@posteo.net \
    --to=florhizome@posteo.net \
    --cc=58501@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).