Commit | Line | Data |
---|---|---|
8d872ae0 TUBK |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> | |
0a20f402 | 3 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
b672e1ed | 4 | ;;; Copyright © 2016 Tobias Geerinckx-Rice <me@tobias.gr> |
8d872ae0 TUBK |
5 | ;;; |
6 | ;;; This file is part of GNU Guix. | |
7 | ;;; | |
8 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
9 | ;;; under the terms of the GNU General Public License as published by | |
10 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
11 | ;;; your option) any later version. | |
12 | ;;; | |
13 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
14 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | ;;; GNU General Public License for more details. | |
17 | ;;; | |
18 | ;;; You should have received a copy of the GNU General Public License | |
19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
20 | ||
21 | (define-module (gnu packages moreutils) | |
22 | #:use-module ((guix licenses) #:prefix l:) | |
23 | #:use-module (guix packages) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (gnu packages perl) | |
27 | #:use-module (gnu packages xml) | |
28 | #:use-module (gnu packages docbook)) | |
29 | ||
30 | (define-public moreutils | |
31 | (package | |
32 | (name "moreutils") | |
b672e1ed TGR |
33 | (version "0.59") |
34 | (source | |
35 | (origin | |
36 | (method url-fetch) | |
37 | (uri (list | |
38 | (string-append | |
39 | "mirror://debian/pool/main/m/moreutils/moreutils_" | |
40 | version ".orig.tar.gz") | |
41 | ;; The main Debian mirrors only hold the current packages. | |
42 | (string-append | |
43 | "http://snapshot.debian.org/archive/debian/20161223T212806Z" | |
44 | "/pool/main/m/moreutils/moreutils_0.59.orig.tar.gz"))) | |
45 | (sha256 | |
46 | (base32 | |
47 | "1d6ik3j4lwp90vb93p7yv60k6vk2chz448d1z9xrmxvv371i33m4")))) | |
8d872ae0 | 48 | (build-system gnu-build-system) |
b672e1ed TGR |
49 | ;; For building the manual pages. |
50 | (native-inputs | |
51 | `(("docbook-xml" ,docbook-xml-4.4) | |
52 | ("docbook-xsl" ,docbook-xsl) | |
53 | ("libxml2" ,libxml2) | |
54 | ("libxslt" ,libxslt))) | |
55 | (inputs | |
56 | `(("perl" ,perl))) | |
8d872ae0 TUBK |
57 | (arguments |
58 | `(#:phases | |
be1e3505 | 59 | (modify-phases %standard-phases |
b672e1ed | 60 | (delete 'configure)) ; no configure script |
8d872ae0 TUBK |
61 | #:make-flags |
62 | (list (string-append "PREFIX=" (assoc-ref %outputs "out")) | |
b672e1ed TGR |
63 | (string-append "DOCBOOKXSL=" |
64 | (assoc-ref %build-inputs "docbook-xsl") "/xml/xsl/" | |
65 | ,(package-name docbook-xsl) "-" | |
66 | ,(package-version docbook-xsl)) | |
8d872ae0 | 67 | "CC=gcc"))) |
b672e1ed | 68 | (home-page "https://joeyh.name/code/moreutils/") |
8d872ae0 TUBK |
69 | (synopsis "Miscellaneous general-purpose command-line tools") |
70 | (description | |
71 | "Moreutils is a collection of general-purpose command-line tools to | |
72 | augment the traditional Unix toolbox.") | |
73 | (license l:gpl2+))) |