1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2012, 2013, 2016 Ludovic Courtès <ludo@gnu.org>
5 ;;; This file is part of GNU Guix.
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.
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.
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/>.
20 (define-module (gnu packages attr)
21 #:use-module (guix licenses)
22 #:use-module (gnu packages perl)
23 #:use-module (gnu packages gettext)
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu))
34 (uri (string-append "mirror://savannah/attr/attr-"
35 version ".src.tar.gz"))
38 "0nd8y0m6awc9ahv0ciiwf8gy54c8d3j51pw9xg7f7cn579jjyxr5"))))
39 (build-system gnu-build-system)
42 (modify-phases %standard-phases
43 (add-after 'configure 'patch-makefile-SHELL
45 (patch-makefile-SHELL "include/buildmacros")))
48 (zero? (system* "make"
53 (lambda* (#:key target #:allow-other-keys)
54 ;; Use the right shell.
55 (substitute* "test/run"
59 ;; When building natively, run the tests.
61 (system* "make" "tests" "-C" "test"))
63 ;; XXX: Ignore the test result since this is
64 ;; dependent on the underlying file system.
67 ;; Perl is needed to run tests; remove it from cross builds.
68 (if (%current-target-system)
72 `(("gettext" ,gettext-minimal)))
74 (home-page "http://savannah.nongnu.org/projects/attr/")
75 (synopsis "Library and tools for manipulating extended attributes")
77 "Portable library and tools for manipulating extended attributes.")
78 (license (list gpl2+ lgpl2.1+))))