gnu: r: Replace "atlas" with "openblas".
[jackhill/guix/guix.git] / gnu / packages / unrtf.scm
CommitLineData
3ec7ad8e 1;;; GNU Guix --- Functional package management for GNU
cbfb8934 2;;; Copyright © 2013, 2015 Ludovic Courtès <ludo@gnu.org>
3ec7ad8e
LC
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 unrtf)
20 #:use-module (guix licenses)
21 #:use-module (guix packages)
22 #:use-module (guix download)
cbfb8934
LC
23 #:use-module (guix build-system gnu)
24 #:use-module (guix gexp)
25 #:use-module (gnu packages autotools)
26 #:use-module (gnu packages m4)
27 #:use-module (gnu packages base))
3ec7ad8e
LC
28
29(define-public unrtf
30 (package
31 (name "unrtf")
cbfb8934 32 (version "0.21.9")
3ec7ad8e
LC
33 (source (origin
34 (method url-fetch)
35 (uri (string-append "mirror://gnu/unrtf/" version
36 "/unrtf-" version ".tar.gz"))
37 (sha256
38 (base32
cbfb8934
LC
39 "1pcdzf2h1prn393dkvg93v80vh38q0v817xnbwrlwxbdz4k7i8r2"))
40 (modules '((guix build utils)))
41 (snippet
42 #~(begin
43 ;; The tarball includes site-specific generated files.
44 ;; Remove them.
45 (for-each delete-file '("config.log" "config.h"))
46 (for-each delete-file
47 (find-files "." "^Makefile$"))
48
49 ;; The config/ directory contains dangling symlinks to
50 ;; /usr/share/automake.
51 (for-each delete-file (find-files "config"))
3ec7ad8e 52
cbfb8934
LC
53 ;; Regenerate the whole thing.
54 (setenv "PATH"
55 (string-append #$autoconf "/bin:"
56 #$automake "/bin:"
57 #$m4 "/bin:"
58 #$grep "/bin:" #$sed "/bin:"
59 #$coreutils "/bin:"
60 (getenv "PATH")))
61 (zero? (system* "autoreconf" "-vfi"))))))
62 (build-system gnu-build-system)
3ec7ad8e
LC
63 (home-page "http://www.gnu.org/software/unrtf")
64 (synopsis "Convert Rich Text Format documents to other formats")
65 (description
79c311b8
LC
66 "GNU UnRTF converts text documents from RTF to HTML, LaTeX, or troff.
67It supports changes in font characteristics, underlines and strikethroughs,
68superscripts and subscripts, and more.")
3ec7ad8e 69 (license gpl2+)))