>From 90ce3c9a1b1a7f3ba034b7e69aef910252470d72 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus 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 +;;; +;;; 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 . + +(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" + (("address@hidden@") "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