projects/guix·blob python-team · refs

86 lines · 3.5 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <[email protected]>
3;;; Copyright © 2016, 2017, 2019, 2022 Efraim Flashner <[email protected]>
4;;; Copyright © 2016–2018, 2020–2022 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2022 ( <[email protected]>
6;;;
7;;; This file is part of GNU Guix.
8;;;
9;;; GNU Guix is free software; you can redistribute it and/or modify it
10;;; under the terms of the GNU General Public License as published by
11;;; the Free Software Foundation; either version 3 of the License, or (at
12;;; your option) any later version.
13;;;
14;;; GNU Guix is distributed in the hope that it will be useful, but
15;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;;; GNU General Public License for more details.
18;;;
19;;; You should have received a copy of the GNU General Public License
20;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
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)) ; no configure script
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 ;; For building the manual pages.
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
83augment the traditional Unix toolbox.")
84 (properties
85 '((release-monitoring-url . "https://git.joeyh.name/index.cgi/moreutils.git/")))
86 (license license:gpl2+)))