Subject: Make some changes to Profanity stuff
From: Raghav Gururajan <[email-masked]>
To: [email-masked]
Date: Fri, 19 Feb 2021 22:08:03 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

From aff3b7f4d00497c13b36cc18bbaab377ba73236c Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <[email-masked]>
Date: Fri, 19 Feb 2021 19:37:30 -0500
Subject: [PATCH 1/4] gnu: libmesode: Change source url and home-page to
 official one.

* gnu/packages/messaging.scm (libmesode): Change source url and home-page to official one.
---
 gnu/packages/messaging.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index a60c9ec8f6..375d90ae85 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -2051,7 +2051,7 @@ is also scriptable and extensible via Guile.")
     (source (origin
               (method git-fetch)
               (uri (git-reference
-                    (url "https://github.com/boothj5/libmesode")
+                    (url "https://github.com/profanity-im/libmesode")
                     (commit version)))
               (file-name (git-file-name name version))
               (sha256
@@ -2070,7 +2070,7 @@ is also scriptable and extensible via Guile.")
     (description "Libmesode is a fork of libstrophe for use with Profanity
 XMPP Client.  In particular, libmesode provides extra TLS functionality such as
 manual SSL certificate verification.")
-    (home-page "https://github.com/boothj5/libmesode")
+    (home-page "https://github.com/profanity/libmesode")
     ;; Dual-licensed.
     (license (list license:gpl3+ license:x11))))
 
-- 
2.30.1

From 66846151205e6f49a1391101caa095026c4d48cf Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <[email-masked]>
Date: Fri, 19 Feb 2021 19:46:39 -0500
Subject: [PATCH 2/4] gnu: profanity: Add missing inputs.

* gnu/packages/messaging.scm (profanity) [inputs]: Add libgcrypt.
---
 gnu/packages/messaging.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 375d90ae85..f79fe93e7d 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -2142,10 +2142,12 @@ are both supported).")
        ("glib" ,glib)
        ("gpgme" ,gpgme)
        ("gtk+" ,gtk+-2)
+       ("libgcrypt" ,libgcrypt)
        ("libmesode" ,libmesode)
        ("libnotify" ,libnotify)
        ("libotr" ,libotr)
        ("libsignal-protocol-c" ,libsignal-protocol-c)
+       ;; ("libxss" ,libxss)
        ("ncurses" ,ncurses)
        ("openssl" ,openssl)
        ("python" ,python-wrapper)
-- 
2.30.1

From 07e88a75facc34bf691f4efede96114644c93d43 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <[email-masked]>
Date: Fri, 19 Feb 2021 20:24:15 -0500
Subject: [PATCH 3/4] gnu: libmesode: Disable static libraries.

* gnu/packages/messaging.scm (libmesode) [arguments]<#:tests?>: New argument.
<#:configure-flags>[--disable-static]: New flag.
---
 gnu/packages/messaging.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index f79fe93e7d..189b789811 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -2058,6 +2058,11 @@ is also scriptable and extensible via Guile.")
                (base32
                 "1bxnkhrypgv41qyy1n545kcggmlw1hvxnhwihijhhcf2pxd2s654"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f         ; https://github.com/profanity-im/libmesode/issues/20
+       #:configure-flags
+       (list
+        "--disable-static")))
     (inputs
      `(("expat" ,expat)
        ("openssl" ,openssl)))
-- 
2.30.1

From 6293a8e4b2b9916b6091027caa218a84826b4bc9 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <[email-masked]>
Date: Fri, 19 Feb 2021 20:28:57 -0500
Subject: [PATCH 4/4] gnu: profanity: Disable static libraries.

* gnu/packages/messaging.scm (profanity) [arguments]<#:configure-flag>: Add --disable-static.
---
 gnu/packages/messaging.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 189b789811..3806e092e5 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -2126,6 +2126,7 @@ are both supported).")
     (arguments
      `(#:configure-flags
        (list
+        "--disable-static"
         "--enable-notifications"
         "--enable-python-plugins"
         "--enable-c-plugins"
-- 
2.30.1