Subject: [PATCH] gnu: utox: Update to 0.16.1.
From: Rutger Helling <[email-masked]>
To: [email-masked]
Date: Wed, 22 Nov 2017 12:24:37 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Here's an update for utox.

From e62aed7e6dca94d53de01edc440c94d52588991a Mon Sep 17 00:00:00 2001
From: Rutger Helling <[email-masked]>
Date: Wed, 22 Nov 2017 12:17:48 +0100
Subject: [PATCH] gnu: utox: Update to 0.16.1.

* gnu/packages/messaging.scm (utox): Update to 0.16.1. [inputs]: Add check,
change comment. [native-inputs]: Add pkg-config. [arguments]: Remove, no
longer needed to build.
---
 gnu/packages/messaging.scm | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index b9cd80539..bf6afda8e 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -796,7 +796,7 @@ messenger protocol.")
 (define-public utox
   (package
    (name "utox")
-   (version "0.11.0")
+   (version "0.16.1")
    (source
     (origin
      (method url-fetch)
@@ -805,37 +805,24 @@ messenger protocol.")
      (file-name (string-append name "-" version ".tar.gz"))
      (sha256
       (base32
-       "15s4iwjk1s0kihjqn0f07c9618clbphpr827mds3xddkiwnjz37v"))))
+       "14xl72y4w1x2kk0cvkcr9pmywllm0r9w2grjqiknwn95pw6yxz6q"))))
    (build-system cmake-build-system)
-   (arguments
-    '(#:tests? #f ; No test phase.
-      #:phases
-      (modify-phases %standard-phases
-        (add-after 'unpack 'fix-freetype-include
-          (lambda _
-            (substitute* "CMakeLists.txt"
-              (("/usr/include/freetype2")
-               (string-append (assoc-ref %build-inputs "freetype")
-                              "/include/freetype2")))))
-        (add-before 'install 'patch-cmake-find-utox
-          (lambda _
-            (substitute* "../build/cmake_install.cmake"
-              (("/uTox-0.11.0/utox")
-               "/build/utox")))))))
    (inputs
-    ;; TODO: Fix the file chooser dialog; which input does it need?
+    ;; TODO: Fix the file chooser dialog; it seems to need GTK at runtime?
     `(("dbus" ,dbus)
       ("filteraudio" ,filteraudio)
       ("fontconfig" ,fontconfig)
       ("freetype" ,freetype)
       ("libsodium" ,libsodium)
       ("c-toxcore" ,c-toxcore)
+      ("check" ,check)
       ("libvpx" ,libvpx)
       ("libx11" ,libx11)
       ("libxext" ,libxext)
       ("libxrender" ,libxrender)
       ("openal" ,openal)
       ("v4l-utils" ,v4l-utils)))
+   (native-inputs `(("pkg-config" ,pkg-config)))
    (synopsis "Lightweight Tox client")
    (description
     "Utox is a lightweight Tox client.  Tox is a distributed and secure
-- 
2.15.0