gnu: packages: Use 'search-patches' everywhere.
[jackhill/guix/guix.git] / gnu / packages / acl.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
16755848 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
aa3d9011 4;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
6ad2697d 5;;;
233e7676 6;;; This file is part of GNU Guix.
6ad2697d 7;;;
233e7676 8;;; GNU Guix is free software; you can redistribute it and/or modify it
6ad2697d
NK
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;;;
233e7676 13;;; GNU Guix is distributed in the hope that it will be useful, but
6ad2697d
NK
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
233e7676 19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
6ad2697d 20
1ffa7090 21(define-module (gnu packages acl)
4a44e743 22 #:use-module (guix licenses)
1ffa7090 23 #:use-module (gnu packages attr)
3f2a7727 24 #:use-module (gnu packages base)
1dba6407 25 #:use-module (gnu packages gettext)
3f2a7727 26 #:use-module (gnu packages perl)
6ad2697d
NK
27 #:use-module (guix packages)
28 #:use-module (guix download)
561840b4 29 #:use-module (gnu packages)
6ad2697d
NK
30 #:use-module (guix build-system gnu))
31
32(define-public acl
33 (package
34 (name "acl")
5c47b06b 35 (version "2.2.52")
6ad2697d
NK
36 (source
37 (origin
38 (method url-fetch)
39 (uri (string-append "mirror://savannah/acl/acl-"
40 version ".src.tar.gz"))
41 (sha256
42 (base32
561840b4 43 "08qd9s3wfhv0ajswsylnfwr5h0d7j9d4rgip855nrh400nxp940p"))
fc1adab1 44 (patches (search-patches "acl-hurd-path-max.patch"))))
6ad2697d
NK
45 (build-system gnu-build-system)
46 (arguments
16755848 47 `(#:tests? #f ; FIXME: Investigate test suite failures
3f2a7727 48 #:test-target "tests"
16755848 49 #:phases
3f2a7727
AE
50 (alist-cons-after
51 'build 'patch-exec-bin-sh
16755848 52 (lambda _
3f2a7727
AE
53 (substitute* "test/run"
54 (("/bin/sh") (which "sh"))))
55 (alist-replace
56 'install
57 (lambda _
58 (zero? (system* "make" "install" "install-lib" "install-dev")))
59 %standard-phases))))
16755848 60 (inputs `(("attr" ,attr)))
2a552f11 61 (native-inputs
3f2a7727 62 `(("gettext" ,gnu-gettext)
52f62492
LC
63 ("perl" ,perl)))
64 (home-page "http://savannah.nongnu.org/projects/acl")
6ad2697d
NK
65 (synopsis
66 "Library and tools for manipulating access control lists")
67 (description
68 "Library and tools for manipulating access control lists.")
38bbd61d 69 (license (list gpl2+ lgpl2.1+))))