[arch-commits] Commit in evolution-rss/repos/community-x86_64 (4 files)

Balló György bgyorgy at archlinux.org
Sun Mar 8 12:53:35 UTC 2020


    Date: Sunday, March 8, 2020 @ 12:53:34
  Author: bgyorgy
Revision: 591947

archrelease: copy trunk to community-x86_64

Added:
  evolution-rss/repos/community-x86_64/PKGBUILD
    (from rev 591946, evolution-rss/trunk/PKGBUILD)
Deleted:
  evolution-rss/repos/community-x86_64/PKGBUILD
  evolution-rss/repos/community-x86_64/evo-3.21.90.patch
  evolution-rss/repos/community-x86_64/evo-3.23.2.patch

-------------------+
 PKGBUILD          |   93 ++++++++++++++++++++--------------------
 evo-3.21.90.patch |  119 ----------------------------------------------------
 evo-3.23.2.patch  |  110 ------------------------------------------------
 3 files changed, 47 insertions(+), 275 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-08 12:53:30 UTC (rev 591946)
+++ PKGBUILD	2020-03-08 12:53:34 UTC (rev 591947)
@@ -1,46 +0,0 @@
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-# Contributor: Jelle van der Waa <jelle at vdwaa dot nl>
-# Contributor: Borromini <gotleenucks at g-male dot com>
-
-pkgname=evolution-rss
-pkgver=0.3.95
-pkgrel=7
-pkgdesc="Plugin for Evolution Mail that enables reading of RSS/RDF/ATOM feeds"
-arch=('x86_64')
-url="http://gnome.eu.org/index.php/Evolution_RSS_Reader_Plugin"
-license=('GPL')
-depends=('evolution')
-makedepends=('intltool')
-source=(http://gnome.eu.org/$pkgname-$pkgver.tar.xz
-        evo-3.21.90.patch
-        evo-3.23.2.patch)
-sha256sums=('3fb28eec798b3192ae155b92d17b852264d0e5e35185a4f0c8f526a8d587eb1f'
-            '36ed895fcdd6c71998af1ab6b315e6f1ca027f56466c8844920761711e5589ef'
-            'b7a5977a5d27321420eac22cb346735338444cb6f4b4805f07d7502f241b29dc')
-
-prepare() {
-  cd $pkgname-$pkgver
-  # Compatibility patches from Fedora
-  patch -Np1 -i ../evo-3.21.90.patch
-  patch -Np1 -i ../evo-3.23.2.patch
-
-  # Don't use legacy path for AppStream metainfo file
-  # https://gitlab.gnome.org/GNOME/evolution-rss/merge_requests/3
-  sed -i 's|$(datadir)/appdata|$(datadir)/metainfo|' Makefile.{in,am}
-}
-
-build() {
-  cd $pkgname-$pkgver
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-              --disable-schemas-compile
-
-  #https://bugzilla.gnome.org/show_bug.cgi?id=656231
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
-  make
-}
-
-package() {
-  cd $pkgname-$pkgver
-  make DESTDIR="$pkgdir" install
-}

