aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/scanner.scm
blob: 76e11a95167963c4b8f4232d004b39e58c624c92 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
;;;
;;; 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 scanner)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages libusb)
  #:use-module ((guix licenses)
                #:prefix licence:))

(define-public sane-backends
  (package
    (name "sane-backends")
    (version "1.0.24")
    (source (origin
             (method url-fetch)
             (uri (string-append 
                   "https://alioth.debian.org/frs/download.php/file/3958/"
                   name "-" version ".tar.gz"))
             (sha256
              (base32
               "0ba68m6bzni54axjk15i51rya7hfsdliwvqyan5msl7iaid0iir7"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("pkg-config" ,pkg-config)))
    (inputs
     `(("libusb-compat" ,libusb-compat)))
    (arguments
     `(#:tests? #f
       #:phases
       (modify-phases %standard-phases
         (add-after
          'install 'install-udev-rules
          (lambda* (#:key outputs #:allow-other-keys)
            (let ((out (assoc-ref outputs "out")))
              (mkdir-p (string-append out "/lib/udev/rules.d"))
              (copy-file "tools/udev/libsane.rules"
                         (string-append out
                                        "/lib/udev/rules.d/"
                                        "60-libsane.rules"))))))))
    ;; It would seem that tests are not maintained - fails with
    ;; the following:
    ;;
    ;; < This page was last updated on Wed Jul 31 07:52:48 2013
    ;; <  by sane-desc 3.5 from sane-backends 1.0.24git
    ;; ---
    ;; > This page was last updated on Sun Oct 19 15:41:39 2014
    ;; >  by sane-desc 3.5 from sane-backends 1.0.24
    ;; **** File generated for html-backends-split mode is different from reference
    ;; Makefile:501: recipe for target 'check.local' failed
    (home-page "http://www.sane-project.org")
    (synopsis "Raster image scanner library and drivers")
    (description "SANE stands for \"Scanner Access Now Easy\" and is an API
proving access to any raster image scanner hardware (flatbed scanner,
hand-held scanner, video- and still-cameras, frame-grabbers, etc.).  The
package contains the library and drivers.")
    (license licence:gpl2+))) ; plus linking exception

inputs]: Likewise. * gnu/packages/xorg.scm (xpra)[inputs]: Likewise. Marius Bakke 2019-11-22gnu: xsane: Fix snprintf buffer length....* gnu/packages/scanner.scm (xsane)[source]: Add patch. * gnu/packages/patches/xsane-fix-snprintf-buffer-length.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Tobias Geerinckx-Rice 2019-11-22gnu: Add xsane....* gnu/packages/scanner.scm (xsane): New public variable. Tobias Geerinckx-Rice 2019-08-01gnu: sane-backends: Build back ends that need JPEG support....* gnu/packages/scanner.scm (sane-backends)[inputs]: Add libjpeg. Tobias Geerinckx-Rice 2019-08-01gnu: sane-backends-minimal: Update to 1.0.28....* gnu/packages/scanner.scm (sane-backends-minimal): Update to 1.0.28. [arguments]: Disable back end tests. Tobias Geerinckx-Rice 2019-03-18Order (gnu packages scanner) module imports alphabetically....* gnu/packages/scanner.scm (define-module): Order module imports alphabetically. Tobias Geerinckx-Rice 2019-03-10gnu: Import (gnu packages image) in (gnu packages scanner)....This is a follow-up to commit 10bd2889d267df479f79f43471d3c2dd17da345a. * gnu/packages/scanner.scm: #:use-module (gnu packages image). Tobias Geerinckx-Rice 2019-03-10gnu: sane-backends: Support PNG scanimage output....* gnu/packages/scanner.scm (sane-backends)[inputs]: Add libpng. Tobias Geerinckx-Rice 2019-03-07gnu: sane-backends-minimal: Fix USB support....* gnu/packages/scanner.scm (sane-backends-minimal)[inputs]: Replace libusb-compat with libusb. [arguments]: Disable tests that require USB access. Tobias Geerinckx-Rice