Subject: [alpine-aports] [PATCH] testing/evolution-on: new aport

From: Paul Bredbury <[email-masked]>
Date: Sun, 10 Mar 2019 17:35:46 +0000

https://github.com/acidrain42/evolution-on
Tray plugin for Evolution email client.
---
 testing/evolution-on/APKBUILD                 | 34 +++++++++++++++++++
 .../evolution-on/gconf-source-remove.patch    | 14 ++++++++
 testing/evolution-on/widget.patch             | 23 +++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 testing/evolution-on/APKBUILD
 create mode 100644 testing/evolution-on/gconf-source-remove.patch
 create mode 100644 testing/evolution-on/widget.patch

diff --git a/testing/evolution-on/APKBUILD b/testing/evolution-on/APKBUILD
new file mode 100644
index 0000000000..ea1afeec58
--- /dev/null
+++ b/testing/evolution-on/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Paul Bredbury <[email-masked]>
+pkgname=evolution-on
+pkgver=3.24.2
+pkgrel=0
+pkgdesc="Tray plugin for Evolution email client"
+url="https://github.com/acidrain42/evolution-on"
+arch="x86_64" # Unknown whether works on other arches
+license="GPL-2.0-or-later"
+depends="evolution"
+makedepends="autoconf automake evolution-dev glib-dev gnome-common intltool libtool"
+source="$pkgname-$pkgver.tar.gz::https://github.com/acidrain42/$pkgname/archive/v$pkgver.tar.gz
+	gconf-source-remove.patch
+	widget.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	./autogen.sh --prefix=/usr
+	make
+}
+
+check() {
+	cd "${builddir}"
+	make check
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+sha512sums="7f6c048c052ecab2efefaeddaba9db8f7f63035c5505fce0b9c260b5cf2044fe0c4d90a2e7461e1643f507daa1d3a871be9c16e58311d229697d9ce11faa82cf  evolution-on-3.24.2.tar.gz
+374fb2f1140d0edf514d1f63279c00414bd4c17dc33242b254f48db9f5bdadf12384f307105e76439e310bb6eccf51698beab9696f7ef0616876632421e64a85  gconf-source-remove.patch
+025b2b9e910bb85157a000c7e87ad9123b68d46c1cb9b69d65fd07330862b809e4e23282cec10c480bb7c033e80197278b0ffc7e57e9fa4052238d48e8aecfb9  widget.patch"
diff --git a/testing/evolution-on/gconf-source-remove.patch b/testing/evolution-on/gconf-source-remove.patch
new file mode 100644
index 0000000000..da447440b4
--- /dev/null
+++ b/testing/evolution-on/gconf-source-remove.patch
@@ -0,0 +1,14 @@
+To prevent:
+configure.ac:80: error: possibly undefined macro: AM_GCONF_SOURCE_2
+
+diff -Naur a/configure.ac b/configure.ac
+--- a/configure.ac	2017-05-09 18:21:44.000000000 +0100
++++ b/configure.ac	2019-03-10 17:14:20.222932063 +0000
+@@ -77,7 +77,6 @@
+ dnl GConf stuff
+ dnl ***********
+ AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
+-AM_GCONF_SOURCE_2
+ 
+ dnl ***************
+ dnl Libappindicator stuff
diff --git a/testing/evolution-on/widget.patch b/testing/evolution-on/widget.patch
new file mode 100644
index 0000000000..d999eb3c8b
--- /dev/null
+++ b/testing/evolution-on/widget.patch
@@ -0,0 +1,23 @@
+From https://github.com/zsugabubus/evolution-on/commit/5f771627e2753febfdabd4f86230a8bfa29f0bb1
+
+From 5f771627e2753febfdabd4f86230a8bfa29f0bb1 Mon Sep 17 00:00:00 2001
+From: zsugabubus <[email-masked]>
+Date: Mon, 3 Sep 2018 14:50:02 +0200
+Subject: [PATCH] fix: remove that unnecessary `gtk_widget_show` call
+
+---
+ src/tray.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/tray.c b/src/tray.c
+index 366e3e4..cea6c74 100644
+--- a/src/tray.c
++++ b/src/tray.c
+@@ -95,7 +95,6 @@ toggle_window()
+ 	if (gtk_widget_get_visible(GTK_WIDGET(on_icon.evo_window))) {
+ 		gtk_widget_hide(GTK_WIDGET(on_icon.evo_window));
+ 	} else {
+-		gtk_widget_show(GTK_WIDGET(on_icon.evo_window));
+ 		gtkut_window_popup(GTK_WIDGET(on_icon.evo_window));
+ 	}
+ 
-- 
2.21.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---