aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-11-05 00:03:15 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-11-06 00:08:07 -0400
commita6c90c293d5b0c77d3e1e967546fe0aadc53a102 (patch)
tree0ad399f9e60287ff4cf886f874a9918cee782049
parent788901567dc9ab7e514d738debc21f8610bec21c (diff)
downloadguix-a6c90c293d5b0c77d3e1e967546fe0aadc53a102.tar.gz
guix-a6c90c293d5b0c77d3e1e967546fe0aadc53a102.zip
gnu: Add jami-docs.
* gnu/packages/jami.scm (jami-docs): New variable.
-rw-r--r--gnu/packages/jami.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index e97d5a21cb..fce3658f01 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -45,8 +45,10 @@
#:use-module (gnu packages python)
#:use-module (gnu packages qt)
#:use-module (gnu packages serialization)
+ #:use-module (gnu packages sphinx)
#:use-module (gnu packages sqlite)
#:use-module (gnu packages telephony)
+ #:use-module (gnu packages texinfo)
#:use-module (gnu packages tls)
#:use-module (gnu packages upnp)
#:use-module (gnu packages version-control)
@@ -58,6 +60,7 @@
#:use-module (gnu packages xorg)
#:use-module (gnu packages)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix build-system qt)
#:use-module (guix download)
@@ -575,3 +578,49 @@ P2P-DHT.")
;;; Remove when 2023 comes.
(define-public jami-qt
(deprecated-package "jami-qt" jami))
+
+(define-public jami-docs
+ ;; There aren't any tags, so use the latest commit.
+ (let ((revision "0")
+ (commit "b00574bcc46538c4b405b5edb3b43bf5404ff511"))
+ (package
+ (name "jami-docs")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.jami.net/savoirfairelinux/jami-docs")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0iayi6yrb6djk0l2dwdxzlsga9c18ra8adplh8dad3zjdi75wnsq"))))
+ (build-system copy-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'build
+ (lambda _
+ (invoke "make" "info" "html" "man" "LANGS="
+ "-j" (number->string
+ (parallel-job-count))))))
+ #:install-plan
+ ;; TODO: Install localized info manuals and HTML.
+ ''(("_build/out/texinfo/jami.info" "share/info/")
+ ("_build/out/html" "share/doc/jami/")
+ ("_build/out/man/jami.1" "share/man/man1/"))))
+ (native-inputs
+ (list python
+ python-myst-parser
+ python-sphinx
+ python-sphinx-rtd-theme
+ texinfo))
+ (home-page "https://git.jami.net/")
+ (synopsis "Documentation for Jami")
+ (description "This package contains the documentation of Jami. Jami is
+a secure and distributed voice, video and chat communication platform that
+requires no centralized server and leaves the power of privacy in the hands of
+the user. It supports the SIP and IAX protocols, as well as decentralized
+calling using P2P-DHT.")
+ (license license:fdl1.3+))))