gnu: python-webencodings: Fix typo in description.
[jackhill/guix/guix.git] / gnu / packages / ccache.scm
CommitLineData
5bbd6bf1 1;;; GNU Guix --- Functional package management for GNU
4747cca2 2;;; Copyright © 2014, 2015, 2016, 2018 Eric Bavier <bavier@member.fsf.org>
3d39ab45 3;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
52e752e3 4;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
5bbd6bf1
EB
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages ccache)
22 #:use-module (guix packages)
23 #:use-module ((guix licenses) #:select (gpl3+))
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages perl)
28 #:use-module (gnu packages compression))
29
30(define-public ccache
31 (package
32 (name "ccache")
0bd8d6dc 33 (version "3.4.1")
5bbd6bf1
EB
34 (source
35 (origin
36 (method url-fetch)
37 (uri (string-append "https://www.samba.org/ftp/ccache/ccache-"
38 version ".tar.xz"))
39 (sha256
40 (base32
0bd8d6dc 41 "1pppi4jbkkj641cdynmc35jaj40jjicw7gj75ran5qs5886jcblc"))))
5bbd6bf1 42 (build-system gnu-build-system)
9d5448f3
EF
43 (native-inputs `(("perl" ,perl) ;for test.sh
44 ("which" ,(@ (gnu packages base) which))))
5bbd6bf1
EB
45 (inputs `(("zlib" ,zlib)))
46 (arguments
bd368c71
EB
47 '(#:phases (modify-phases %standard-phases
48 (add-before 'check 'setup-tests
49 (lambda _
4747cca2 50 (substitute* '("unittest/test_hashutil.c" "test/suites/base.bash")
52e752e3
TGR
51 (("#!/bin/sh") (string-append "#!" (which "sh"))))
52 #t))
53 (add-before 'check 'munge-failing-test
54 (lambda _
55 ;; XXX The new ‘Multiple -fdebug-prefix-map’ test added in
56 ;; 3.3.5 fails (why?). Force it to report success instead.
4747cca2 57 (substitute* "test/suites/debug_prefix_map.bash"
52e752e3 58 (("grep \"name\"") "true"))
bd368c71 59 #t)))))
5bbd6bf1
EB
60 (home-page "https://ccache.samba.org/")
61 (synopsis "Compiler cache")
62 (description
63 "Ccache is a compiler cache. It speeds up recompilation by caching
64previous compilations and detecting when the same compilation is being done
56f33f3f
EB
65again. Supported languages are C, C++, Objective-C, Objective-C++, and
66Fortran 77.")
5bbd6bf1 67 (license gpl3+)))