summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-03 23:45:36 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-03 23:49:14 +0100
commit6a1464b0cc8c0b3e53d2580661a8c69d79f183ab (patch)
tree2c61ad22a6ac964cd34a0e33f5bd009f568f43b1
parent8f084b2c7c68015fb10542f804d7016c872c3c3d (diff)
gnu: Add telepathy-salut.
* gnu/packages/freedesktop.scm (telepathy-salut): New variable.
-rw-r--r--gnu/packages/freedesktop.scm78
1 files changed, 77 insertions, 1 deletions
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 08f3c3f56f..2f2c9442b1 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2015, 2017 Andy Wingo <wingo@pobox.com>
;;; Copyright © 2015-2017, 2019, 2021-2022 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2015, 2017, 2018, 2019, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2017, 2018, 2019, 2021, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
;;; Copyright © 2016, 2017, 2019, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
@@ -66,6 +66,7 @@
#:use-module (gnu packages acl)
#:use-module (gnu packages admin)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages avahi)
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages boost)
@@ -121,6 +122,7 @@
#:use-module (gnu packages samba)
#:use-module (gnu packages serialization)
#:use-module (gnu packages sqlite)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages valgrind)
#:use-module (gnu packages video)
#:use-module (gnu packages w3m)
@@ -1934,6 +1936,80 @@ for the Telepathy framework, allowing user interfaces and other clients to
share connections to real-time communication services without conflicting.")
(license license:lgpl2.1)))
+(define-public telepathy-salut
+ ;; telepathy-salut bundles wocky, an unreleased library. The latest commit
+ ;; includes a more recent version.
+ (let ((commit "90dbe5e74ccdd063cb123212a754f994c9d2019f")
+ (revision "1"))
+ (package
+ (name "telepathy-salut")
+ (version (git-version "0.8.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/TelepathyIM/telepathy-salut")
+ (commit commit)
+ (recursive? #true)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "195pz8dgwhyy1cygd0rlncyr3c4wzhnf99sfjj5qmc8j195j1k7a"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ #:phases
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'delete-autogen
+ (lambda _ (delete-file "autogen.sh")))
+ ;; The twisted tests all fail, but there are no logs, so we can't
+ ;; tell what's wrong.
+ (add-after 'unpack 'disable-twisted-tests
+ (lambda _
+ (substitute* "tests/Makefile.am"
+ (("SUBDIRS = twisted") ""))))
+ (add-before 'configure 'configure-wocky
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ (with-directory-excursion "lib/ext/wocky"
+ (invoke "gtkdocize")
+ (invoke "bash" "autoreconf" "-vif")
+ (substitute* "configure"
+ (("/bin/sh") (which "sh")))
+ (apply invoke "bash" "configure" configure-flags)))))
+ #:configure-flags
+ #~(list (string-append "--prefix=" #$output)
+ "--disable-avahi-tests"
+ "--without-ca-certificates"
+ "--disable-Werror")))
+ (native-inputs
+ (list autoconf
+ automake
+ libtool
+ `(,glib "bin") ;for glib-compile-schemas, etc.
+ gtk-doc
+ pkg-config))
+ (inputs
+ (list avahi
+ dbus
+ glib
+ gnutls
+ gobject-introspection
+ libxml2
+ libxslt
+ libsoup-minimal-2
+ python
+ `(,util-linux "lib")))
+ (propagated-inputs
+ (list telepathy-glib))
+ (home-page "https://telepathy.freedesktop.org/wiki/Components/")
+ (synopsis "Link-local XMPP connection manager")
+ (description
+ "Salut is a link-local XMPP (XEP-0174) connection manager for the
+Telepathy framework, currently supporting presence and single-user chats with
+iChat interoperability, and multi-user chats and Tubes using the
+@url{https://telepathy.freedesktop.org/wiki/Clique,Clique} protocol.")
+ (license license:lgpl2.1))))
+
(define-public colord-gtk
(package
(name "colord-gtk")