summaryrefslogtreecommitdiff
path: root/mail-client/balsa
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-21 19:05:26 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-21 19:05:26 +0100
commit511de054920d6e2f43eb973d13aee9b4e3e9a926 (patch)
tree5b2f65aa4c29c8b8a42d466145083e299acb498e /mail-client/balsa
parent8cdbce52e2f89fecc3d9bac3ff73ebee1c8f8c75 (diff)
gentoo resync : 21.07.2018
Diffstat (limited to 'mail-client/balsa')
-rw-r--r--mail-client/balsa/Manifest8
-rw-r--r--mail-client/balsa/balsa-2.5.2-r1.ebuild104
-rw-r--r--mail-client/balsa/balsa-2.5.6-r1.ebuild71
-rw-r--r--mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch156
-rw-r--r--mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch53
-rw-r--r--mail-client/balsa/metadata.xml2
6 files changed, 285 insertions, 109 deletions
diff --git a/mail-client/balsa/Manifest b/mail-client/balsa/Manifest
index 1a6ab79fdf25..e4eec92db213 100644
--- a/mail-client/balsa/Manifest
+++ b/mail-client/balsa/Manifest
@@ -1,5 +1,7 @@
-DIST balsa-2.5.2.tar.bz2 4049163 BLAKE2B 7435c7831d528b3ab6d2783211023e3686e94b266ed0804ecb2d9605add6c3826b029c679d137bb3e176b112b11bc68a7e9fd828bc18c2e5c5636b8ef8ec85e4 SHA512 f7a9127d87869d57acebaf33f9e3e4b82c5a5ba90aa5304ce40ba48a1a7f01eaf602555f8e97bce70b0baeb2ac8b5ac12941eaa8b85be1886bf22f7767dd75ba
+AUX balsa-2.5.6-fix-older-webkit1.patch 5887 BLAKE2B 50f168661e61ceebefebf75eb710575747835d4000bb6d3a699408842833aa34778a6f4686f2f84b9dcbf46355b74c1148b58e4bf4655656f0db6080e1ade0b5 SHA512 b70824443d91aaeba035de9615c7699d73e78e4f5293ad9b9e8d62e1ba3488f355071e519c2c988b5ed944debbd978f3e7ea74f286b4225761bc9c54cb5545af
+AUX balsa-2.5.6-fix-older-webkit2.patch 1601 BLAKE2B a07266737af3a755e9b2113be0d3d5352b548ef73a41d4af62ca8298c2e86540e34686c7c45a683c6152e89c41655cd5e134209803c9601f1ba4d26b2da07a07 SHA512 45c47ca20818dd46a916c57135a5617006bbc055c343705b5596845b31a7df02ee30a21ee83edb73b85a12f5c0705541fd77c45c30ab64c4c1a07102ac0fe722
DIST balsa-2.5.3.tar.bz2 4333815 BLAKE2B ba8715108cf1122152c069130911275175d5c45ca12e85f1165cb7e86680015d6effd1ea5aaaebd5b154f67fc13002bd26ad0f0d7942253b2483896dd28a50fd SHA512 34e69be050f6c502fa6651029b7d93bf9b7842bbe8489669924563c086def4dbe72109ba5244e0cacf3ef69d3d9d8c5679f870acf564b5551920fa77012e1ff8
-EBUILD balsa-2.5.2-r1.ebuild 2573 BLAKE2B ee91a813897fb5865eb2407f131a6b193c78dd368bdc249fa471f0639d5022e7918da30a6db0da73b16e69ee9f4a48139c0c2972dfd50304ddde9c0610a08b77 SHA512 87414906f0a40d7ccf62ff76cefa2583bb99ea9f07a366f8964f4305424ae5f7034bc2c046a3181b11f4342cfac7eac6ffb9358b030ddb7dd8395bbccb37182b
+DIST balsa-2.5.6.tar.bz2 4468877 BLAKE2B 1e7f678c69121fe3472bbba8dc3d2a62680e1969934580a8a85725e84676531f1efb8432380c2d537ca584001c5cecd5c76cd033a1c1e68a292fc765bbc15f8d SHA512 a9c8094ac48b9b1a0971fe45a4658b728f93ad170ad7884c9554420a4696a7b6f5b3661bde8ab070f6a5c14a80f67551745e1d40905881429ae1d8e5874e9a68
EBUILD balsa-2.5.3-r1.ebuild 2115 BLAKE2B 26c3bf7c82b1e28142592b0be6804e56ccd89efa7cf30614e80778bd776cc8d996162bd6ae984f3757e1849b02d25a61d6f1183495f2cf80588c22b6c1c43496 SHA512 c5001e1bb1ab9809d3f7dfcafecb0ba713bcb034744bd691f227149179996e8b935b61b23881497d0cd355be32c14b7e3d8a33bfe7aef18c46ea6af73d1b01ea
-MISC metadata.xml 525 BLAKE2B 3afe2cdc67ef1373e7f1db8421db62d12dab1288b8c46787e1adfdd8a6cf4cf3df7514222dd2a17c2ffcef88c6be10a77f35981c2a95c81d9ffc6631f62b9acb SHA512 2cff8f1968d1d1656b2eb01b1a373483a2168a4cdf2556c8cd7a4558f3e0821b816fc7cc2e1476ee8a8fe90622835c6b10e392b6ea7e64eba592c6f50922d4fe
+EBUILD balsa-2.5.6-r1.ebuild 1967 BLAKE2B f228287f032aff01d0f6755459a474ab84d0fc5c80d7fea79f70ed747cf51e71e77d38a2551e87a395a5b16c5a66e28b4c99d45ab267cd60df2439ed72b2b8fe SHA512 0694ed959126fec8e94212c79b68a1a1ad9c1696d8102591954696612d0f75f6ea62e99fc920b319604855964c950709bddc874bde771b537634c23ad65eca83
+MISC metadata.xml 397 BLAKE2B a3e92ebea646f1e37ad27a49e5550d95a0182109ecc3d7c3f448382c28281fbbb8fe71d74789544035b249f663b4803cd711c91635e5f8e4aee616c64a0868cd SHA512 4516e80231827cefbd4f6bdeac5fb7d1281c2c630bc5929cdf016d4887bfb80aec610addad886224dfd229189daa515c9d259176ed69cef62e97e799b9ceda4c
diff --git a/mail-client/balsa/balsa-2.5.2-r1.ebuild b/mail-client/balsa/balsa-2.5.2-r1.ebuild
deleted file mode 100644
index 7cfc68bf4b5c..000000000000
--- a/mail-client/balsa/balsa-2.5.2-r1.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-GCONF_DEBUG="no"
-
-inherit eutils gnome2
-
-DESCRIPTION="Email client for GNOME"
-HOMEPAGE="http://pawsa.fedorapeople.org/balsa/"
-SRC_URI="http://pawsa.fedorapeople.org/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha amd64 ~ppc ~sparc x86"
-
-IUSE="crypt gnome gtkhtml gnome-keyring +gtkspell kerberos ldap libnotify libressl rubrica sqlite ssl webkit xface"
-REQUIRED_USE="gtkhtml? ( !webkit )"
-
-# TODO: esmtp can be optional, do we want it?
-RDEPEND="
- >=dev-libs/glib-2.32:2
- >=x11-libs/gtk+-3.4.0:3
- dev-libs/gmime:2.6
- >=net-libs/libesmtp-1.0.3:=
- net-mail/mailbase
- media-libs/libcanberra:=[gtk3]
- x11-themes/hicolor-icon-theme
- x11-themes/adwaita-icon-theme
- crypt? ( >=app-crypt/gpgme-1.0:= )
- gnome? ( >=x11-libs/gtksourceview-3.2.0:3.0 )
- gnome-keyring? ( app-crypt/libsecret )
- gtkhtml? ( gnome-extra/gtkhtml:4.0 )
- sqlite? ( >=dev-db/sqlite-2.8:= )
- libnotify? ( >=x11-libs/libnotify-0.7:= )
- gtkspell? ( >=app-text/gtkspell-3.0.3:3 )
- !gtkspell? ( app-text/enchant )
- kerberos? ( app-crypt/mit-krb5 )
- ldap? ( net-nds/openldap )
- rubrica? ( dev-libs/libxml2:2 )
- ssl? (
- !libressl? ( dev-libs/openssl:0 )
- libressl? ( dev-libs/libressl )
- )
- webkit? ( net-libs/webkit-gtk:4 )
- xface? ( >=media-libs/compface-1.5.1:= )
-"
-DEPEND="${RDEPEND}
- app-text/yelp-tools
- dev-util/intltool
- virtual/pkgconfig
- sys-devel/gettext
-"
-
-src_prepare() {
- DOCS="AUTHORS ChangeLog HACKING NEWS README TODO docs/*"
-
- # https://bugzilla.gnome.org/show_bug.cgi?id=750516
- sed -i -e 's/@TOOLKIT_CATEGORIES@//' balsa-mailto-handler.desktop.in.in || die
-
- # https://bugzilla.gnome.org/show_bug.cgi?id=750515
- echo "src/balsa-print-object.c" >> po/POTFILES.in || die
-
- gnome2_src_prepare
-}
-
-src_configure() {
- local myconf
-
- if use crypt ; then
- myconf+=" --with-gpgme=gpgme-config"
- else
- myconf+=" --without-gpgme"
- fi
-
- if use webkit || use gtkhtml; then
- if use gtkhtml ; then
- myconf+=" --with-html-widget=gtkhtml4"
- else
- myconf+=" --with-html-widget=webkit2"
- fi
- else
- myconf+=" --with-html-widget=no"
- fi
-
- gnome2_src_configure \
- --disable-pcre \
- --enable-gregex \
- --enable-threads \
- --with-gmime=2.6 \
- --with-canberra \
- $(use_with gnome) \
- $(use_with gnome gtksourceview) \
- $(use_with gnome-keyring libsecret) \
- $(use_with gtkspell) \
- $(use_with kerberos gss) \
- $(use_with ldap) \
- $(use_with libnotify) \
- $(use_with rubrica) \
- $(use_with sqlite) \
- $(use_with ssl) \
- $(use_with xface compface) \
- ${myconf}
-}
diff --git a/mail-client/balsa/balsa-2.5.6-r1.ebuild b/mail-client/balsa/balsa-2.5.6-r1.ebuild
new file mode 100644
index 000000000000..0a890dc87df1
--- /dev/null
+++ b/mail-client/balsa/balsa-2.5.6-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+DESCRIPTION="Email client for GNOME"
+HOMEPAGE="http://pawsa.fedorapeople.org/balsa/"
+SRC_URI="http://pawsa.fedorapeople.org/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+IUSE="crypt gnome gnome-keyring kerberos ldap libnotify libressl rubrica sqlite webkit xface"
+
+# TODO: internal spell checking via enchant-2 instead of gtkspell/gspell?
+RDEPEND="
+ >=app-text/gspell-1.2:0=
+ >=dev-libs/glib-2.40.0:2
+ net-libs/gnutls:=
+ >=x11-libs/gtk+-3.10.0:3
+ dev-libs/gmime:2.6
+ net-mail/mailbase
+ media-libs/libcanberra:=[gtk3]
+ x11-themes/hicolor-icon-theme
+ x11-themes/adwaita-icon-theme
+ crypt? ( >=app-crypt/gpgme-1.5.0:= )
+ gnome? ( >=x11-libs/gtksourceview-3.2.0:3.0 )
+ gnome-keyring? ( app-crypt/libsecret )
+ sqlite? ( >=dev-db/sqlite-2.8:= )
+ libnotify? ( >=x11-libs/libnotify-0.7:= )
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ kerberos? ( app-crypt/mit-krb5 )
+ ldap? ( net-nds/openldap )
+ rubrica? ( dev-libs/libxml2:2 )
+ webkit? (
+ net-libs/webkit-gtk:4
+ app-text/html2text
+ )
+ xface? ( >=media-libs/compface-1.5.1:= )
+"
+DEPEND="${RDEPEND}
+ dev-util/gtk-update-icon-cache
+ app-text/yelp-tools
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+ dev-libs/libxml2:2
+"
+
+PATCHES=( "$FILESDIR"/${P}-fix-older-webkit{1,2}.patch )
+DOCS="AUTHORS ChangeLog HACKING NEWS README TODO docs/*"
+
+src_configure() {
+ gnome2_src_configure \
+ --with-canberra \
+ --with-spell-checker=gspell \
+ $(usex crypt --with-gpgme=gpgme-config --without-gpgme) \
+ $(use_with gnome) \
+ $(use_with gnome gtksourceview) \
+ $(use_with gnome-keyring libsecret) \
+ $(use_with kerberos gss) \
+ $(use_with ldap) \
+ $(use_with libnotify) \
+ $(use_with rubrica) \
+ $(use_with sqlite) \
+ $(use_with xface compface) \
+ $(usex webkit --with-html-widget=webkit2 --with-html-widget=no)
+}
diff --git a/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch b/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch
new file mode 100644
index 000000000000..227e2ac04b4f
--- /dev/null
+++ b/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit1.patch
@@ -0,0 +1,156 @@
+From ea37ea940dfbcc4e6bcf8327194857a7b306a278 Mon Sep 17 00:00:00 2001
+From: Peter Bloomfield
+Date: Sat, 7 Jul 2018 14:44:26 -0400
+Subject: [PATCH] Use g_debug() instead of conditional compilation
+
+* libbalsa/html.c (lbh_navigation_policy_decision),
+ (lbh_new_window_policy_decision), (lbh_response_policy_decision),
+ (lbh_resource_notify_response_cb), (lbh_web_process_crashed_cb),
+ (lbh_cid_cb), (libbalsa_html_new): Use g_debug() instead of
+ conditionally compiled printing.
+---
+ libbalsa/html.c | 52 ++++++++++++++++++++++++-------------------------
+ 2 files changed, 25 insertions(+), 27 deletions(-)
+
+diff --git a/libbalsa/html.c b/libbalsa/html.c
+index 17f62789e..1e5e2f500 100644
+--- a/libbalsa/html.c
++++ b/libbalsa/html.c
+@@ -44,6 +44,11 @@
+ #include <string.h>
+ #include <glib/gi18n.h>
+
++#ifdef G_LOG_DOMAIN
++# undef G_LOG_DOMAIN
++#endif
++#define G_LOG_DOMAIN "html"
++
+ #ifdef HAVE_HTML_WIDGET
+
+ /*
+@@ -141,13 +146,6 @@ html2text(gchar ** text, gsize len)
+ * Experimental support for WebKit2.
+ */
+
+-#define DEBUG_WEBKIT2 FALSE
+-#if DEBUG_WEBKIT2
+-#define d(x) x
+-#else
+-#define d(x)
+-#endif
+-
+ /* WebKitContextMenuItem uses GtkAction, which is deprecated.
+ * We don't use it, but it breaks the git-tree build, so we just mangle
+ * it: */
+@@ -280,10 +278,10 @@ lbh_navigation_policy_decision(WebKitPolicyDecision * decision,
+
+ switch (navigation_type) {
+ case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED:
+- d(g_print("%s clicked %s\n", __func__, uri));
++ g_debug("%s clicked %s", __func__, uri);
+ (*info->clicked_cb) (uri);
+ default:
+- d(g_print("%s uri %s, type %d, ignored\n", __func__, uri, navigation_type));
++ g_debug("%s uri %s, type %d, ignored", __func__, uri, navigation_type);
+ webkit_policy_decision_ignore(decision);
+ }
+ }
+@@ -305,13 +303,13 @@ lbh_new_window_policy_decision(WebKitPolicyDecision * decision,
+ (navigation_action)) {
+ case WEBKIT_NAVIGATION_TYPE_LINK_CLICKED:
+ request = webkit_navigation_action_get_request(navigation_action);
+- d(g_print("%s clicked %s\n", __func__,
+- webkit_uri_request_get_uri(request)));
++ g_debug("%s clicked %s", __func__,
++ webkit_uri_request_get_uri(request));
+ (*info->clicked_cb) (webkit_uri_request_get_uri(request));
+ default:
+- d(g_print("%s type %d, ignored\n", __func__,
+- webkit_navigation_action_get_navigation_type
+- (navigation_action)));
++ g_debug("%s type %d, ignored", __func__,
++ webkit_navigation_action_get_navigation_type
++ (navigation_action));
+
+ webkit_policy_decision_ignore(decision);
+ }
+@@ -321,10 +319,10 @@ static void
+ lbh_response_policy_decision(WebKitPolicyDecision * decision,
+ gpointer data)
+ {
+- d(g_print("%s uri %s, ignored\n", __func__,
+- webkit_uri_request_get_uri
+- (webkit_response_policy_decision_get_request
+- (WEBKIT_RESPONSE_POLICY_DECISION(decision)))));
++ g_debug("%s uri %s, ignored", __func__,
++ webkit_uri_request_get_uri
++ (webkit_response_policy_decision_get_request
++ (WEBKIT_RESPONSE_POLICY_DECISION(decision))));
+ webkit_policy_decision_ignore(decision);
+ }
+
+@@ -453,20 +451,20 @@ lbh_resource_notify_response_cb(WebKitWebResource * resource,
+
+ response = webkit_web_resource_get_response(resource);
+ mime_type = webkit_uri_response_get_mime_type(response);
+- d(g_print("%s mime-type %s\n", __func__, mime_type));
++ g_debug("%s mime-type %s", __func__, mime_type);
+ if (g_ascii_strncasecmp(mime_type, "image/", 6) != 0)
+ return;
+
+ if (info->info_bar) {
+- d(g_print("%s %s destroy info_bar\n", __func__,
+- webkit_web_resource_get_uri(resource)));
++ g_debug("%s %s destroy info_bar", __func__,
++ webkit_web_resource_get_uri(resource));
+ /* web_view is loading an image from its cache, so we do not
+ * need to ask the user for permission to download */
+ gtk_widget_destroy(info->info_bar);
+ info->info_bar = NULL;
+ } else {
+- d(g_print("%s %s null info_bar\n", __func__,
+- webkit_web_resource_get_uri(resource)));
++ g_debug("%s %s null info_bar", __func__,
++ webkit_web_resource_get_uri(resource));
+ }
+ }
+
+@@ -493,7 +491,7 @@ static gboolean
+ lbh_web_process_crashed_cb(WebKitWebView * web_view,
+ gpointer data)
+ {
+- d(g_print("%s\n", __func__));
++ g_debug("%s", __func__);
+ return FALSE;
+ }
+
+@@ -509,7 +507,7 @@ lbh_cid_cb(WebKitURISchemeRequest * request,
+ LibBalsaMessageBody *body;
+
+ path = webkit_uri_scheme_request_get_path(request);
+- d(g_print("%s path %s\n", __func__, path));
++ g_debug("%s path %s", __func__, path);
+
+ if ((body =
+ libbalsa_message_get_part_by_id(info->body->message, path))) {
+@@ -616,7 +614,7 @@ libbalsa_html_new(LibBalsaMessageBody * body,
+ webkit_web_context_register_uri_scheme(context, "cid", lbh_cid_cb,
+ &info, NULL);
+ have_registered_cid = TRUE;
+- d(g_print("%s registered cid: scheme\n", __func__));
++ g_debug("%s registered cid: scheme", __func__);
+ }
+
+ settings = webkit_web_view_get_settings(web_view);
+@@ -647,7 +645,7 @@ libbalsa_html_new(LibBalsaMessageBody * body,
+ if (g_regex_match_simple(src_regex, text, G_REGEX_CASELESS, 0)) {
+ info->info_bar = lbh_info_bar(info);
+ gtk_box_pack_start(GTK_BOX(vbox), info->info_bar, FALSE, FALSE, 0);
+- d(g_print("%s shows info_bar\n", __func__));
++ g_debug("%s shows info_bar", __func__);
+ }
+
+ webkit_web_view_load_html(web_view, text, NULL);
+--
+2.17.1
+
diff --git a/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch b/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch
new file mode 100644
index 000000000000..d7b5eb74ba1c
--- /dev/null
+++ b/mail-client/balsa/files/balsa-2.5.6-fix-older-webkit2.patch
@@ -0,0 +1,53 @@
+From 3423ca9bf48e675007b7fb1bd61b50aa97d14890 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Albrecht=20Dre=C3=9F?=
+Date: Sat, 7 Jul 2018 16:36:49 -0400
+Subject: [PATCH] html: Fix HTML rendering with webkit2gtk-4.0 < 2.20
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+* README: document use of G_MESSAGES_DEBUG=…
+* libbalsa/html.c (lbh_navigation_policy_decision):
+ allow the rendering of “about:blank”.
+---
+ libbalsa/html.c | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+leio: trimmed out the G_MESSAGES_DEBUG doc changes
+diff --git a/libbalsa/html.c b/libbalsa/html.c
+index 1e5e2f500..307194e0a 100644
+--- a/libbalsa/html.c
++++ b/libbalsa/html.c
+@@ -44,13 +44,13 @@
+ #include <string.h>
+ #include <glib/gi18n.h>
+
++#ifdef HAVE_HTML_WIDGET
++
+ #ifdef G_LOG_DOMAIN
+ # undef G_LOG_DOMAIN
+ #endif
+ #define G_LOG_DOMAIN "html"
+
+-#ifdef HAVE_HTML_WIDGET
+-
+ /*
+ * Used by all HTML widgets
+ *
+@@ -281,8 +281,12 @@ lbh_navigation_policy_decision(WebKitPolicyDecision * decision,
+ g_debug("%s clicked %s", __func__, uri);
+ (*info->clicked_cb) (uri);
+ default:
+- g_debug("%s uri %s, type %d, ignored", __func__, uri, navigation_type);
+- webkit_policy_decision_ignore(decision);
++ if (g_ascii_strcasecmp(uri, "about:blank") != 0) {
++ g_debug("%s uri %s, type %d, ignored", __func__, uri, navigation_type);
++ webkit_policy_decision_ignore(decision);
++ } else {
++ g_debug("%s uri %s, type %d loaded", __func__, uri, navigation_type);
++ }
+ }
+ }
+
+--
+2.17.1
diff --git a/mail-client/balsa/metadata.xml b/mail-client/balsa/metadata.xml
index 4c043cdb299a..3f5668996d9a 100644
--- a/mail-client/balsa/metadata.xml
+++ b/mail-client/balsa/metadata.xml
@@ -7,8 +7,6 @@
</maintainer>
<use>
<flag name="crypt">Adds support for GnuPG encryption</flag>
- <flag name="gtkhtml">Use gtkhtml for HTML rendering</flag>
- <flag name="gtkspell">Use gtkspell for dictionary support</flag>
<flag name="rubrica">Adds support for rubrica addressbook</flag>
</use>
</pkgmetadata>