unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@libertad.pw>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] gnu: hplip: Add policykit support.
Date: Thu, 29 Dec 2016 14:05:53 +0000	[thread overview]
Message-ID: <20161229140553.31265-3-ng0@libertad.pw> (raw)
In-Reply-To: <20161229140553.31265-1-ng0@libertad.pw>

* gnu/packages/cups.scm (hplip): Add policykit support.
[arguments](configure-flags): Add "--enable-dbus-build", "--enable-policykit".
[arguments](make-flags): Add "policykit_dbus_etcdir", "policykit_dir",
"policykit_dbus_sharedir".
(inputs): Add "polkit".
---
 gnu/packages/cups.scm | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index d264d6b12..ae975504b 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -40,6 +40,7 @@
   #:use-module (gnu packages pdf)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages tls)
+  #:use-module (gnu packages polkit)
   #:use-module (gnu packages qt))
 
 ;; Delay to avoid module circularity problems.
@@ -351,8 +352,9 @@ device-specific programs to convert and print many types of files.")
          "--enable-gui-build"
          "--disable-qt4"
          "--enable-qt5"
+         "--enable-dbus-build"
+         "--enable-policykit"
          ;; TODO add foomatic drv install eventually.
-         ;; TODO --enable-policykit eventually.
          ,(string-append "--with-cupsfilterdir="
                          (assoc-ref %outputs "out") "/lib/cups/filter")
          ,(string-append "--with-cupsbackenddir="
@@ -362,6 +364,19 @@ device-specific programs to convert and print many types of files.")
          ,(string-append "--with-systraydir="
                          (assoc-ref %outputs "out") "/etc/xdg"))
 
+       #:make-flags
+       ;; Already set in 'fix-hard-coded-file-names phase:
+       ;; "rulesdir" and "halpredir".
+       `(,(string-append "policykit_dbus_etcdir="
+                         (assoc-ref %outputs "out")
+                         "/etc/dbus-1/system.d")
+         ,(string-append "policykit_dir="
+                         (assoc-ref %outputs "out")
+                         "/share/polkit-1/actions")
+         ,(string-append "policykit_dbus_sharedir="
+                         (assoc-ref %outputs "out")
+                         "/share/dbus-1/system-services"))
+
        #:imported-modules ((guix build python-build-system)
                            ,@%gnu-build-system-modules)
        #:modules ((guix build gnu-build-system)
@@ -429,5 +444,6 @@ device-specific programs to convert and print many types of files.")
               ("python-pygobject" ,python-pygobject)
               ("python-sip" ,python-sip)
               ;; TODO: Make hp-setup find python-dbus.
-              ("python-dbus" ,python-dbus)))
+              ("python-dbus" ,python-dbus)
+              ("polkit" ,polkit)))
     (native-inputs `(("pkg-config" ,pkg-config)))))
-- 
2.11.0

  parent reply	other threads:[~2016-12-29 14:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29 11:50 hplip: Add qt5 gui ng0
2016-12-29 11:50 ` [PATCH] gnu: " ng0
2016-12-29 11:56   ` Danny Milosavljevic
2016-12-29 12:29     ` ng0
2016-12-29 13:27 ` ng0
2016-12-29 14:05   ` hplip: Add qt5 gui, try to fix policykit support ng0
2016-12-29 14:05     ` [PATCH 1/2] gnu: hplip: Add qt5 gui ng0
2017-01-02 21:04       ` Ludovic Courtès
2016-12-29 14:05     ` ng0 [this message]
2017-01-15 21:56     ` hplip: Add qt5 gui, try to fix policykit support Andy Patterson
2017-01-15 23:47       ` ng0
2017-01-16  9:58       ` CUPS and HP printers Ludovic Courtès
2017-01-24  1:27         ` ng0
2017-01-27 23:14           ` Ludovic Courtès

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=20161229140553.31265-3-ng0@libertad.pw \
    --to=ng0@libertad.pw \
    --cc=guix-devel@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).