gnu: utox: Update to 0.16.1.
* gnu/packages/messaging.scm (utox): Update to 0.16.1. [inputs]: Add check and gtk+. [native-inputs]: Add pkg-config. [arguments]: Remove 'fix-freetype-include' and 'patch-cmake-find-utox' phases. Add 'patch-absolute-filename-libgtk-3' and 'wrap-program' phases. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
d7c64ad513
commit
907ab9e8cb
|
@ -796,7 +796,7 @@ messenger protocol.")
|
||||||
(define-public utox
|
(define-public utox
|
||||||
(package
|
(package
|
||||||
(name "utox")
|
(name "utox")
|
||||||
(version "0.11.0")
|
(version "0.16.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -805,37 +805,41 @@ messenger protocol.")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"15s4iwjk1s0kihjqn0f07c9618clbphpr827mds3xddkiwnjz37v"))))
|
"14xl72y4w1x2kk0cvkcr9pmywllm0r9w2grjqiknwn95pw6yxz6q"))))
|
||||||
(build-system cmake-build-system)
|
(build-system cmake-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ; No test phase.
|
`(#:phases
|
||||||
#:phases
|
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-freetype-include
|
(add-before 'build 'patch-absolute-filename-libgtk-3
|
||||||
(lambda _
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* "CMakeLists.txt"
|
(substitute* "../uTox-0.16.1/src/xlib/gtk.c"
|
||||||
(("/usr/include/freetype2")
|
(("libgtk-3.so")
|
||||||
(string-append (assoc-ref %build-inputs "freetype")
|
(string-append (assoc-ref inputs "gtk+")
|
||||||
"/include/freetype2")))))
|
"/lib/libgtk-3.so")))))
|
||||||
(add-before 'install 'patch-cmake-find-utox
|
(add-after 'install 'wrap-program
|
||||||
(lambda _
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* "../build/cmake_install.cmake"
|
(wrap-program (string-append (assoc-ref outputs "out")
|
||||||
(("/uTox-0.11.0/utox")
|
"/bin/utox")
|
||||||
"/build/utox")))))))
|
;; For GtkFileChooserDialog.
|
||||||
|
`("GSETTINGS_SCHEMA_DIR" =
|
||||||
|
(,(string-append (assoc-ref inputs "gtk+")
|
||||||
|
"/share/glib-2.0/schemas")))))))))
|
||||||
(inputs
|
(inputs
|
||||||
;; TODO: Fix the file chooser dialog; which input does it need?
|
|
||||||
`(("dbus" ,dbus)
|
`(("dbus" ,dbus)
|
||||||
("filteraudio" ,filteraudio)
|
("filteraudio" ,filteraudio)
|
||||||
("fontconfig" ,fontconfig)
|
("fontconfig" ,fontconfig)
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
("libsodium" ,libsodium)
|
("libsodium" ,libsodium)
|
||||||
("c-toxcore" ,c-toxcore)
|
("c-toxcore" ,c-toxcore)
|
||||||
|
("check" ,check)
|
||||||
|
("gtk+" ,gtk+)
|
||||||
("libvpx" ,libvpx)
|
("libvpx" ,libvpx)
|
||||||
("libx11" ,libx11)
|
("libx11" ,libx11)
|
||||||
("libxext" ,libxext)
|
("libxext" ,libxext)
|
||||||
("libxrender" ,libxrender)
|
("libxrender" ,libxrender)
|
||||||
("openal" ,openal)
|
("openal" ,openal)
|
||||||
("v4l-utils" ,v4l-utils)))
|
("v4l-utils" ,v4l-utils)))
|
||||||
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||||
(synopsis "Lightweight Tox client")
|
(synopsis "Lightweight Tox client")
|
||||||
(description
|
(description
|
||||||
"Utox is a lightweight Tox client. Tox is a distributed and secure
|
"Utox is a lightweight Tox client. Tox is a distributed and secure
|
||||||
|
|
Loading…
Reference in New Issue