gnu: libringclient: Update to 20210326.1.cfba013.

* gnu/packages/jami.scm (libringclient): Update to 20210326.1.cfba013.  Remove
trailing #t.  Do not inherit from libring.
[version, source]: Specify fields.
[propagated-inputs]: Remove qttools.  Move libring to ...
[inputs]: ... here.  Add network-manager.
[configure-flags] Define the RING_XML_INTERFACES_DIR and LIBWRAP variables.
[phases]{fix-dbus-interfaces-path}: Delete.
[synopsis]: More explicitly describe what this component is.
[description]: Describe the specifics before the generalities.
This commit is contained in:
Maxim Cournoyer 2021-03-30 21:03:16 -04:00
parent 2cfd4770af
commit 40a5f7904a
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -473,37 +473,39 @@ (define-public libring
(define-public libringclient (define-public libringclient
(package (package
(inherit libring)
(name "libringclient") (name "libringclient")
(version %jami-version)
(source %jami-sources)
(build-system cmake-build-system) (build-system cmake-build-system)
(inputs
`(("libring" ,libring)
("network-manager" ,network-manager)))
(propagated-inputs (propagated-inputs
`(("libring" ,libring) ; For 'dring'. `(("qtbase" ,qtbase))) ; Qt is included in several installed headers.
("qtbase" ,qtbase) ; Qt is included in several installed headers.
("qttools" ,qttools)))
(arguments (arguments
`(#:tests? #f ; There is no testsuite. `(#:tests? #f ; There is no testsuite.
#:configure-flags #:configure-flags
(list (string-append "-DRING_BUILD_DIR=" (let ((libring (assoc-ref %build-inputs "libring")))
(assoc-ref %build-inputs "libring") "/include")) (list (string-append "-DRING_XML_INTERFACES_DIR="
libring "/share/dbus-1/interfaces")
(string-append "-DRING_BUILD_DIR=" libring "/include")
;; Use LIBWRAP, which removes the requirement on DBus. Qt
;; links with the dbus library in Guix, which expects to find
;; its configuration under /etc rather than /usr/share/dbus-1,
;; which is perhaps the reason the auto-launching of dring
;; doesn't work on foreign distributions.
"-DENABLE_LIBWRAP=true"))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'change-directory (add-after 'unpack 'change-directory
(lambda _ (lambda _
(chdir "lrc") (chdir "lrc"))))))
#t)) (synopsis "Jami client library")
(add-before 'configure 'fix-dbus-interfaces-path (description "This package provides a library common to all Jami clients.
(lambda* (#:key inputs #:allow-other-keys) Jami is a secure and distributed voice, video and chat communication platform
(substitute* "CMakeLists.txt" that requires no centralized server and leaves the power of privacy in the
(("\\$\\{CMAKE_INSTALL_PREFIX\\}(/share/dbus-1/interfaces)" _ dbus-interfaces-path-suffix) hands of the user. It supports the SIP and IAX protocols, as well as
(string-append (assoc-ref inputs "libring") decentralized calling using P2P-DHT.")
dbus-interfaces-path-suffix))))))))
(synopsis "Distributed multimedia communications platform")
(description "Jami (formerly GNU Ring) 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.
This package provides a library common to all Jami clients.")
(home-page "https://jami.net") (home-page "https://jami.net")
(license license:gpl3+))) (license license:gpl3+)))