From 5e1c842fd4b4537cd83b4abf96f45a850ead8aa7 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Wed, 30 Sep 2020 05:52:34 -0400 Subject: [PATCH 3/5] gnu: claws-mail: Update to 3.17.7. * gnu/packages/mail.scm (claws-mail) [version]: Update to 3.17.7. [source][sha256]: Modify base32. [arguments]<#:configure-flags>: Remove all configure flags. [arguments]<#:phases>['patch-mime]: Remove phase. ['patch-fhs-dirs]: New phase. [inputs]: Add bash, cairo, compface, dbus, fontconfig, gdk-pibuf, glib, gobject-introspection, gumbo-parser, libgdata, librsvg, libsoup, mailutils, nettle, openldap, poppler, python, python2-pygtk and webkitgtk. Remove hicolor-icon-theme, libsm and libxml2. --- gnu/packages/mail.scm | 64 +++++++++++++++++++++++++++++-------------- 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index d0ad0e41d3..febf207710 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -75,6 +75,7 @@ #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) #:use-module (gnu packages enchant) + #:use-module (gnu packages fontutils) #:use-module (gnu packages gdb) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) @@ -102,10 +103,12 @@ #:use-module (gnu packages m4) #:use-module (gnu packages man) #:use-module (gnu packages ncurses) + #:use-module (gnu packages nettle) #:use-module (gnu packages networking) #:use-module (gnu packages openldap) #:use-module (gnu packages onc-rpc) #:use-module (gnu packages pcre) + #:use-module (gnu packages pdf) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages perl-web) @@ -1317,25 +1320,19 @@ compresses it.") (define-public claws-mail (package (name "claws-mail") - (version "3.17.6") + (version "3.17.7") (source (origin (method url-fetch) (uri (string-append "https://www.claws-mail.org/releases/claws-mail-" - version ".tar.xz")) + version ".tar.gz")) (sha256 - (base32 "1s05qw0r0gqwvvkxvrrwbjkbi61dvilixiwrpgcq21qc9csc9r0m")))) + (base32 "0zqjfjy8qj6j6a6r0xs97si7hkcsb7jvxx4k2kkdxypqmdkwrn2q")))) (build-system glib-or-gtk-build-system) (arguments - `(#:configure-flags - (list - "--enable-gnutls" - "--enable-pgpmime-plugin" - "--enable-enchant" - "--enable-ldap") - #:make-flags + `(#:make-flags ;; Disable updating icon cache since it's done by the profile hook. ;; Conflict with other packages in the profile would be inevitable ;; otherwise. @@ -1343,37 +1340,64 @@ compresses it.") "gtk_update_icon_cache=true") #:phases (modify-phases %standard-phases - (add-before 'build 'patch-mime + (add-after 'unpack 'patch-fhs-dirs (lambda* (#:key inputs #:allow-other-keys) - (substitute* "src/procmime.c" - (("/usr/share/mime/globs") - (string-append (assoc-ref inputs "mime-info") - "/share/mime/globs")))))))) + (let* + ((sh (string-append (assoc-ref inputs "bash") + "/bin/sh")) + (inc (string-append (assoc-ref inputs "mailutils") + "/bin/mu-mh/inc")) + (send (string-append (assoc-ref inputs "mailutils") + "/bin/mu-mh/send")) + (globs (string-append (assoc-ref inputs "shared-mime-info") + "/share/mime/globs"))) + (with-directory-excursion "src" + (substitute* '("action.c" "common/defs.h" "etpan/imap-thread.c") + (("/bin/sh") sh) + (("/usr/bin/mh/inc") inc) + (("/usr/sbin/sendmail") send) + (("/usr/share/mime/globs") globs))) + #t)))))) (native-inputs `(("pkg-config" ,pkg-config))) (inputs - `(("bogofilter" ,bogofilter) + `(("bash" ,bash) + ("bogofilter" ,bogofilter) + ("cairo" ,cairo) ("curl" ,curl) ("dbus-glib" ,dbus-glib) + ("dbus" ,dbus) ("enchant" ,enchant) ("expat" ,expat) + ("fontconfig" ,fontconfig) + ("gdk-pxbuf" ,gdk-pixbuf+svg) ("ghostscript" ,ghostscript) - ("hicolor-icon-theme" ,hicolor-icon-theme) + ("glib" ,glib) ("gnupg" ,gnupg) ("gnutls" ,gnutls) + ("gobject-introspection" ,gobject-introspection) ("gpgme" ,gpgme) ("gtk" ,gtk+-2) + ("gumbo-parser" ,gumbo-parser) ("libarchive" ,libarchive) ("libcanberra" ,libcanberra) ("libetpan" ,libetpan) + ("libgdata" ,libgdata) ("libical" ,libical) ("libnotify" ,libnotify) - ("libsm" ,libsm) - ("libxml2" ,libxml2) + ("librsvg" ,librsvg) + ("libsoup" ,libsoup) + ("mailutils" ,mailutils) + ("nettle" ,nettle) + ("openldap" ,openldap) ("perl" ,perl) + ("poppler" ,poppler) + ("python" ,python) ("python-2" ,python-2) + ("python2-pygtk" ,python2-pygtk) ("mime-info" ,shared-mime-info) - ("startup-notification" ,startup-notification))) + ("startup-notification" ,startup-notification) + ("webkitgtk" ,webkitgtk))) (synopsis "GTK-based Email client") (description "Claws-Mail is an email client (and news reader) based on GTK+. The appearance and interface are designed to be familiar to new users coming from -- 2.28.0