guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: cups-filters: Look for test page in own output dir.


From: Ludovic Courtès
Subject: 01/01: gnu: cups-filters: Look for test page in own output dir.
Date: Mon, 10 Oct 2016 21:47:35 +0000 (UTC)

civodul pushed a commit to branch core-updates
in repository guix.

commit 085cca5bc1d8ca6b3d7d01e4a5c4f0f3886e7fbc
Author: Andy Wingo <address@hidden>
Date:   Mon Oct 10 15:29:59 2016 +0200

    gnu: cups-filters: Look for test page in own output dir.
    
    * gnu/packages/cups.scm (cups-filters): Update to look for the test page
      template in the cups-filter output dir, as cups and cups-filter do not
      share an output dir.
    
    Co-authored-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/cups.scm |   28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index 9f1ffd1..2050c9b 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -64,17 +64,23 @@
               (snippet
                ;; install backends, banners and filters to cups-filters output
                ;; directory, not the cups server directory
-               '(substitute* "Makefile.in"
-                  (("CUPS_DATADIR = @CUPS_DATADIR@")
-                   "CUPS_DATADIR = $(PREFIX)/share/cups")
-                  (("pkgcupsserverrootdir = \\$\\(CUPS_SERVERROOT\\)")
-                   "pkgcupsserverrootdir = $(PREFIX)")
-                  ;; Choose standard directories notably so that binaries are
-                  ;; stripped.
-                  (("pkgbackenddir = \\$\\(CUPS_SERVERBIN\\)/backend")
-                   "pkgbackenddir = $(PREFIX)/lib/cups/backend")
-                  (("pkgfilterdir = \\$\\(CUPS_SERVERBIN\\)/filter")
-                   "pkgfilterdir = $(PREFIX)/lib/cups/filter")))))
+               '(begin
+                  (substitute* "Makefile.in"
+                    (("CUPS_DATADIR = @CUPS_DATADIR@")
+                     "CUPS_DATADIR = $(PREFIX)/share/cups")
+                    (("pkgcupsserverrootdir = \\$\\(CUPS_SERVERROOT\\)")
+                     "pkgcupsserverrootdir = $(PREFIX)")
+                    ;; Choose standard directories notably so that binaries are
+                    ;; stripped.
+                    (("pkgbackenddir = \\$\\(CUPS_SERVERBIN\\)/backend")
+                     "pkgbackenddir = $(PREFIX)/lib/cups/backend")
+                    (("pkgfilterdir = \\$\\(CUPS_SERVERBIN\\)/filter")
+                     "pkgfilterdir = $(PREFIX)/lib/cups/filter"))
+                  ;; Find bannertopdf data such as the print test page in our
+                  ;; output directory, not CUPS's prefix.
+                  (substitute* "configure"
+                    (("\\{CUPS_DATADIR\\}/data")
+                     "{prefix}/share/cups/data"))))))
     (build-system gnu-build-system)
     (arguments
      `(#:make-flags (list (string-append "PREFIX=" %output))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]