| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 |
|
| 19 | (define-module (gnu packages taler)
|
| 20 | #:use-module (gnu packages python)
|
| 21 | #:use-module (gnu packages sphinx)
|
| 22 | #:use-module (gnu packages texinfo)
|
| 23 | #:use-module (guix gexp)
|
| 24 | #:use-module ((guix licenses) #:prefix license:)
|
| 25 | #:use-module (guix packages)
|
| 26 | #:use-module (guix git-download)
|
| 27 | #:use-module (guix build-system gnu))
|
| 28 |
|
| 29 | (define-public taler-docs
|
| 30 | |
| 31 | (let ((commit "1557e7a3547cfa04b111c40ce0feef9581121635")
|
| 32 | (revision "0"))
|
| 33 | (package
|
| 34 | (name "taler-docs")
|
| 35 | (version (git-version "0.0.0" revision commit))
|
| 36 | (source (origin
|
| 37 | (method git-fetch)
|
| 38 | (uri (git-reference
|
| 39 | (url "git://git.taler.net/taler-docs.git")
|
| 40 | (commit commit)))
|
| 41 | (file-name (git-file-name name version))
|
| 42 | (sha256
|
| 43 | (base32
|
| 44 | "1lhcvqlazsqbj391d7dlp6rzblld4jij8z2vym2cbgz4mzb2vqj1"))
|
| 45 | (modules '((guix build utils)
|
| 46 | (ice-9 ftw)
|
| 47 | (srfi srfi-26)))
|
| 48 | (snippet
|
| 49 | #~(begin
|
| 50 | |
| 51 | (define (delete-all-but directory . preserve)
|
| 52 | (with-directory-excursion directory
|
| 53 | (let* ((pred (negate (cut member <>
|
| 54 | (cons* "." ".." preserve))))
|
| 55 | (items (scandir "." pred)))
|
| 56 | (for-each (cut delete-file-recursively <>) items))))
|
| 57 | |
| 58 | (delete-all-but "_exts"
|
| 59 | |
| 60 | "ebicsdomain.py"
|
| 61 | "typescriptdomain.py")
|
| 62 | (substitute* "conf.py"
|
| 63 | (("httpdomain.httpdomain")
|
| 64 | "sphinxcontrib.httpdomain"))))))
|
| 65 | (build-system gnu-build-system)
|
| 66 | (arguments
|
| 67 | (list
|
| 68 | #:tests? #f |
| 69 | #:make-flags #~(list "info" "man")
|
| 70 | #:phases
|
| 71 | #~(modify-phases %standard-phases
|
| 72 | (delete 'configure) |
| 73 | (replace 'install
|
| 74 | (lambda _
|
| 75 | (invoke "make" "-C" "_build/texinfo"
|
| 76 | "install-info" (string-append "infodir=" #$output
|
| 77 | "/share/info"))
|
| 78 | (let ((mandir (string-append #$output "/share/man")))
|
| 79 | (mkdir-p mandir)
|
| 80 | (copy-recursively "_build/man" mandir)))))))
|
| 81 | (native-inputs
|
| 82 | (list python-minimal
|
| 83 | python-myst-parser
|
| 84 | python-sphinx
|
| 85 | python-sphinx-design
|
| 86 | python-sphinx-multitoc-numbering
|
| 87 | python-sphinx-plantuml
|
| 88 | python-sphinxcontrib-httpdomain
|
| 89 | texinfo))
|
| 90 | (home-page "https://www.taler.net/")
|
| 91 | (synopsis "Documentation of the GNU Taler project")
|
| 92 | (description "This package includes the complete documentation of all
|
| 93 | the GNU Taler components, as Texinfo manuals and man pages.")
|
| 94 | |
| 95 | |
| 96 | (license license:agpl3+))))
|