Copied: evolution-rss/repos/community-x86_64/PKGBUILD (from rev 591946, evolution-rss/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-08 12:53:34 UTC (rev 591947)
@@ -0,0 +1,47 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Contributor: Jelle van der Waa <jelle at vdwaa dot nl>
+# Contributor: Borromini <gotleenucks at g-male dot com>
+
+pkgname=evolution-rss
+pkgver=0.3.96
+pkgrel=1
+pkgdesc="Plugin for Evolution Mail that enables reading of RSS/RDF/ATOM feeds"
+arch=('x86_64')
+url="https://gnome.eu.org/index.php/Evolution_RSS_Reader_Plugin"
+license=('GPL')
+depends=(evolution)
+makedepends=(intltool git gnome-common)
+_commit=696f57c5451ccf425dcca57e796feded788417dc  # tags/EVOLUTION_RSS_0_3_96^0
+source=("git+https://gitlab.gnome.org/GNOME/evolution-rss.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^EVOLUTION_RSS_//;s/_/./g;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  sed -i '/GCONF/d' configure.ac
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd $pkgname
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+              --disable-schemas-compile
+
+  #https://bugzilla.gnome.org/show_bug.cgi?id=656231
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+
+  make
+}
+
+check() {
+  make -C $pkgname check
+}
+
+package() {
+  cd $pkgname
+  make DESTDIR="$pkgdir" install
+}

Deleted: evo-3.21.90.patch
===================================================================
--- evo-3.21.90.patch	2020-03-08 12:53:30 UTC (rev 591946)
+++ evo-3.21.90.patch	2020-03-08 12:53:34 UTC (rev 591947)
@@ -1,119 +0,0 @@
-diff --git a/configure.ac b/configure.ac
-index 629e663..27640b6 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -259,6 +259,9 @@ AC_MSG_CHECKING([whether to include Webkit support])
- AC_ARG_ENABLE([webkit],
- 	AS_HELP_STRING([--disable-webkit],[Disable Webkit (Apple Upstream Webkit) support (default: enabled)]),
- 	[],[enable_webkit=yes])
-+if test "$evolution_version_int" -ge "32190"; then
-+	enable_webkit="no, due to evolution 3.21.90+"
-+fi
- AC_MSG_RESULT([$enable_webkit])
- 
- if test "$enable_webkit" = "yes"; then
-diff --git a/src/e-mail-formatter-evolution-rss.c b/src/e-mail-formatter-evolution-rss.c
-index f71557d..afdf6cd 100644
---- a/src/e-mail-formatter-evolution-rss.c
-+++ b/src/e-mail-formatter-evolution-rss.c
-@@ -52,6 +52,7 @@ G_DEFINE_DYNAMIC_TYPE (
- 
- static const gchar* rss_formatter_mime_types[] = { "x-evolution/evolution-rss-feed", NULL };
- 
-+#if EVOLUTION_VERSION < 32190
- static void
- set_view_cb (GtkWidget *button,
- 		gpointer *data)
-@@ -60,6 +61,8 @@ set_view_cb (GtkWidget *button,
- 	rss_set_changed_view(1);
- 	e_mail_display_reload (rss_get_display());
- }
-+#endif
-+
- #include "fetch.h"
- 
- typedef struct _HD HD;
-@@ -132,7 +135,11 @@ emfe_evolution_rss_format (EMailFormatterExtension *extension,
- 	if (!rss_init)
- 			goto fail;
- 
-+#if EVOLUTION_VERSION >= 32190
-+	h = e_web_view_get_content_html_sync (E_WEB_VIEW (rss_get_display()), NULL, NULL);
-+#else
- 	h = g_strdup(e_web_view_get_html (E_WEB_VIEW (rss_get_display())));
-+#endif
- 
- 	website = (gchar *)camel_medium_get_header (
- 			CAMEL_MEDIUM (message), "Website");
-@@ -380,6 +387,7 @@ e_mail_formatter_evolution_rss_type_register (GTypeModule *type_module)
- 	e_mail_formatter_evolution_rss_register_type (type_module);
- }
- 
-+#if EVOLUTION_VERSION < 32190
- static GtkWidget *
- emfe_evolution_rss_get_widget (EMailFormatterExtension *extension,
- 				EMailPartList *context,
-@@ -404,13 +412,16 @@ emfe_evolution_rss_get_widget (EMailFormatterExtension *extension,
- 	gtk_widget_show(box);
- 	return box;
- }
-+#endif
- 
- static void
- e_mail_formatter_evolution_rss_class_init (EMailFormatterExtensionClass *class)
- {
- 	class->mime_types = rss_formatter_mime_types;
- 	class->format = emfe_evolution_rss_format;
-+#if EVOLUTION_VERSION < 32190
- 	class->get_widget = emfe_evolution_rss_get_widget;
-+#endif
- 	class->display_name = _("Evolution-RSS");
- 	class->description = _("Displaying RSS feed articles");
- }
-diff --git a/src/rss.c b/src/rss.c
-index 20b6d33..e21f0f1 100644
---- a/src/rss.c
-+++ b/src/rss.c
-@@ -1326,15 +1326,24 @@ org_gnome_evolution_presend (EPlugin *ep, EMEventTargetComposer *t)
- 
- #if EVOLUTION_VERSION >= 31303
- 	EHTMLEditor *editor;
-+#if EVOLUTION_VERSION >= 32190
-+	EContentEditor *cnt_editor;
-+#else
- 	EHTMLEditorView *view;
-+#endif
- 
- 	editor = e_msg_composer_get_editor (t->composer);
-+#if EVOLUTION_VERSION >= 32190
-+	cnt_editor = e_html_editor_get_content_editor (editor);
-+	text = e_content_editor_get_content (cnt_editor, E_CONTENT_EDITOR_GET_TEXT_HTML, NULL, NULL);
-+#else
- 	view = e_html_editor_get_view (editor);
- #if EVOLUTION_VERSION >= 31390
- 	text = e_html_editor_view_get_text_html (view, NULL, NULL);
- #else
- 	text = e_html_editor_view_get_text_html (view);
- #endif
-+#endif /* EVOLUTION_VERSION >= 32190 */
- 	length = strlen (text);
- #else
- 	/* unfortunately e_msg_composer does not have raw get/set text body
-@@ -1352,8 +1361,17 @@ org_gnome_evolution_presend (EPlugin *ep, EMEventTargetComposer *t)
- 		g_free (text);
- 		text = g_strndup ((gchar *) buff, size);
- 		editor = e_msg_composer_get_editor (t->composer);
-+#if EVOLUTION_VERSION >= 32190
-+		cnt_editor = e_html_editor_get_content_editor (editor);
-+		e_content_editor_insert_content (
-+			cnt_editor,
-+			text,
-+			E_CONTENT_EDITOR_INSERT_TEXT_HTML |
-+			E_CONTENT_EDITOR_INSERT_REPLACE_ALL);
-+#else
- 		view = e_html_editor_get_view (editor);
- 		e_html_editor_view_set_text_html (view, text);
-+#endif
- #else
- 		gtkhtml_editor_set_text_html((GtkhtmlEditor *)t->composer, (gchar *)buff, size);
- #endif

Deleted: evo-3.23.2.patch
===================================================================
--- evo-3.23.2.patch	2020-03-08 12:53:30 UTC (rev 591946)
+++ evo-3.23.2.patch	2020-03-08 12:53:34 UTC (rev 591947)
@@ -1,110 +0,0 @@
-diff -up evolution-rss-0.3.95/src/rss.c.evo-3.23.2 evolution-rss-0.3.95/src/rss.c
---- evolution-rss-0.3.95/src/rss.c.evo-3.23.2	2016-11-21 15:17:58.905081929 +0100
-+++ evolution-rss-0.3.95/src/rss.c	2016-11-21 15:17:58.907081929 +0100
-@@ -3951,7 +3951,8 @@ create_mail(create_feed *CF)
- #endif
- 
- 	info = camel_message_info_new(NULL);
--	camel_message_info_set_flags(info, CAMEL_MESSAGE_SEEN, 1);
-+	/* Unset the Seen flag, thus the messages are marked as new/unread */
-+	camel_message_info_set_flags(info, CAMEL_MESSAGE_SEEN, 0);
- 
- 	tmp = decode_entities(CF->subj);
- 	tmp2 = markup_decode(tmp);
-@@ -4239,7 +4240,11 @@ out:
- 	camel_object_unref(mail_folder);
- #endif
- #if (DATASERVER_VERSION >= 3011001)
-+	#if (DATASERVER_VERSION >= 3023002)
-+	g_clear_object (&info);
-+	#else
- 	camel_message_info_unref(info);
-+	#endif
- #else
- 	camel_message_info_free(info);
- #endif
-@@ -4717,10 +4722,18 @@ delete_oldest_article(CamelFolder *folde
- 		if (info) {
- 			if (rf->current_uid && !strcmp(rf->current_uid, uids->pdata[i]))
- 				goto out;
-+			#if (DATASERVER_VERSION >= 3023002)
-+			date = camel_message_info_get_date_sent (info);
-+			#else
- 			date = camel_message_info_date_sent(info);
-+			#endif
- 			if (!date)
- 				goto out;
-+			#if (DATASERVER_VERSION >= 3023002)
-+			flags = camel_message_info_get_flags (info);
-+			#else
- 			flags = camel_message_info_flags(info);
-+			#endif
- 			if (flags & CAMEL_MESSAGE_FLAGGED)
- 				goto out;
- 			if (flags & CAMEL_MESSAGE_DELETED)
-@@ -4753,7 +4766,11 @@ delete_oldest_article(CamelFolder *folde
- //			i, j, q, min_date, ctime(&min_date), imax);
- out:
- #if (DATASERVER_VERSION >= 3011001)
-+		#if (DATASERVER_VERSION >= 3023002)
-+		g_clear_object (&info);
-+		#else
- 		camel_message_info_unref(info);
-+		#endif
- #else
- 		camel_message_info_free(info);
- #endif
-@@ -4840,7 +4857,11 @@ get_feed_age(RDF *r, gpointer name)
- 			}
- 			if (!match) {
- 				info = camel_folder_get_message_info(folder, uids->pdata[i]);
-+				#if (DATASERVER_VERSION >= 3023002)
-+				flags = camel_message_info_get_flags (info);
-+				#else
- 				flags = camel_message_info_flags(info);
-+				#endif
- 				if ((del_unread) && !(flags & CAMEL_MESSAGE_FLAGGED)) {
- 					gchar *feed_dir, *feed_name;
- 					camel_folder_delete_message(folder, uids->pdata[i]);
-@@ -4853,7 +4874,11 @@ get_feed_age(RDF *r, gpointer name)
- 					g_free(feed_name);
- 				}
- #if (DATASERVER_VERSION >= 3011001)
-+				#if (DATASERVER_VERSION >= 3023002)
-+				g_clear_object (&info);
-+				#else
- 				camel_message_info_unref(info);
-+				#endif
- #else
- 				camel_folder_free_message_info(folder, info);
- #endif
-@@ -4882,9 +4907,17 @@ get_feed_age(RDF *r, gpointer name)
- 			if (info == NULL)
- 				continue;
- 			if (rf->current_uid && strcmp(rf->current_uid, uids->pdata[i])) {
-+				#if (DATASERVER_VERSION >= 3023002)
-+				date = camel_message_info_get_date_sent (info);
-+				#else
- 				date = camel_message_info_date_sent(info);
-+				#endif
- 				if (date < now - del_days * 86400) {
-+					#if (DATASERVER_VERSION >= 3023002)
-+					flags = camel_message_info_get_flags (info);
-+					#else
- 					flags = camel_message_info_flags(info);
-+					#endif
- 					if (!(flags & CAMEL_MESSAGE_SEEN)) {
- 						if ((del_unread) && !(flags & CAMEL_MESSAGE_FLAGGED)) {
- 							camel_folder_delete_message(folder, uids->pdata[i]);
-@@ -4896,7 +4929,11 @@ get_feed_age(RDF *r, gpointer name)
- 				}
- 			}
- #if (DATASERVER_VERSION >= 3011001)
-+			#if (DATASERVER_VERSION >= 3023002)
-+			g_clear_object (&info);
-+			#else
- 			camel_message_info_unref(info);
-+			#endif
- #else
- 			camel_folder_free_message_info(folder, info);
- #endif



More information about the arch-commits mailing list