unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: John Doe <dftxbs3e@free.fr>
To: 45725@debbugs.gnu.org
Cc: John Doe <dftxbs3e@free.fr>
Subject: [bug#45725] [PATCH] gnu: Add gutenprint.
Date: Fri,  8 Jan 2021 12:38:22 +0100	[thread overview]
Message-ID: <20210108113822.24978-1-dftxbs3e@free.fr> (raw)

* gnu/packages/cups.scm (gutenprint): New variable.
---
 gnu/packages/cups.scm | 45 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
index c8ca5db1a0..12a5d05857 100644
--- a/gnu/packages/cups.scm
+++ b/gnu/packages/cups.scm
@@ -32,6 +32,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fonts)     ; font-dejavu
   #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages groff)
@@ -46,6 +47,7 @@
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages scanner)
+  #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
@@ -921,6 +923,49 @@ obtained and installed separately.")
       (home-page "http://splix.ap2c.org/")
       (license license:gpl2))))
 
+(define-public gutenprint
+  (package
+    (name "gutenprint")
+    (version "5.3.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://sourceforge/gimp-print/" name "-"
+                           (version-major+minor version) "/" version "/"
+                           name "-" version ".tar.xz"))
+       (sha256
+        (base32 "0wm0akfm0dp0wrwnn03j90hqxs8vx8iy896baf68blb7isyfqybj"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:test-target "check-parallel"
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'fix-paths
+           (lambda* (#:key outputs native-inputs #:allow-other-keys)
+             (substitute* "Makefile.in"
+               (("/usr/bin/time") "time"))
+             (let ((out (assoc-ref outputs "out")))
+               (substitute* "src/cups/Makefile.in"
+                 (("cups_conf_serverbin = @cups_conf_serverbin@")
+                  (string-append "cups_conf_serverbin = " out "/lib/cups"))
+                 (("cups_conf_serverroot = @cups_conf_serverroot@")
+                  (string-append "cups_conf_serverroot = " out "/etc/cups"))
+                 (("cups_conf_datadir = @cups_conf_datadir@")
+                  (string-append "cups_conf_datadir = " out "/share/cups")))
+               #t))))))
+    (native-inputs
+     `(("perl" ,perl)
+       ("time" ,time)))
+    (inputs
+     `(("cups" ,cups-minimal)))
+    (synopsis "Printer drivers for CUPS on GNU/Linux")
+    (description "A very high quality package of printer drivers for
+CUPS on GNU/Linux, Macintosh OS X, and other POSIX-compliant operating systems.
+This project also maintains an enhanced Print plug-in for GIMP 2.x from
+the same code base.")
+    (home-page "http://gimp-print.sourceforge.net/")
+    (license license:gpl2+)))
+
 (define-public python-pycups
   (package
     (name "python-pycups")
-- 
2.30.0





             reply	other threads:[~2021-01-08 11:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-08 11:38 John Doe [this message]
2021-01-08 11:51 ` [bug#45725] [PATCH v2] gnu: Add gutenprint John Doe
2021-01-08 12:50   ` Jonathan Brielmaier
2021-01-08 12:09 ` dftxbs3e
2021-01-09 11:12 ` [bug#45725] [PATCH v3] " John Doe
2021-01-19 14:56   ` [bug#45725] [PATCH] " Ludovic Courtès
2021-01-20  4:04     ` dftxbs3e
2021-08-13 20:03 ` [bug#45725] Getting Gutenprint in Guix Faré
2021-08-13 21:38   ` Faré
2021-08-14  3:34     ` Faré
2022-02-12  9:34 ` [bug#45725] [PATCH v4] gnu: Add gutenprint Brice Waegeneire
2022-04-30 11:21 ` [bug#45725] [PATCH] " Milan Svoboda
2022-04-30 15:09 ` Milan Svoboda

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=20210108113822.24978-1-dftxbs3e@free.fr \
    --to=dftxbs3e@free.fr \
    --cc=45725@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).