From patchwork Fri Oct 14 12:02:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: florhizome X-Patchwork-Id: 43403 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7BC2027BBE9; Fri, 14 Oct 2022 15:56:42 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 41F4B27BBEA for ; Fri, 14 Oct 2022 15:56:40 +0100 (BST) Received: from localhost ([::1]:45540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojM75-0005JV-Es for patchwork@mira.cbaines.net; Fri, 14 Oct 2022 10:56:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojM5Y-00042S-6C for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojM5X-0004Gb-T0 for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojM5X-00063W-NG for guix-patches@gnu.org; Fri, 14 Oct 2022 10:55:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58501] [PATCH 1/3] gnu: freedesktop: Add iio-sensor-proxy References: <87bkqflolh.fsf@posteo.net> In-Reply-To: <87bkqflolh.fsf@posteo.net> Resent-From: florhizome@posteo.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 Oct 2022 14:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58501@debbugs.gnu.org Cc: florhizome Received: via spool by 58501-submit@debbugs.gnu.org id=B58501.166575925823166 (code B ref 58501); Fri, 14 Oct 2022 14:55:03 +0000 Received: (at 58501) by debbugs.gnu.org; 14 Oct 2022 14:54:18 +0000 Received: from localhost ([127.0.0.1]:38291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojM4n-00061U-Ox for submit@debbugs.gnu.org; Fri, 14 Oct 2022 10:54:18 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojJP1-0000kG-CE for 58501@debbugs.gnu.org; Fri, 14 Oct 2022 08:03:00 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3A1F4240027 for <58501@debbugs.gnu.org>; Fri, 14 Oct 2022 14:02:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665748973; bh=TG+Gl0moTpOb1UAdHMjkcldrSQjA7UIDw4F++7AiAz8=; h=From:To:Cc:Subject:Date:From; b=f3XZZcbIBU4wOcH4+C9GRclGUwmS1vJeuRoQk3vB1doBcy4Vw44pUxkiJMOiz0l3N aXC5ot37xaavwpNhYZpomzoFbU3vTwPvbjqssAloLQELw96GenLW8Kac+J2+pKz3qS /LKo9QZKKRwqbjS08QFKcCQwG80XyZfBbZK1UIL1XRMZL/aylCiRJhmHVUHqZHgeFq m5P/mhPFPlCHb1RYYUpYNRuzbwwNKsmDcuz6HH6srgKa1/Cru6cabWndIbkxb7xHvf /zWO4BLtdkUWYDDSIBgij3mVh9xs6EzdDIGc21cVBlej+thOqQQRSWaMXwFNTYVFc3 VZkk4FzPei/Cg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MplQ21KKmz9rxP; Fri, 14 Oct 2022 14:02:49 +0200 (CEST) From: florhizome@posteo.net Date: Fri, 14 Oct 2022 12:02:44 +0000 Message-Id: MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 14 Oct 2022 10:54:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: florhizome --- gnu/packages/freedesktop.scm | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) base-commit: 86ec52f66735b122b9035eba56516fd16f3be958 prerequisite-patch-id: 253e1cc8278ab9981294f4e483c7b29a466672d9 prerequisite-patch-id: fb797b9fdd73d1c18cba5dbd5804396d333f13df prerequisite-patch-id: 6f7fd28e90950c738840d3794ce7cd534f0d9180 diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index ab37f04bef..d72b18caf5 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -728,6 +728,57 @@ (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 + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'fake-pkexec + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (setenv "PKEXEC_UID" "-1")))) + (add-before 'configure 'correct-polkit-dir + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* + "meson.build" + (("polkit_gobject_dep\\.get_pkgconfig_variable\\('policydir'\\)") + (string-append "'" out "/share/polkit-1/actions'"))))))))) + (native-inputs + (list `(,glib "bin") python umockdev python-dbusmock python-psutil dbus + gobject-introspection pkg-config)) + (inputs + (list glib polkit libgudev)) + (synopsis "Proxies sensor devices (accelerometers, light sensors, compass) + 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. Can be used by other DEs, too though.") + (home-page "https://gitlab.freedesktop.org/hadess/iio-sensor-proxy") + (license license:gpl3))) + (define-public basu (package (name "basu")