unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH]: Add CUPS.
@ 2015-01-05 13:04 Ricardo Wurmus
  2015-01-05 14:26 ` Thompson, David
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ricardo Wurmus @ 2015-01-05 13:04 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

Hi Guix,

attached is a patch that adds a package recipe for CUPS.

There are a couple of problems with this package, one of which is that
the test suite is failing for some reason.  I have not been able to
figure out why the "cupsFileFind" test fails, so I disabled the tests.

I'm also not sure if creating two outputs "out" and "include" is
correct.  To build OpenJDK with IcedTea I need to have both the library
output and the include files and after splitting the outputs this worked
fine.

Finally, I have not actually tried to use CUPS at all, because I only
really need the libs and headers to build OpenJDK.

Best,
Ricardo


[-- Attachment #2: 0001-gnu-Add-CUPS.patch --]
[-- Type: text/x-patch, Size: 3710 bytes --]

From 90ce3c9a1b1a7f3ba034b7e69aef910252470d72 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Date: Mon, 5 Jan 2015 13:56:51 +0100
Subject: [PATCH] gnu: Add CUPS.

* gnu/packages/cups.scm: New file
* gnu-system.am (GNU_SYSTEM_MODULES): Add it
---
 gnu-system.am         |  1 +
 gnu/packages/cups.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 gnu/packages/cups.scm

diff --git a/gnu-system.am b/gnu-system.am
index efddb99..f3b1bf8 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -67,6 +67,7 @@ GNU_SYSTEM_MODULES =				\
   gnu/packages/cross-base.scm			\
   gnu/packages/crypto.scm			\
   gnu/packages/cryptsetup.scm			\
+  gnu/packages/cups.scm				\
   gnu/packages/curl.scm				\
   gnu/packages/cursynth.scm			\
   gnu/packages/cyrus-sasl.scm			\
diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm
new file mode 100644
index 0000000..f21d8bc
--- /dev/null
+++ b/gnu/packages/cups.scm
@@ -0,0 +1,67 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
+;;;
+;;; This file is part of GNU Guix.
+;;;
+;;; GNU Guix is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or (at
+;;; your option) any later version.
+;;;
+;;; GNU Guix is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;;; GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
+
+(define-module (gnu packages cups)
+  #:use-module ((guix licenses) #:prefix license:)
+  #:use-module (guix packages)
+  #:use-module (guix download)
+  #:use-module (guix build-system gnu)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages avahi)
+  #:use-module (gnu packages compression)
+  #:use-module (gnu packages gnutls)
+  #:use-module (gnu packages pkg-config))
+
+(define-public cups
+  (package
+    (name "cups")
+    (version "2.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://www.cups.org/software/"
+                                  version "/cups-" version "-source.tar.gz"))
+              (sha256
+               (base32
+                "1kbc85kwhm1vyzahblrg3qih9yypggs91d13gdrbnaac8q7jd9jr"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f ;cupsFileFind fails for some reason
+       #:phases
+       (alist-cons-before
+        'configure
+        'patch-makedefs
+        (lambda _
+          (substitute* "Makedefs.in"
+            (("INITDIR.*=.*@INITDIR@") "INITDIR = @prefix@/@INITDIR@")
+            (("/bin/sh") (which "sh"))))
+        %standard-phases)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("avahi" ,avahi)
+       ("gnutls" ,gnutls)
+       ("zlib"  ,zlib)))
+    (outputs '("out" "include"))
+    (home-page "http://www.cups.org")
+    (synopsis "CUPS printing system")
+    (description
+     "CUPS printing system provides a portable printing layer for UNIX®
+operating systems.  It has been developed by Apple Inc. to promote a standard
+printing solution for all UNIX vendors and users.  CUPS provides the System V
+and Berkeley command-line interfaces.")
+    (license license:gpl2+)))
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-01-15 20:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05 13:04 [PATCH]: Add CUPS Ricardo Wurmus
2015-01-05 14:26 ` Thompson, David
2015-01-05 16:38   ` Ricardo Wurmus
2015-01-05 15:35 ` Ludovic Courtès
2015-01-05 16:48   ` Ricardo Wurmus
2015-01-09 14:57     ` Ricardo Wurmus
2015-01-10 11:32       ` Ludovic Courtès
2015-01-15 16:30         ` Ricardo Wurmus
2015-01-15 20:21           ` Ludovic Courtès
2015-01-05 15:37 ` Ludovic Courtès

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).