gnu: Add lime.

* gnu/packages/linphone.scm (lime): New variable.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Raghav Gururajan 2021-03-16 23:08:41 -04:00 committed by Maxim Cournoyer
parent 3c7ff0be83
commit 093c5da747
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -27,6 +27,7 @@ (define-module (gnu packages linphone)
#:use-module (gnu packages base)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
#:use-module (gnu packages databases)
#:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
@ -676,6 +677,58 @@ (define-public mediastreamer2
(home-page "https://linphone.org/technical-corner/mediastreamer2")
(license license:gpl3+)))
(define-public lime
(package
(name "lime")
(version "4.4.34")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gitlab.linphone.org/BC/public/lime.git")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "14jg1zisjbzflw3scfqdbwy48wq3cp93l867vigb8l40lkc6n26z"))))
(build-system cmake-build-system)
(outputs '("out" "doc"))
(arguments
`(#:configure-flags (list "-DENABLE_STATIC=NO"
"-DENABLE_C_INTERFACE=YES")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-source
(lambda _
;; Disable tests that require networking.
(substitute* "tester/CMakeLists.txt"
(("add_test\\(?.*\"Hello World\"\\)") "")
(("add_test\\(?.*\"lime\"\\)") "")
(("add_test\\(?.*\"FFI\"\\)") ""))))
(add-after 'build 'build-doc
(lambda _
(invoke "make" "doc")))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((doc (assoc-ref outputs "doc"))
(dir (string-append doc "/share/doc"))
(dest (string-append dir "/" ,name "-" ,version)))
(mkdir-p dest)
(copy-recursively "doc" dest)))))))
(native-inputs
`(("dot" ,graphviz)
("doxygen" ,doxygen)))
(inputs
`(("bctoolbox" ,bctoolbox)
("belle-sip" ,belle-sip)
("soci" ,soci)))
(synopsis "Belledonne Communications Encryption Library")
(description "LIME is an encryption library for one-to-one and group
instant messaging, allowing users to exchange messages privately and
asynchronously. It supports multiple devices per user and multiple users per
device.")
(home-page "https://linphone.org/technical-corner/lime")
(license license:gpl3+)))
(define-public liblinphone
(package
(name "liblinphone")