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