gnu: ruby-pandoc-ruby: Use pandoc instead of ghc-pandoc.
[jackhill/guix/guix.git] / gnu / packages / wdiff.scm
CommitLineData
8c3c896d
NK
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
691ae7fa 3;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
8c3c896d
NK
4;;;
5;;; This file is part of GNU Guix.
6;;;
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.
11;;;
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.
16;;;
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/>.
19
20(define-module (gnu packages wdiff)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu)
9e623d06 25 #:use-module (gnu packages texinfo)
8c3c896d 26 #:use-module (gnu packages screen)
ce0614dd 27 #:use-module (gnu packages base))
8c3c896d
NK
28
29(define-public wdiff
30 (package
31 (name "wdiff")
7e1c735f 32 (version "1.2.2")
8c3c896d
NK
33 (source
34 (origin
35 (method url-fetch)
36 (uri (string-append "mirror://gnu/wdiff/wdiff-"
37 version ".tar.gz"))
38 (sha256
39 (base32
7e1c735f 40 "0sxgg0ms5lhi4aqqvz1rj4s77yi9wymfm3l3gbjfd1qchy66kzrl"))))
8c3c896d
NK
41 (build-system gnu-build-system)
42 (arguments
691ae7fa
EB
43 `(#:phases (modify-phases %standard-phases
44 (add-before 'check 'fix-sh
45 (lambda _
46 (substitute* "tests/testsuite"
47 (("#! /bin/sh")
48 (string-append "#!" (which "sh")))))))))
49 (native-inputs
50 `(("which" ,which)
51 ;; For some reason wdiff.info gets rebuilt.
52 ("texinfo" ,texinfo)))
8c3c896d 53 (home-page "https://www.gnu.org/software/wdiff/")
f50d2669 54 (synopsis "Word difference finder")
8c3c896d 55 (description
79c311b8
LC
56 "GNU Wdiff is a front-end to the diff program from Diffutils that
57allows you to compare files on a word-by-word basis, where a word is anything
a22dc0c4 58between whitespace.")
f50d2669 59 (license gpl3+)))