summaryrefslogtreecommitdiff
path: root/mail-client/balsa
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-05 19:20:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-05 19:20:12 +0100
commita4e37a9aeeef82eba5858dbc609f65b838b0f836 (patch)
treee4348e571adc5713a413fbaf411d45c511a7da31 /mail-client/balsa
parentd03ec6c0e9c1683a824ce77667440dcb4a13974e (diff)
gentoo auto-resync : 05:10:2022 - 19:20:12
Diffstat (limited to 'mail-client/balsa')
-rw-r--r--mail-client/balsa/Manifest6
-rw-r--r--mail-client/balsa/balsa-2.6.4.ebuild111
-rw-r--r--mail-client/balsa/files/balsa-2.6.4-depend-on-webkit2gtk-4.1-if-available.patch35
-rw-r--r--mail-client/balsa/files/balsa-2.6.4-fix-build-error-if-html-support-is-disabled.patch71
-rw-r--r--mail-client/balsa/metadata.xml1
5 files changed, 223 insertions, 1 deletions
diff --git a/mail-client/balsa/Manifest b/mail-client/balsa/Manifest
index edbc5e686665..665f20a288b7 100644
--- a/mail-client/balsa/Manifest
+++ b/mail-client/balsa/Manifest
@@ -1,3 +1,7 @@
+AUX balsa-2.6.4-depend-on-webkit2gtk-4.1-if-available.patch 1319 BLAKE2B f110e9bd521a2f1c1dee2cd58abee1536c8926d394c48429109f89e2341ce9eed279e0ed4748dbcb1d1a6b3d885164725e4614953359851908acd06eca9a36d4 SHA512 fe15d4aef11fb21f988118d8d86d137ef08d64e0472791ece66d09b6b0fa143a9c53261d22fbe3efed52c923ab59a78ede1cb9d3fd291ac44ee506111596834c
+AUX balsa-2.6.4-fix-build-error-if-html-support-is-disabled.patch 2442 BLAKE2B f74b5b540a0f9a43d5186a19121bccbb2bfc8b540c33a50a50e2b325c4f9a318c6537cfa58304847f78e072081d2fcef5f86b7318c31f681377b91a1aefb8642 SHA512 001966886b0aa2f30a50f60ed3127c2361718052554fd4ffdd1af37c1202a4f3070586b06def0cf3070c162f5dcfccf2124959fc4e1b42f6acbab0e047524365
DIST balsa-2.6.3.tar.xz 3761940 BLAKE2B 8bcd93453a74d2b7ffaeca3131828044a9fc399db8e0e695a31dcdb5b50a400e10b3a49d9484609b59e4348758cbeff6fde30243714693e98ab046f7910d1abf SHA512 7e64f75423dd37536812854e56db1af97c00bc35f640d82c22d86e5212c766926430f1c99423f1a972daf6f20d084d4cf16d89e13deb2f1ce550c016cd132f8d
+DIST balsa-2.6.4.tar.xz 3710272 BLAKE2B 67a3462ca6bc75431a6a3f6a54feb53577111355d749e777a328b881d431856a8090e9c7beea128ee466a9b7aee01a4178b5a273541f0ffdd776a144546fc48e SHA512 7c1526e03de29e19448f0a13847dcd7138d3292221ea16f20d09bf169cf18e69df24dd76726e710470d4507e5cc4e236e1889d4c421610ecd1589a9e2338d264
EBUILD balsa-2.6.3-r1.ebuild 1871 BLAKE2B 05695d1b964f52540ca46c6c7efd28b4ef0aa2a27273f6b992ddcab808993730f034c004db12eaec7d99b075b78148a13d63c713ff7009fab7f28a6820ba9859 SHA512 190e5b8339f0dc377e1a7be7f95a60ebc39765aeed15421a92dd6263f6edcf0ac5f8c9448532323b047110da4b6af1196708e0003504855010c691756fa0b0c0
-MISC metadata.xml 336 BLAKE2B e86d0170a41846ccb0ceadf9f7c614ba92c79b67076cd315b609079d3515966fed408b7b54072297aede799e344acca1175cf7ea4c7dd3d6ca3176dc88b3f59d SHA512 1d8aee84f50bb7a8a8011a1b47e24da2e101cfd313f50ad736b2094b92a24598e5348f6d9d950db04dde1fe6ffb5e950ec9ac1c28a342d444497d8cdbb6af58f
+EBUILD balsa-2.6.4.ebuild 2589 BLAKE2B d730c46b517f4cb255a01906245e47d4388331323a9e7cb74fcd79f6547f91249e9eb75fa06487b3f99f67f55d6fc738dbb682376b2b80bba200373810a7ebac SHA512 1b76051f03e4eee4a0a9753ed70775a321ed18cc4186d9dffc1b29328fb86e23ca5fddba3cfe0a86450a0e59c1162fb35aed60c22e0bbe95b1581b7d86196fd7
+MISC metadata.xml 398 BLAKE2B bd500f94197ccbe35b0e7516460e57db03c26dbe07cb614039374e1879070bf7585ca8aef327aa207dec3557a14c83be44bfb8aa4e83b15ffd51babe65f7a4ad SHA512 3e4d337b914976725f40e5cd156935aeb97bc677255fb763e49c2159264854691b77c6baaa200fefc66b1565ed01f3fc74bc883781d2d0d5980e54414df0a14b
diff --git a/mail-client/balsa/balsa-2.6.4.ebuild b/mail-client/balsa/balsa-2.6.4.ebuild
new file mode 100644
index 000000000000..f50208203354
--- /dev/null
+++ b/mail-client/balsa/balsa-2.6.4.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit gnome2-utils meson xdg
+
+DESCRIPTION="Email client for GNOME"
+HOMEPAGE="http://pawsa.fedorapeople.org/balsa/"
+SRC_URI="http://pawsa.fedorapeople.org/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~x86"
+
+IUSE="gnome +gnome-keyring kerberos ldap rubrica sqlite systray webkit xface"
+
+# TODO: internal spell checking via enchant-2 instead of gtkspell/gspell?
+DEPEND="
+ >=dev-libs/glib-2.48.0:2
+ >=x11-libs/gtk+-3.24.0:3
+ >=dev-libs/gmime-3.2.6:3.0
+ >=net-libs/gnutls-3.0:=
+ dev-libs/fribidi
+ >=dev-libs/libical-2.0.0:=
+ webkit? (
+ >=net-libs/webkit-gtk-2.38.0:4.1
+ >=dev-db/sqlite-3.24
+ app-text/html2text
+ )
+ >=app-crypt/gpgme-1.13.0:=
+ sqlite? ( >=dev-db/sqlite-3.24:= )
+ ldap? ( net-nds/openldap:= )
+ rubrica? ( dev-libs/libxml2:2 )
+ kerberos? ( app-crypt/mit-krb5 )
+ xface? ( >=media-libs/compface-1.5.1:= )
+ gnome? ( x11-libs/gtksourceview:4 )
+ media-libs/libcanberra[gtk3]
+ gnome-keyring? ( app-crypt/libsecret )
+ >=app-text/gspell-1.6:0=
+
+ net-mail/mailbase
+ x11-themes/hicolor-icon-theme
+ x11-themes/adwaita-icon-theme
+ dev-libs/openssl:0=
+ systray? ( x11-libs/xapp )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-util/gtk-update-icon-cache
+ dev-util/intltool
+ dev-util/itstool
+ virtual/pkgconfig
+ sys-devel/gettext
+ dev-libs/libxml2:2
+"
+
+DOCS="AUTHORS ChangeLog HACKING NEWS TODO docs/*"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-build-error-if-html-support-is-disabled.patch
+ "${FILESDIR}"/${P}-depend-on-webkit2gtk-4.1-if-available.patch
+)
+
+src_prepare() {
+ default
+ # we don't need the package to update the icon cache. We do it ourselves in xdg_pkg_postinst
+ sed -i 's/if gtk_update_icon_cache_program.found()/if false/' images/meson.build || die
+}
+
+src_configure() {
+ local emesonargs=(
+ $(meson_use gnome gnome-desktop)
+ -Dflock=false
+ -Dfcntl=true
+ $(meson_use sqlite autocrypt)
+ $(meson_use systray)
+ -Dcanberra=true
+ $(meson_use xface compface)
+ $(meson_use kerberos gss)
+ $(meson_use gnome gtksourceview)
+ -Dspell-checker=gspell
+ $(meson_use ldap)
+ -Dmacosx-desktop=false
+ $(meson_use rubrica)
+ -Dosmo=false
+ $(meson_use sqlite)
+ $(meson_use gnome-keyring libsecret)
+ -Dgcr=false
+ -Dmore-warnings=true
+ -Dhelp-files=false
+ -Dlibnetclient-docs=false
+ -Dlibnetclient-test=false
+ )
+ if use webkit; then
+ emesonargs+=(-Dhtml-widget=webkit2)
+ else
+ emesonargs+=(-Dhtml-widget=no)
+ fi
+ meson_src_configure
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ gnome2_schemas_update
+}
+
+pkg_postrm() {
+ xdg_pkg_postrm
+ gnome2_schemas_update
+}
diff --git a/mail-client/balsa/files/balsa-2.6.4-depend-on-webkit2gtk-4.1-if-available.patch b/mail-client/balsa/files/balsa-2.6.4-depend-on-webkit2gtk-4.1-if-available.patch
new file mode 100644
index 000000000000..ea5283cfd996
--- /dev/null
+++ b/mail-client/balsa/files/balsa-2.6.4-depend-on-webkit2gtk-4.1-if-available.patch
@@ -0,0 +1,35 @@
+From aa81a24021f3b48a7f207ef7049c0e8f25207661 Mon Sep 17 00:00:00 2001
+From: Peter Bloomfield <PeterBloomfield@bellsouth.net>
+Date: Sun, 2 Oct 2022 15:17:29 -0400
+Subject: [PATCH] meson.build: Depend on webkit2gtk-4.1 if available
+
+Build against webkit2gtk-4.1 if available, falling back to webkit2gtk-4.0.
+
+webkit2gtk-4.1 has the same API as webkit2gtk-4.0, so no code changes
+are needed, but it links against libsoup-3.0 instead of libsoup-2.4.
+
+See https://discourse.gnome.org/t/removing-libsoup-2-for-gnome-45/10846
+for some discussion.
+---
+ meson.build | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 801f619c7..bee3040f6 100644
+--- a/meson.build
++++ b/meson.build
+@@ -169,7 +169,10 @@ libnetclient_deps = [glib_dep,
+ # HTML widget
+ #
+ if html_widget == 'webkit2'
+- html_dep = dependency('webkit2gtk-4.0', version : '>= 2.28.0')
++ html_dep = dependency('webkit2gtk-4.1', required : false)
++ if not html_dep.found()
++ html_dep = dependency('webkit2gtk-4.0', version : '>= 2.28.0')
++ endif
+ htmlpref_dep = dependency('sqlite3', version : '>= 3.24.0')
+ balsa_web_extensions = join_paths(get_option('prefix'), get_option('libdir'), 'balsa')
+ add_project_arguments('-DBALSA_WEB_EXTENSIONS="' + balsa_web_extensions + '"', language : 'c')
+--
+GitLab
+
diff --git a/mail-client/balsa/files/balsa-2.6.4-fix-build-error-if-html-support-is-disabled.patch b/mail-client/balsa/files/balsa-2.6.4-fix-build-error-if-html-support-is-disabled.patch
new file mode 100644
index 000000000000..16ca2a890e04
--- /dev/null
+++ b/mail-client/balsa/files/balsa-2.6.4-fix-build-error-if-html-support-is-disabled.patch
@@ -0,0 +1,71 @@
+From 23aef3f0e0fb68921448007b4e361b47a4eec2b6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Albrecht=20Dre=C3=9F?= <albrecht.dress@netcologne.de>
+Date: Thu, 22 Sep 2022 19:53:08 +0200
+Subject: [PATCH] fix build error if HTML support is disabled
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Thanks to Bruce Dubbs from linuxfromscratch.org for reporting this
+issue.
+
+libbalsa/body.c: mask out HTML selection table if HTML support is
+disabled
+libbalsa/body.c: fix macros if HTML support is disabled
+
+Signed-off-by: Albrecht Dreß <albrecht.dress@netcologne.de>
+---
+ libbalsa/body.c | 4 ++++
+ libbalsa/body.h | 4 ++--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/libbalsa/body.c b/libbalsa/body.c
+index e300ae969..25d35fe77 100644
+--- a/libbalsa/body.c
++++ b/libbalsa/body.c
+@@ -65,6 +65,7 @@ libbalsa_message_body_new(LibBalsaMessage * message)
+ return body;
+ }
+
++#ifdef HAVE_HTML_WIDGET
+ static void
+ body_weak_notify(gpointer data,
+ GObject *key)
+@@ -81,6 +82,7 @@ selection_table_foreach(gpointer key,
+ {
+ g_object_weak_unref(key, body_weak_notify, user_data);
+ }
++#endif /* HAVE_HTML_WIDGET */
+
+ void
+ libbalsa_message_body_free(LibBalsaMessageBody * body)
+@@ -111,10 +113,12 @@ libbalsa_message_body_free(LibBalsaMessageBody * body)
+ if (body->mime_part)
+ g_object_unref(body->mime_part);
+
++#ifdef HAVE_HTML_WIDGET
+ if (body->selection_table != NULL) {
+ g_hash_table_foreach(body->selection_table, selection_table_foreach, body);
+ g_hash_table_destroy(body->selection_table);
+ }
++#endif /* HAVE_HTML_WIDGET */
+
+ g_free(body);
+ }
+diff --git a/libbalsa/body.h b/libbalsa/body.h
+index 2650df728..139810018 100644
+--- a/libbalsa/body.h
++++ b/libbalsa/body.h
+@@ -155,8 +155,8 @@ void libbalsa_message_body_set_mp_alt_selection(LibBalsaMessageBody *body,
+ LibBalsaMpAltSelection libbalsa_message_body_get_mp_alt_selection(LibBalsaMessageBody *body,
+ gpointer key);
+ #else
+-#define libbalsa_message_body_set_mp_alt_selection(x)
+-#define libbalsa_message_body_get_mp_alt_selection(x) LIBBALSA_MP_ALT_AUTO
++#define libbalsa_message_body_set_mp_alt_selection(x, y)
++#define libbalsa_message_body_get_mp_alt_selection(x, y) LIBBALSA_MP_ALT_AUTO
+ #endif /*HAVE_HTML_WIDGET*/
+
+ guint libbalsa_message_body_protect_mode(const LibBalsaMessageBody * body);
+--
+GitLab
diff --git a/mail-client/balsa/metadata.xml b/mail-client/balsa/metadata.xml
index 1ee5337540c8..54f5dedb7cdc 100644
--- a/mail-client/balsa/metadata.xml
+++ b/mail-client/balsa/metadata.xml
@@ -7,5 +7,6 @@
</maintainer>
<use>
<flag name="rubrica">Adds support for rubrica addressbook</flag>
+ <flag name="systray">Enable System Tray Icon support</flag>
</use>
</pkgmetadata>