| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 |
|
| 23 | (define-module (gnu packages attr)
|
| 24 | #:use-module (guix licenses)
|
| 25 | #:use-module (gnu packages perl)
|
| 26 | #:use-module (gnu packages gettext)
|
| 27 | #:use-module (guix packages)
|
| 28 | #:use-module (guix download)
|
| 29 | #:use-module (guix build-system gnu)
|
| 30 | #:use-module (guix utils))
|
| 31 |
|
| 32 | (define-public attr
|
| 33 | (package
|
| 34 | (name "attr")
|
| 35 | (version "2.5.1")
|
| 36 | (source (origin
|
| 37 | (method url-fetch)
|
| 38 | (uri (string-append "mirror://savannah/attr/attr-"
|
| 39 | version ".tar.gz"))
|
| 40 | (sha256
|
| 41 | (base32
|
| 42 | "1y6sibbkrcjygv8naadnsg6xmsqwfh6cwrqk01l0v2i5kfacdqds"))))
|
| 43 | (build-system gnu-build-system)
|
| 44 | (arguments
|
| 45 | `(#:phases
|
| 46 | (modify-phases %standard-phases
|
| 47 | ,@(if (target-hurd?)
|
| 48 | `((add-before 'configure 'skip-linux-syscalls
|
| 49 | (lambda _
|
| 50 | |
| 51 | |
| 52 | |
| 53 | (substitute* "Makefile.in"
|
| 54 | (("libattr/syscalls\\.c") "")
|
| 55 | (("\tlibattr/la-syscalls\\.lo") "")
|
| 56 | (("-Wl,[[:graph:]]+/libattr\\.lds") "")))))
|
| 57 | '())
|
| 58 | (replace 'check
|
| 59 | (lambda* (#:key target #:allow-other-keys)
|
| 60 | |
| 61 | (substitute* "test/run"
|
| 62 | (("/bin/sh")
|
| 63 | (which "sh")))
|
| 64 |
|
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | (unless target
|
| 73 | (system* "make" "tests" "-C" "test")))))))
|
| 74 | (inputs
|
| 75 | |
| 76 | (if (%current-target-system)
|
| 77 | '()
|
| 78 | `(("perl" ,perl))))
|
| 79 | (native-inputs
|
| 80 | `(("gettext" ,gettext-minimal)))
|
| 81 |
|
| 82 | (home-page "https://savannah.nongnu.org/projects/attr/")
|
| 83 | (synopsis "Library and tools for manipulating extended attributes")
|
| 84 | (description
|
| 85 | "Portable library and tools for manipulating extended attributes.")
|
| 86 | (license lgpl2.1+)))
|