Subject: bug#26555: [PATCH] gnu: Add balsa.

From: rennes <[email-masked]>
Date: Tue, 18 Apr 2017 12:54:59 -0500

Balsa is an e-mail client, supports POP/IMAP protocols.

License: some libraries are under gpl3+, the COPYNG file says gpl3.
Lint and tested.

From 1a7b56056154b0db77ce88d08ce7ae1567f169a3 Mon Sep 17 00:00:00 2001
From: rennes <[email-masked]>
Date: Tue, 18 Apr 2017 12:35:41 -0500
Subject: [PATCH] gnu: Add balsa.

* gnu/packages/mail.scm (balsa): New variable.
---
 gnu/packages/mail.scm | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 983629f85..6eaca8e3c 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2017 Thomas Danckaert <[email-masked]>
 ;;; Copyright © 2017 Kyle Meyer <[email-masked]>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <[email-masked]>
+;;; Copyright © 2017 Rene Saavedra <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -94,6 +95,7 @@
   #:use-module (gnu packages tls)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages web)
+  #:use-module (gnu packages webkit)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages docbook)
@@ -2284,3 +2286,59 @@ tools and applications:
 @item pilot, the standalone file system navigator
 @end enumerate\n")
     (license asl2.0)))
+
+(define-public balsa
+  (package
+    (name "balsa")
+    (version "2.5.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://pawsa.fedorapeople.org/balsa/"
+                           name "-" version ".tar.bz2"))
+       (sha256
+        (base32
+         "15jkwp3ylbwd8iha4dr37z1xb6mkk31ym90vv3h2a5xk2rmym5mq"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags (list
+                          ;; Balsa tries to install additional MIME icons
+                          ;; under gtk+ directory.
+                          "--enable-extra-mimeicons=no"
+                          "--with-gtksourceview"
+                          "--with-canberra"
+                          "--with-spell-checker=gtkspell"
+                          "--with-gpgme"
+                          "--with-sqlite"
+                          "--with-compface"
+                          "--with-ldap")))
+    (native-inputs
+     `(("compface" ,compface)
+       ("glib" ,glib "bin")
+       ("intltool" ,intltool)
+       ("pkg-config" ,pkg-config)
+       ("yelp-tools" ,yelp-tools)))
+    (inputs
+     `(("cyrus-sasl" ,cyrus-sasl)
+       ("enchant" ,enchant)
+       ("gdk-pixbuf" ,gdk-pixbuf)
+       ("gmime" ,gmime)
+       ("gnutls" ,gnutls)
+       ("gpgme" ,gpgme)
+       ("gtk+" ,gtk+)
+       ("gtksourceview" ,gtksourceview)
+       ("gtkspell3" ,gtkspell3)
+       ("libcanberra" ,libcanberra)
+       ("libesmtp" ,libesmtp)
+       ("libnotify" ,libnotify)
+       ("openldap" ,openldap)
+       ("sqlite" ,sqlite)
+       ("webkitgtk" ,webkitgtk)))
+    (home-page "https://pawsa.fedorapeople.org/balsa")
+    (synopsis "E-mail client for GNOME")
+    (description
+     "Balsa is a highly configurable and robust mail client for the
+GNOME desktop.  It supports both POP3 and IMAP servers as well as the mbox,
+maildir and mh local mailbox formats.
+Balsa also supports SMTP and/or the use of a local MTA such as Sendemail.")
+    (license gpl3+)))
-- 
2.12.0