Update license headers.
[jackhill/guix/guix.git] / distro / packages / attr.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2012 Ludovic Courtès <ludo@gnu.org>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
11 ;;;
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
16 ;;;
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20 (define-module (distro packages attr)
21 #:use-module (guix licenses)
22 #:use-module (distro packages perl)
23 #:use-module ((distro packages gettext)
24 #:renamer (symbol-prefix-proc 'guix:))
25 #:use-module (guix packages)
26 #:use-module (guix download)
27 #:use-module (guix build-system gnu))
28
29 (define-public attr
30 (package
31 (name "attr")
32 (version "2.4.46")
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append "mirror://savannah/attr/attr-"
37 version ".src.tar.gz"))
38 (sha256
39 (base32
40 "07qf6kb2zk512az481bbnsk9jycn477xpva1a726n5pzlzf9pmnw"))))
41 (build-system gnu-build-system)
42 (arguments
43 `(#:phases
44 (alist-replace 'install
45 (lambda _
46 (zero? (system* "make"
47 "install"
48 "install-lib"
49 "install-dev")))
50 (alist-replace 'check
51 (lambda _
52 (for-each patch-shebang
53 (find-files "test" ".*"))
54 (system* "make" "tests" "-C" "test")
55
56 ;; XXX: Ignore the test result since
57 ;; this is dependent on the underlying
58 ;; file system.
59 #t)
60 %standard-phases))))
61 (inputs `(("perl" ,perl)
62 ("gettext" ,guix:gettext)))
63 (home-page
64 "http://savannah.nongnu.org/projects/attr/")
65 (synopsis
66 "Library and tools for manipulating extended attributes")
67 (description
68 "Portable library and tools for manipulating extended attributes.")
69 (license '(gpl2+ lgpl2.1+))))