diff options
author | Charlie Li <git@vishwin.info> | 2018-04-15 01:16:42 +0800 |
---|---|---|
committer | Charlie Li <git@vishwin.info> | 2018-04-15 03:37:13 +0800 |
commit | 2b0792d34e24d26cb3fd63ac6a81a4831fbe70dc (patch) | |
tree | d3e2bece7db698d4fd18329a52b7238ac3368e62 | |
parent | 02c4e3325ba74260efddc364f0a4ddff6b793ad2 (diff) | |
download | freebsd-ports-gnome-2b0792d34e24d26cb3fd63ac6a81a4831fbe70dc.tar.gz freebsd-ports-gnome-2b0792d34e24d26cb3fd63ac6a81a4831fbe70dc.tar.zst freebsd-ports-gnome-2b0792d34e24d26cb3fd63ac6a81a4831fbe70dc.zip |
graphics/atril: fix build without webkit
When EPUB is unset (ie epub support will not be built), this port
shall not need www/webkit2-gtk3. However, due to a wrong placement
of a preprocessor endif, two functions that directly use webkit are
exposed, causing builds without epub support to fail. This patch
moves the preprocessor endif to the correct location.
This patch was obtained from upstream, specifically the commit
immediately after v1.20.1.
Signed-off-by: Charlie Li <ml+freebsd@vishwin.info>
-rw-r--r-- | graphics/atril/files/patch-libview_ev-jobs.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/atril/files/patch-libview_ev-jobs.c b/graphics/atril/files/patch-libview_ev-jobs.c new file mode 100644 index 000000000000..70a35c75bb44 --- /dev/null +++ b/graphics/atril/files/patch-libview_ev-jobs.c @@ -0,0 +1,20 @@ +--- libview/ev-jobs.c.orig 2018-03-22 15:13:28 UTC ++++ libview/ev-jobs.c +@@ -876,8 +876,6 @@ snapshot_callback(WebKitWebView *webview, + gtk_widget_destroy (gtk_widget_get_toplevel (GTK_WIDGET (webview))); + } + +-#endif /* ENABLE_EPUB */ +- + static void + web_thumbnail_get_screenshot_cb (WebKitWebView *webview, + WebKitLoadEvent event, +@@ -909,6 +907,8 @@ webview_load_failed_cb (WebKitWebView *webview, + gtk_widget_destroy (gtk_widget_get_toplevel (GTK_WIDGET (webview))); + return TRUE; + } ++ ++#endif /* ENABLE_EPUB */ + + static gboolean + ev_job_thumbnail_run (EvJob *job) |