[evolution] [Flatpak] Build also Bogofilter, to enable Junk filtering on the client



commit 2e91a732baadb6bd3d3fc7f05a9c6aae84a12fc3
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jul 4 09:01:15 2019 +0200

    [Flatpak] Build also Bogofilter, to enable Junk filtering on the client
    
    Fixes https://github.com/flathub/org.gnome.Evolution/issues/10

 flatpak/org.gnome.Evolution-master.json | 18 +++++++++++++++++-
 flatpak/org.gnome.Evolution-stable.json | 18 +++++++++++++++++-
 2 files changed, 34 insertions(+), 2 deletions(-)
---
diff --git a/flatpak/org.gnome.Evolution-master.json b/flatpak/org.gnome.Evolution-master.json
index d04d63197c..bb82b0943b 100644
--- a/flatpak/org.gnome.Evolution-master.json
+++ b/flatpak/org.gnome.Evolution-master.json
@@ -250,6 +250,21 @@
                        ]
                },
 
+               {
+                       "name": "bogofilter",
+                       "buildsystem": "simple",
+                       "build-commands": [
+                               "cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && 
autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
+                       ],
+                       "sources": [
+                               {
+                                       "type": "archive",
+                                       "url": 
"https://sourceforge.net/code-snapshots/git/b/bo/bogofilter/git.git/bogofilter-git-0242a05e541c7a5ec7b6a27c810be7cecb9ae82f.zip";,
+                                       "sha256": 
"1f9ea52db12bff715c3d955a37abe66547cebf93c90c4f31d7e0aed8ff73afdc"
+                               }
+                       ]
+               },
+
                {
                        "name": "evolution",
                        "buildsystem": "cmake-ninja",
@@ -262,6 +277,7 @@
                                "-DENABLE_PST_IMPORT=OFF",
                                "-DENABLE_TEXT_HIGHLIGHT=OFF",
                                "-DENABLE_YTNEF=OFF",
+                               "-DWITH_BOGOFILTER=/app/bin/bogofilter",
                                "-DWITH_GLADE_CATALOG=OFF",
                                "-DWITH_HELP=OFF"
                        ],
@@ -275,7 +291,6 @@
                                        "url": "https://gitlab.gnome.org/GNOME/evolution.git";,
                                        "branch": "master"
                                },
-
                                {
                                        "type": "shell",
                                        "commands": [
@@ -289,6 +304,7 @@
                                                "if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; 
then",
                                                "       /app/bin/evolution.bin \"$@\"",
                                                "else",
+                                               "       export 
BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
                                                "       export GIO_USE_NETWORK_MONITOR=base",
                                                "       gsettings reset org.gnome.evolution-data-server 
network-monitor-gio-name",
                                                "",
diff --git a/flatpak/org.gnome.Evolution-stable.json b/flatpak/org.gnome.Evolution-stable.json
index 7c9cd64cd9..c8faab5128 100644
--- a/flatpak/org.gnome.Evolution-stable.json
+++ b/flatpak/org.gnome.Evolution-stable.json
@@ -246,6 +246,21 @@
                        ]
                },
 
+               {
+                       "name": "bogofilter",
+                       "buildsystem": "simple",
+                       "build-commands": [
+                               "cd ./bogofilter/ && echo \"# Skip for Flatpak build\" > doc/Makefile.am && 
autoreconf -fi && ./configure --prefix=/app --disable-rpath --with-database=sqlite3 && make && make install"
+                       ],
+                       "sources": [
+                               {
+                                       "type": "archive",
+                                       "url": 
"https://sourceforge.net/code-snapshots/git/b/bo/bogofilter/git.git/bogofilter-git-0242a05e541c7a5ec7b6a27c810be7cecb9ae82f.zip";,
+                                       "sha256": 
"1f9ea52db12bff715c3d955a37abe66547cebf93c90c4f31d7e0aed8ff73afdc"
+                               }
+                       ]
+               },
+
                {
                        "name": "evolution",
                        "buildsystem": "cmake-ninja",
@@ -258,6 +273,7 @@
                                "-DENABLE_PST_IMPORT=OFF",
                                "-DENABLE_TEXT_HIGHLIGHT=OFF",
                                "-DENABLE_YTNEF=OFF",
+                               "-DWITH_BOGOFILTER=/app/bin/bogofilter",
                                "-DWITH_GLADE_CATALOG=OFF",
                                "-DWITH_HELP=OFF"
                        ],
@@ -271,7 +287,6 @@
                                        "url": "https://gitlab.gnome.org/GNOME/evolution.git";,
                                        "branch": "gnome-3-32"
                                },
-
                                {
                                        "type": "shell",
                                        "commands": [
@@ -285,6 +300,7 @@
                                                "if [ \"$1\" = \"--quit\" -o \"$1\" = \"--force-shutdown\" ]; 
then",
                                                "       /app/bin/evolution.bin \"$@\"",
                                                "else",
+                                               "       export 
BOGOFILTER_DIR=\"${XDG_DATA_HOME}/bogofilter/\"",
                                                "       export GIO_USE_NETWORK_MONITOR=base",
                                                "       gsettings reset org.gnome.evolution-data-server 
network-monitor-gio-name",
                                                "",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]