summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2014-11-26 13:22:00 -0600
committerEric Bavier <bavier@member.fsf.org>2014-12-09 12:02:08 -0600
commit8d809faf8cdd4f06ebfbce7d466d67d00ad12869 (patch)
tree8ed85fc8749f3e817057e9a1fecc6dbae4ae0b8c /gnu
parent47833c90d52198c94b27f102d94eed696112bd0e (diff)
gnu: Add delta.
* gnu/packages/debug.scm: New file. * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/debug.scm73
1 files changed, 73 insertions, 0 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
new file mode 100644
index 00000000000..37697cc2c69
--- /dev/null
+++ b/gnu/packages/debug.scm
@@ -0,0 +1,73 @@
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu packages debug)
20 #:use-module (guix packages)
21 #:use-module (guix licenses)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages perl))
25
26(define-public delta
27 (package
28 (name "delta")
29 (version "2006.08.03")
30 (source
31 (origin
32 (method url-fetch)
33 (uri (list
34 (string-append "http://ftp.de.debian.org/debian/pool/main/d/delta/"
35 "delta_" version ".orig.tar.gz")
36 ;; This uri seems to send guix download into an infinite loop
37 (string-append "http://delta.tigris.org/files/documents/3103/"
38 "33566/delta-" version ".tar.gz")))
39 (sha256
40 (base32
41 "184wh35pf2ddx97319s6sgkzpz48xxkbwzcjpycv009bm53lh61q"))))
42 (build-system gnu-build-system)
43 (inputs ;Installed programs are perl scripts
44 `(("perl" ,perl)))
45 (arguments
46 `(#:phases
47 (alist-replace
48 'install
49 (lambda* (#:key outputs #:allow-other-keys)
50 ;; Makefile contains no install target
51 (let* ((out (assoc-ref outputs "out"))
52 (bin (string-append out "/bin"))
53 (doc (string-append out "/share/doc/delta-" ,version)))
54 (begin
55 (mkdir-p bin)
56 (mkdir-p doc)
57 (for-each (lambda (h)
58 (copy-file h (string-append doc "/" (basename h))))
59 `("License.txt" ,@(find-files "www" ".*\\.html")))
60 (for-each (lambda (b)
61 (copy-file b (string-append bin "/" b)))
62 `("delta" "multidelta" "topformflat")))))
63 (alist-delete 'configure %standard-phases))))
64 (home-page "http://delta.tigris.org/")
65 (synopsis "Heuristical file minimizer")
66 (description
67 "Delta assists you in minimizing \"interesting\" files subject to a test
68of their interestingness. A common such situation is when attempting to
69isolate a small failure-inducing substring of a large input that causes your
70program to exhibit a bug.")
71 ;; See License.txt, which is a bsd-3 license, despite the project's
72 ;; home-page pointing to a bsd-2 license.
73 (license bsd-3)))