| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 |
|
| 22 | (define-module (gnu packages moreutils)
|
| 23 | #:use-module (gnu packages bash)
|
| 24 | #:use-module (gnu packages docbook)
|
| 25 | #:use-module (gnu packages perl)
|
| 26 | #:use-module (gnu packages xml)
|
| 27 | #:use-module (guix build-system gnu)
|
| 28 | #:use-module (guix download)
|
| 29 | #:use-module (guix gexp)
|
| 30 | #:use-module ((guix licenses) #:prefix license:)
|
| 31 | #:use-module (guix packages)
|
| 32 | #:use-module (guix utils))
|
| 33 |
|
| 34 | (define-public moreutils
|
| 35 | (package
|
| 36 | (name "moreutils")
|
| 37 | (version "0.70")
|
| 38 | (source (origin
|
| 39 | (method url-fetch)
|
| 40 | (uri (string-append
|
| 41 | "https://git.joeyh.name/index.cgi/moreutils.git/snapshot/"
|
| 42 | name "-" version ".tar.gz"))
|
| 43 | (file-name (string-append name "-" version ".tar.gz"))
|
| 44 | (sha256
|
| 45 | (base32
|
| 46 | "0ch14psmkawg97f91ri24xs4hklr2r4yj1qms347qmms23a4dgzj"))))
|
| 47 | (build-system gnu-build-system)
|
| 48 | (arguments
|
| 49 | (list #:phases
|
| 50 | #~(modify-phases %standard-phases
|
| 51 | (add-after 'install 'wrap-program
|
| 52 | (lambda _
|
| 53 | (for-each
|
| 54 | (lambda (script)
|
| 55 | (wrap-program script
|
| 56 | `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))
|
| 57 | (find-files (string-append #$output "/bin")))))
|
| 58 | (delete 'configure)) |
| 59 | #:make-flags
|
| 60 | #~(list (string-append "PREFIX=" #$output)
|
| 61 | (string-append "DOCBOOKXSL="
|
| 62 | #$(this-package-native-input "docbook-xsl")
|
| 63 | "/xml/xsl/docbook-xsl-"
|
| 64 | #$(package-version (this-package-native-input
|
| 65 | "docbook-xsl")))
|
| 66 | (string-append "CC=" #$(cc-for-target)))))
|
| 67 | (inputs
|
| 68 | (list bash-minimal
|
| 69 | perl
|
| 70 | perl-ipc-run
|
| 71 | perl-timedate
|
| 72 | perl-time-duration))
|
| 73 | |
| 74 | (native-inputs
|
| 75 | (list docbook-xml-4.4
|
| 76 | docbook-xsl
|
| 77 | libxml2
|
| 78 | libxslt))
|
| 79 | (home-page "https://joeyh.name/code/moreutils/")
|
| 80 | (synopsis "Miscellaneous general-purpose command-line tools")
|
| 81 | (description
|
| 82 | "Moreutils is a collection of general-purpose command-line tools to
|
| 83 | augment the traditional Unix toolbox.")
|
| 84 | (properties
|
| 85 | '((release-monitoring-url . "https://git.joeyh.name/index.cgi/moreutils.git/")))
|
| 86 | (license license:gpl2+)))
|