gnu: jemalloc: Build with gcc-4.8 on i686.
[jackhill/guix/guix.git] / gnu / packages / skribilo.scm
CommitLineData
02d8d9c8 1;;; GNU Guix --- Functional package management for GNU
b3976e72 2;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
02d8d9c8
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 skribilo)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module (guix licenses)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages guile)
25 #:use-module (gnu packages lout)
b3976e72 26 #:use-module (gnu packages plotutils)
02d8d9c8
LC
27 #:use-module (gnu packages imagemagick)
28 #:use-module (gnu packages ghostscript))
29
30(define-public skribilo
31 (package
32 (name "skribilo")
33 (version "0.9.2")
34 (source (origin
35 (method url-fetch)
36 (uri (string-append "mirror://savannah/skribilo/skribilo-"
37 version ".tar.gz"))
38 (sha256
39 (base32
40 "0wwi996403wzcp8s8iyc2p6w7f9v39lwmy35ysdd3wc31i5dy19q"))))
41 (build-system gnu-build-system)
42 (arguments
43 ;; Make the modules available under the usual location.
44 '(#:configure-flags (list (string-append "--with-guilemoduledir="
45 (assoc-ref %outputs "out")
46 "/share/guile/site/2.0"))
2f7a10db
LC
47
48 #:phases (alist-cons-before
49 'configure 'pre-configure
50 (lambda* (#:key inputs #:allow-other-keys)
51 ;; Make sure the 'skribilo' command gets to see
52 ;; Guile-Reader, even if Guile-Reader is not in the search
53 ;; path.
54 (let ((reader (assoc-ref inputs "guile-reader")))
55 (substitute* "src/skribilo.in"
56 (("^exec (.*) -c" _ things)
57 (string-append "exec " things
58 " -L " reader "/share/guile/site/2.0"
59 " -C " reader "/share/guile/site/2.0"
60 " -c")))))
61 %standard-phases)
62
02d8d9c8 63 #:parallel-build? #f))
b3976e72 64
02d8d9c8 65 (inputs `(("guile" ,guile-2.0)
02d8d9c8
LC
66 ("imagemagick" ,imagemagick)
67 ("ghostscript" ,ghostscript) ; for 'convert'
b3976e72 68 ("ploticus" ,ploticus)
02d8d9c8 69 ("lout" ,lout)))
6ec2e6b0
LC
70
71 ;; The 'skribilo' command needs them, and for people using Skribilo as a
72 ;; library, these inputs are needed as well.
2ecebec1 73 (propagated-inputs `(("guile-reader" ,guile-reader)
6ec2e6b0
LC
74 ("guile-lib" ,guile-lib)))
75
02d8d9c8
LC
76 (home-page "http://www.nongnu.org/skribilo/")
77 (synopsis "Document production tool written in Guile Scheme")
78 (description
79 "Skribilo is a free document production tool that takes a structured
80document representation as its input and renders that document in a variety of
81output formats: HTML and Info for on-line browsing, and Lout and LaTeX for
82high-quality hard copies.
83
84The input document can use Skribilo's markup language to provide information
85about the document's structure, which is similar to HTML or LaTeX and does not
35b9e423 86require expertise. Alternatively, it can use a simpler, “markup-less” format
02d8d9c8
LC
87that borrows from Emacs' outline mode and from other conventions used in
88emails, Usenet and text.
89
90Lastly, Skribilo provides Guile Scheme APIs.")
91 (license gpl3+)))