| 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org> |
| 3 | ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org> |
| 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) |
| 25 | #:use-module (gnu packages texinfo) |
| 26 | #:use-module (gnu packages screen) |
| 27 | #:use-module (gnu packages base)) |
| 28 | |
| 29 | (define-public wdiff |
| 30 | (package |
| 31 | (name "wdiff") |
| 32 | (version "1.2.2") |
| 33 | (source |
| 34 | (origin |
| 35 | (method url-fetch) |
| 36 | (uri (string-append "mirror://gnu/wdiff/wdiff-" |
| 37 | version ".tar.gz")) |
| 38 | (sha256 |
| 39 | (base32 |
| 40 | "0sxgg0ms5lhi4aqqvz1rj4s77yi9wymfm3l3gbjfd1qchy66kzrl")))) |
| 41 | (build-system gnu-build-system) |
| 42 | (arguments |
| 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))) |
| 53 | (home-page "https://www.gnu.org/software/wdiff/") |
| 54 | (synopsis "Word difference finder") |
| 55 | (description |
| 56 | "GNU Wdiff is a front-end to the diff program from Diffutils that |
| 57 | allows you to compare files on a word-by-word basis, where a word is anything |
| 58 | between whitespace.") |
| 59 | (license gpl3+))) |