Subject: [PATCH 2/3] gnu: Add libstrophe.
From: Mekeor Melire <[email-masked]>
To: [email-masked]
Date: Wed, 01 Mar 2017 20:25:17 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

From 0dbaa88581732cb4c640da75fa273a17da482d87 Mon Sep 17 00:00:00 2001
From: Mekeor Melire <[email-masked]>
Date: Wed, 1 Mar 2017 20:10:28 +0100
Subject: [PATCH 2/3] gnu: Add libstrophe.

* gnu/packages/messaging.scm (libstrophe): New variable.
---
 gnu/packages/messaging.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index b3d988be7..50ec49d77 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -1256,4 +1256,38 @@ manual SSL certificate verification.")
     (home-page "https://github.com/boothj5/libmesode")
     (license (list license:gpl3+ license:x11))))
 
+(define-public libstrophe
+  (package
+    (name "libstrophe")
+    (version "0.9.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "https://github.com/strophe/libstrophe/archive/"
+                            version".tar.gz"))
+        (sha256
+         (base32
+          "1hzwdax4nsz0fncf5bjfza0cn0lc6xsf38y569ql1gg5hvwr6169"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'configure 'bootstrap
+           (lambda _
+             (zero? (system* "./bootstrap.sh")))))))
+    (inputs
+     `(("expat" ,expat)
+       ("openssl" ,openssl)))
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("pkg-config" ,pkg-config)))
+    (synopsis "A simple, lightweight C library for writing XMPP clients")
+    (description "Libstrophe is a minimal XMPP library written in C. It has
+almost no external dependencies, only an XML parsing library (expat or libxml
+are both supported).")
+    (home-page "http://strophe.im/libstrophe")
+    (license (list license:gpl3+ license:x11))))
+
 ;;; messaging.scm ends here
-- 
2.11.0