| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 |
|
| 20 | (define-module (gnu packages skribilo)
|
| 21 | #:use-module (guix packages)
|
| 22 | #:use-module (guix download)
|
| 23 | #:use-module (guix licenses)
|
| 24 | #:use-module ((guix utils) #:select (version-major+minor))
|
| 25 | #:use-module (guix build-system gnu)
|
| 26 | #:use-module (gnu packages guile)
|
| 27 | #:use-module (gnu packages guile-xyz)
|
| 28 | #:use-module (gnu packages lout)
|
| 29 | #:use-module (gnu packages pkg-config)
|
| 30 | #:use-module (gnu packages plotutils)
|
| 31 | #:use-module (gnu packages imagemagick)
|
| 32 | #:use-module (gnu packages ghostscript))
|
| 33 |
|
| 34 | (define-public skribilo
|
| 35 | (package
|
| 36 | (name "skribilo")
|
| 37 | (version "0.11.1")
|
| 38 | (source (origin
|
| 39 | (method url-fetch)
|
| 40 | (uri (string-append "mirror://savannah/skribilo/skribilo-"
|
| 41 | version ".tar.gz"))
|
| 42 | (sha256
|
| 43 | (base32
|
| 44 | "14nm50dd27w287raiffhmmivl66ff6f4n793y5lz62wj88f28p36"))))
|
| 45 | (build-system gnu-build-system)
|
| 46 | (arguments
|
| 47 | |
| 48 | `(#:phases
|
| 49 | (modify-phases %standard-phases
|
| 50 | (add-before 'configure 'pre-configure
|
| 51 | (lambda* (#:key inputs #:allow-other-keys)
|
| 52 | |
| 53 | |
| 54 | |
| 55 | (let ((reader (assoc-ref inputs "guile-reader"))
|
| 56 | (effective ,(version-major+minor
|
| 57 | (package-version
|
| 58 | (car (assoc-ref (package-inputs this-package)
|
| 59 | "guile"))))))
|
| 60 | (substitute* "src/skribilo.in"
|
| 61 | (("^exec (.*) -c" _ things)
|
| 62 | (string-append "exec " things
|
| 63 | " -L " reader "/share/guile/site/" effective
|
| 64 | " -C " reader
|
| 65 | "/lib/guile/" effective "/site-ccache"
|
| 66 | " -c"))))
|
| 67 | #t)))
|
| 68 |
|
| 69 | #:parallel-build? #f
|
| 70 |
|
| 71 | |
| 72 | |
| 73 | |
| 74 | #:tests? #f))
|
| 75 |
|
| 76 | (native-inputs (list pkg-config))
|
| 77 |
|
| 78 | (inputs (list guile-3.0
|
| 79 | imagemagick
|
| 80 | ghostscript |
| 81 | lout))
|
| 82 |
|
| 83 | |
| 84 | |
| 85 | (propagated-inputs (list guile-reader guile-lib))
|
| 86 |
|
| 87 | (home-page "https://www.nongnu.org/skribilo/")
|
| 88 | (synopsis "Document production tool written in Guile Scheme")
|
| 89 | (description
|
| 90 | "Skribilo is a free document production tool that takes a structured
|
| 91 | document representation as its input and renders that document in a variety of
|
| 92 | output formats: HTML and Info for on-line browsing, and Lout and LaTeX for
|
| 93 | high-quality hard copies.
|
| 94 |
|
| 95 | The input document can use Skribilo's markup language to provide information
|
| 96 | about the document's structure, which is similar to HTML or LaTeX and does not
|
| 97 | require expertise. Alternatively, it can use a simpler, “markup-less” format
|
| 98 | that borrows from Emacs' outline mode and from other conventions used in
|
| 99 | emails, Usenet and text.
|
| 100 |
|
| 101 | Lastly, Skribilo provides Guile Scheme APIs.")
|
| 102 | (license gpl3+)))
|