Commit | Line | Data |
---|---|---|
02d8d9c8 | 1 | ;;; GNU Guix --- Functional package management for GNU |
c20e697e | 2 | ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2020 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) | |
3ba05636 | 23 | #:use-module ((guix utils) #:select (version-major+minor)) |
02d8d9c8 LC |
24 | #:use-module (guix build-system gnu) |
25 | #:use-module (gnu packages guile) | |
0791437f | 26 | #:use-module (gnu packages guile-xyz) |
02d8d9c8 | 27 | #:use-module (gnu packages lout) |
98f23391 | 28 | #:use-module (gnu packages pkg-config) |
b3976e72 | 29 | #:use-module (gnu packages plotutils) |
02d8d9c8 LC |
30 | #:use-module (gnu packages imagemagick) |
31 | #:use-module (gnu packages ghostscript)) | |
32 | ||
33 | (define-public skribilo | |
34 | (package | |
35 | (name "skribilo") | |
3ba05636 | 36 | (version "0.9.5") |
02d8d9c8 LC |
37 | (source (origin |
38 | (method url-fetch) | |
39 | (uri (string-append "mirror://savannah/skribilo/skribilo-" | |
40 | version ".tar.gz")) | |
41 | (sha256 | |
42 | (base32 | |
3ba05636 | 43 | "02dzy2imqgfmwda4d1r51205si4c0r4fp2gf22sb0kv3qhhnm0h0")))) |
02d8d9c8 LC |
44 | (build-system gnu-build-system) |
45 | (arguments | |
46 | ;; Make the modules available under the usual location. | |
3ba05636 | 47 | `(#:phases |
dc1d3cde KK |
48 | (modify-phases %standard-phases |
49 | (add-before '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. | |
3ba05636 LC |
54 | (let ((reader (assoc-ref inputs "guile-reader")) |
55 | (effective ,(version-major+minor | |
56 | (package-version | |
57 | (car (assoc-ref (package-inputs this-package) | |
58 | "guile")))))) | |
dc1d3cde KK |
59 | (substitute* "src/skribilo.in" |
60 | (("^exec (.*) -c" _ things) | |
61 | (string-append "exec " things | |
3ba05636 LC |
62 | " -L " reader "/share/guile/site/" effective |
63 | " -C " reader | |
64 | "/lib/guile/" effective "/site-ccache" | |
dc1d3cde KK |
65 | " -c")))) |
66 | #t))) | |
2f7a10db | 67 | |
02d8d9c8 | 68 | #:parallel-build? #f)) |
b3976e72 | 69 | |
fb0b9ff1 | 70 | (native-inputs `(("pkg-config" ,pkg-config))) |
98f23391 | 71 | |
3ba05636 | 72 | (inputs `(("guile" ,guile-3.0) |
02d8d9c8 LC |
73 | ("imagemagick" ,imagemagick) |
74 | ("ghostscript" ,ghostscript) ; for 'convert' | |
b3976e72 | 75 | ("ploticus" ,ploticus) |
02d8d9c8 | 76 | ("lout" ,lout))) |
6ec2e6b0 LC |
77 | |
78 | ;; The 'skribilo' command needs them, and for people using Skribilo as a | |
79 | ;; library, these inputs are needed as well. | |
3ba05636 LC |
80 | (propagated-inputs `(("guile-reader" ,guile-reader) |
81 | ("guile-lib" ,guile-lib))) | |
6ec2e6b0 | 82 | |
340978d7 | 83 | (home-page "https://www.nongnu.org/skribilo/") |
02d8d9c8 LC |
84 | (synopsis "Document production tool written in Guile Scheme") |
85 | (description | |
86 | "Skribilo is a free document production tool that takes a structured | |
87 | document representation as its input and renders that document in a variety of | |
88 | output formats: HTML and Info for on-line browsing, and Lout and LaTeX for | |
89 | high-quality hard copies. | |
90 | ||
91 | The input document can use Skribilo's markup language to provide information | |
92 | about the document's structure, which is similar to HTML or LaTeX and does not | |
35b9e423 | 93 | require expertise. Alternatively, it can use a simpler, “markup-less” format |
02d8d9c8 LC |
94 | that borrows from Emacs' outline mode and from other conventions used in |
95 | emails, Usenet and text. | |
96 | ||
97 | Lastly, Skribilo provides Guile Scheme APIs.") | |
98 | (license gpl3+))) |