View | Details | Raw Unified | Return to bug 201967
Collapse All | Expand All

(-)Makefile (-1 / +3 lines)
Lines 23-29 Link Here
23
23
24
USES=		desktop-file-utils gettext gmake libtool pathfix \
24
USES=		desktop-file-utils gettext gmake libtool pathfix \
25
		pkgconfig tar:xz
25
		pkgconfig tar:xz
26
USE_MATE=	desktop icontheme
26
USE_MATE=	icontheme
27
USE_XORG=	sm
27
USE_XORG=	sm
28
USE_GNOME=	cairo gtk20 intlhack libxml2
28
USE_GNOME=	cairo gtk20 intlhack libxml2
29
USE_LDCONFIG=	yes
29
USE_LDCONFIG=	yes
Lines 38-43 Link Here
38
.if ${SLAVEPORT} == lite
38
.if ${SLAVEPORT} == lite
39
CONFIGURE_ARGS+=--disable-thumbnailer \
39
CONFIGURE_ARGS+=--disable-thumbnailer \
40
		--disable-previewer
40
		--disable-previewer
41
.else
42
USE_MATE+=	desktop
41
.endif
43
.endif
42
44
43
GLIB_SCHEMAS=	org.mate.Atril.gschema.xml
45
GLIB_SCHEMAS=	org.mate.Atril.gschema.xml
(-)files/configure.ac (-2 / +87 lines)
Lines 1-5 Link Here
1
--- configure.ac.orig	2015-07-28 09:49:21.172132000 +0200
1
--- configure.ac.orig	2015-07-29 15:31:05.000000000 +0200
2
+++ configure.ac	2015-07-28 09:53:17.414002000 +0200
2
+++ configure.ac	2015-07-29 15:31:25.000000000 +0200
3
@@ -199,7 +199,7 @@
4
         ;;
5
 esac
6
 
7
-PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS])
8
+PKG_CHECK_MODULES([SHELL_CORE],[libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS])
9
 
10
 dnl
11
 dnl zlib support
3
@@ -699,16 +699,16 @@
12
@@ -699,16 +699,16 @@
4
     case "$with_gtk" in
13
     case "$with_gtk" in
5
         2.0)
14
         2.0)
Lines 20-22 Link Here
20
         fi
29
         fi
21
 	;;
30
 	;;
22
 esac
31
 esac
32
@@ -760,6 +760,23 @@
33
 
34
 AC_CHECK_FUNC(localtime_r, AC_DEFINE(HAVE_LOCALTIME_R, 1, [Defines if localtime_r is available on your system]))
35
 
36
+# *********************
37
+# Mate-desktop support
38
+# *********************
39
+
40
+AC_ARG_WITH(matedesktop,
41
+        [AS_HELP_STRING([--without-matedesktop],
42
+                        [Disable the use of matedesktop])],
43
+        [],
44
+        [with_matedesktop=yes])
45
+
46
+AM_CONDITIONAL([WITH_MATEDESKTOP],[test "$with_matedesktop" = "yes"])
47
+
48
+if test "$with_matedesktop" = "yes"; then
49
+        PKG_CHECK_MODULES([SHELL_CORE], mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED)
50
+        AC_DEFINE([WITH_MATEDESKTOP],[1],[Define if mate-desktop support is enabled])
51
+fi
52
+
53
 # *****************
54
 # Help files
55
 # *****************
56
@@ -929,27 +946,28 @@
57
 echo "
58
 Configure summary:
59
 
60
-    Platform...........:    $with_platform
61
-    GTK+ version.......:    $with_gtk
62
-    GTK+ Unix Print....:    $with_gtk_unix_print
63
-    Keyring Support....:    $with_keyring
64
-    DBUS Support.......:    $enable_dbus
65
-    SM client support..:    $with_smclient
66
-    Caja Plugin........:    $enable_caja
67
-    Thumbnailer........:    $enable_thumbnailer
68
-    Previewer..........:    $enable_previewer
69
-    Gtk-Doc Support....:    $enable_gtk_doc
70
-    Debug mode.........:    $enable_debug
71
-    GObj. Introspection:    $enable_introspection
72
-    Tests..............:    $enable_tests
73
-
74
-    PDF Backend........:    $enable_pdf
75
-    PostScript Backend.:    $enable_ps
76
-    TIFF Backend.......:    $enable_tiff
77
-    DJVU Backend.......:    $enable_djvu
78
-    DVI Backend........:    $enable_dvi
79
-    Pixbuf Backend.....:    $enable_pixbuf
80
-    Comics Backend.....:    $enable_comics
81
-    XPS Backend........:    $enable_xps
82
-    ePub Backend.......:    $have_webkit
83
+    Platform............:    $with_platform
84
+    GTK+ version........:    $with_gtk
85
+    GTK+ Unix Print.....:    $with_gtk_unix_print
86
+    MATE desktop Support:    $with_matedesktop
87
+    Keyring Support.....:    $with_keyring
88
+    DBUS Support........:    $enable_dbus
89
+    SM client support...:    $with_smclient
90
+    Caja Plugin.........:    $enable_caja
91
+    Thumbnailer.........:    $enable_thumbnailer
92
+    Previewer...........:    $enable_previewer
93
+    Gtk-Doc Support.....:    $enable_gtk_doc
94
+    Debug mode..........:    $enable_debug
95
+    GObj. Introspection.:    $enable_introspection
96
+    Tests...............:    $enable_tests
97
+
98
+    PDF Backend.........:    $enable_pdf
99
+    PostScript Backend..:    $enable_ps
100
+    TIFF Backend........:    $enable_tiff
101
+    DJVU Backend........:    $enable_djvu
102
+    DVI Backend.........:    $enable_dvi
103
+    Pixbuf Backend......:    $enable_pixbuf
104
+    Comics Backend......:    $enable_comics
105
+    XPS Backend.........:    $enable_xps
106
+    ePub Backend........:    $have_webkit
107
 "
(-)files/patch-configure (-11 / +275 lines)
Lines 1-8 Link Here
1
--- configure.orig	2015-07-28 09:49:10.059868000 +0200
1
--- configure.orig	2015-07-13 16:08:54.000000000 +0200
2
+++ configure	2015-07-28 09:53:49.981847000 +0200
2
+++ configure	2015-07-29 15:33:13.000000000 +0200
3
@@ -22224,14 +22224,14 @@
3
@@ -674,6 +674,8 @@
4
 HELP_DIR
5
 YELP_LC_DIST
6
 YELP_LC_MEDIA_LINKS
7
+WITH_MATEDESKTOP_FALSE
8
+WITH_MATEDESKTOP_TRUE
9
 ATRIL_MIME_TYPES
10
 ENABLE_EPUB_FALSE
11
 ENABLE_EPUB_TRUE
12
@@ -1006,6 +1008,7 @@
13
 enable_comics
14
 enable_xps
15
 enable_epub
16
+with_matedesktop
17
 with_help_dir
18
 with_html_dir
19
 enable_gtk_doc
20
@@ -1757,6 +1760,7 @@
21
   --without-gtk-unix-print
22
                           Disable the use of gtk-unix-print
23
   --without-keyring       Disable the use of libsecret and keyring
24
+  --without-matedesktop   Disable the use of matedesktop
25
   --with-help-dir=DIR     path where help files are installed
26
   --with-html-dir=PATH    path to installed docs
27
 
28
@@ -20038,12 +20042,12 @@
29
     pkg_cv_SHELL_CORE_CFLAGS="$SHELL_CORE_CFLAGS"
4
  elif test -n "$PKG_CONFIG"; then
30
  elif test -n "$PKG_CONFIG"; then
5
     if test -n "$PKG_CONFIG" && \
31
     if test -n "$PKG_CONFIG" && \
32
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= \$MATEDESKTOP_REQUIRED \$SHELL_PLATFORM_PKGS\""; } >&5
33
-  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS") 2>&5
34
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 \$SHELL_PLATFORM_PKGS\""; } >&5
35
+  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS") 2>&5
36
   ac_status=$?
37
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38
   test $ac_status = 0; }; then
39
-  pkg_cv_SHELL_CORE_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS" 2>/dev/null`
40
+  pkg_cv_SHELL_CORE_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>/dev/null`
41
 		      test "x$?" != "x0" && pkg_failed=yes
42
 else
43
   pkg_failed=yes
44
@@ -20055,12 +20059,12 @@
45
     pkg_cv_SHELL_CORE_LIBS="$SHELL_CORE_LIBS"
46
  elif test -n "$PKG_CONFIG"; then
47
     if test -n "$PKG_CONFIG" && \
48
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= \$MATEDESKTOP_REQUIRED \$SHELL_PLATFORM_PKGS\""; } >&5
49
-  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS") 2>&5
50
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML_REQUIRED gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED gio-2.0 >= \$GLIB_REQUIRED gthread-2.0 \$SHELL_PLATFORM_PKGS\""; } >&5
51
+  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS") 2>&5
52
   ac_status=$?
53
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54
   test $ac_status = 0; }; then
55
-  pkg_cv_SHELL_CORE_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS" 2>/dev/null`
56
+  pkg_cv_SHELL_CORE_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>/dev/null`
57
 		      test "x$?" != "x0" && pkg_failed=yes
58
 else
59
   pkg_failed=yes
60
@@ -20081,14 +20085,14 @@
61
         _pkg_short_errors_supported=no
62
 fi
63
         if test $_pkg_short_errors_supported = yes; then
64
-	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS" 2>&1`
65
+	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>&1`
66
         else
67
-	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS" 2>&1`
68
+	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS" 2>&1`
69
         fi
70
 	# Put the nasty error message in config.log where it belongs
71
 	echo "$SHELL_CORE_PKG_ERRORS" >&5
72
 
73
-	as_fn_error $? "Package requirements (libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED $SHELL_PLATFORM_PKGS) were not met:
74
+	as_fn_error $? "Package requirements (libxml-2.0 >= $LIBXML_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gio-2.0 >= $GLIB_REQUIRED gthread-2.0 $SHELL_PLATFORM_PKGS) were not met:
75
 
76
 $SHELL_CORE_PKG_ERRORS
77
 
78
@@ -22453,14 +22457,14 @@
79
  elif test -n "$PKG_CONFIG"; then
80
     if test -n "$PKG_CONFIG" && \
6
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
81
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
7
-	    libxml-2.0 >= \$LIBXML_REQUIRED zlib\""; } >&5
82
-	    libxml-2.0 >= \$LIBXML_REQUIRED zlib\""; } >&5
8
+	    libxml-2.0 >= \$LIBXML_REQUIRED \""; } >&5
83
+	    libxml-2.0 >= \$LIBXML_REQUIRED \""; } >&5
Lines 18-24 Link Here
18
 		      test "x$?" != "x0" && pkg_failed=yes
93
 		      test "x$?" != "x0" && pkg_failed=yes
19
 else
94
 else
20
   pkg_failed=yes
95
   pkg_failed=yes
21
@@ -22244,14 +22244,14 @@
96
@@ -22473,14 +22477,14 @@
22
  elif test -n "$PKG_CONFIG"; then
97
  elif test -n "$PKG_CONFIG"; then
23
     if test -n "$PKG_CONFIG" && \
98
     if test -n "$PKG_CONFIG" && \
24
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
99
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
Lines 36-42 Link Here
36
 		      test "x$?" != "x0" && pkg_failed=yes
111
 		      test "x$?" != "x0" && pkg_failed=yes
37
 else
112
 else
38
   pkg_failed=yes
113
   pkg_failed=yes
39
@@ -22273,10 +22273,10 @@
114
@@ -22502,10 +22506,10 @@
40
 fi
115
 fi
41
         if test $_pkg_short_errors_supported = yes; then
116
         if test $_pkg_short_errors_supported = yes; then
42
 	        EPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-$WEBKIT_API_VERSION >= $WEBKIT_REQUIRED \
117
 	        EPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit-$WEBKIT_API_VERSION >= $WEBKIT_REQUIRED \
Lines 49-55 Link Here
49
         fi
124
         fi
50
 	# Put the nasty error message in config.log where it belongs
125
 	# Put the nasty error message in config.log where it belongs
51
 	echo "$EPUB_PKG_ERRORS" >&5
126
 	echo "$EPUB_PKG_ERRORS" >&5
52
@@ -22305,14 +22305,14 @@
127
@@ -22534,14 +22538,14 @@
53
  elif test -n "$PKG_CONFIG"; then
128
  elif test -n "$PKG_CONFIG"; then
54
     if test -n "$PKG_CONFIG" && \
129
     if test -n "$PKG_CONFIG" && \
55
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
130
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
Lines 67-73 Link Here
67
 		      test "x$?" != "x0" && pkg_failed=yes
142
 		      test "x$?" != "x0" && pkg_failed=yes
68
 else
143
 else
69
   pkg_failed=yes
144
   pkg_failed=yes
70
@@ -22325,14 +22325,14 @@
145
@@ -22554,14 +22558,14 @@
71
  elif test -n "$PKG_CONFIG"; then
146
  elif test -n "$PKG_CONFIG"; then
72
     if test -n "$PKG_CONFIG" && \
147
     if test -n "$PKG_CONFIG" && \
73
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
148
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
Lines 85-91 Link Here
85
 		      test "x$?" != "x0" && pkg_failed=yes
160
 		      test "x$?" != "x0" && pkg_failed=yes
86
 else
161
 else
87
   pkg_failed=yes
162
   pkg_failed=yes
88
@@ -22354,10 +22354,10 @@
163
@@ -22583,10 +22587,10 @@
89
 fi
164
 fi
90
         if test $_pkg_short_errors_supported = yes; then
165
         if test $_pkg_short_errors_supported = yes; then
91
 	        EPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit2gtk-$WEBKIT_API_VERSION >= $WEBKIT_REQUIRED \
166
 	        EPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit2gtk-$WEBKIT_API_VERSION >= $WEBKIT_REQUIRED \
Lines 98-104 Link Here
98
         fi
173
         fi
99
 	# Put the nasty error message in config.log where it belongs
174
 	# Put the nasty error message in config.log where it belongs
100
 	echo "$EPUB_PKG_ERRORS" >&5
175
 	echo "$EPUB_PKG_ERRORS" >&5
101
@@ -22388,14 +22388,14 @@
176
@@ -22617,14 +22621,14 @@
102
  elif test -n "$PKG_CONFIG"; then
177
  elif test -n "$PKG_CONFIG"; then
103
     if test -n "$PKG_CONFIG" && \
178
     if test -n "$PKG_CONFIG" && \
104
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
179
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
Lines 116-122 Link Here
116
 		      test "x$?" != "x0" && pkg_failed=yes
191
 		      test "x$?" != "x0" && pkg_failed=yes
117
 else
192
 else
118
   pkg_failed=yes
193
   pkg_failed=yes
119
@@ -22408,14 +22408,14 @@
194
@@ -22637,14 +22641,14 @@
120
  elif test -n "$PKG_CONFIG"; then
195
  elif test -n "$PKG_CONFIG"; then
121
     if test -n "$PKG_CONFIG" && \
196
     if test -n "$PKG_CONFIG" && \
122
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
197
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit2gtk-\$WEBKIT_API_VERSION >= \$WEBKIT_REQUIRED \\
Lines 134-140 Link Here
134
 		      test "x$?" != "x0" && pkg_failed=yes
209
 		      test "x$?" != "x0" && pkg_failed=yes
135
 else
210
 else
136
   pkg_failed=yes
211
   pkg_failed=yes
137
@@ -22437,10 +22437,10 @@
212
@@ -22666,10 +22670,10 @@
138
 fi
213
 fi
139
         if test $_pkg_short_errors_supported = yes; then
214
         if test $_pkg_short_errors_supported = yes; then
140
 	        EPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit2gtk-$WEBKIT_API_VERSION >= $WEBKIT_REQUIRED \
215
 	        EPUB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "webkit2gtk-$WEBKIT_API_VERSION >= $WEBKIT_REQUIRED \
Lines 147-149 Link Here
147
         fi
222
         fi
148
 	# Put the nasty error message in config.log where it belongs
223
 	# Put the nasty error message in config.log where it belongs
149
 	echo "$EPUB_PKG_ERRORS" >&5
224
 	echo "$EPUB_PKG_ERRORS" >&5
225
@@ -22751,6 +22755,125 @@
226
 fi
227
 
228
 
229
+# *********************
230
+# Mate-desktop support
231
+# *********************
232
+
233
+
234
+# Check whether --with-matedesktop was given.
235
+if test "${with_matedesktop+set}" = set; then :
236
+  withval=$with_matedesktop;
237
+else
238
+  with_matedesktop=yes
239
+fi
240
+
241
+
242
+ if test "$with_matedesktop" = "yes"; then
243
+  WITH_MATEDESKTOP_TRUE=
244
+  WITH_MATEDESKTOP_FALSE='#'
245
+else
246
+  WITH_MATEDESKTOP_TRUE='#'
247
+  WITH_MATEDESKTOP_FALSE=
248
+fi
249
+
250
+
251
+if test "$with_matedesktop" = "yes"; then
252
+
253
+pkg_failed=no
254
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHELL_CORE" >&5
255
+$as_echo_n "checking for SHELL_CORE... " >&6; }
256
+
257
+if test -n "$SHELL_CORE_CFLAGS"; then
258
+    pkg_cv_SHELL_CORE_CFLAGS="$SHELL_CORE_CFLAGS"
259
+ elif test -n "$PKG_CONFIG"; then
260
+    if test -n "$PKG_CONFIG" && \
261
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mate-desktop-2.0 >= \$MATEDESKTOP_REQUIRED\""; } >&5
262
+  ($PKG_CONFIG --exists --print-errors "mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED") 2>&5
263
+  ac_status=$?
264
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
265
+  test $ac_status = 0; }; then
266
+  pkg_cv_SHELL_CORE_CFLAGS=`$PKG_CONFIG --cflags "mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED" 2>/dev/null`
267
+		      test "x$?" != "x0" && pkg_failed=yes
268
+else
269
+  pkg_failed=yes
270
+fi
271
+ else
272
+    pkg_failed=untried
273
+fi
274
+if test -n "$SHELL_CORE_LIBS"; then
275
+    pkg_cv_SHELL_CORE_LIBS="$SHELL_CORE_LIBS"
276
+ elif test -n "$PKG_CONFIG"; then
277
+    if test -n "$PKG_CONFIG" && \
278
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mate-desktop-2.0 >= \$MATEDESKTOP_REQUIRED\""; } >&5
279
+  ($PKG_CONFIG --exists --print-errors "mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED") 2>&5
280
+  ac_status=$?
281
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
282
+  test $ac_status = 0; }; then
283
+  pkg_cv_SHELL_CORE_LIBS=`$PKG_CONFIG --libs "mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED" 2>/dev/null`
284
+		      test "x$?" != "x0" && pkg_failed=yes
285
+else
286
+  pkg_failed=yes
287
+fi
288
+ else
289
+    pkg_failed=untried
290
+fi
291
+
292
+
293
+
294
+if test $pkg_failed = yes; then
295
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
296
+$as_echo "no" >&6; }
297
+
298
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
299
+        _pkg_short_errors_supported=yes
300
+else
301
+        _pkg_short_errors_supported=no
302
+fi
303
+        if test $_pkg_short_errors_supported = yes; then
304
+	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED" 2>&1`
305
+        else
306
+	        SHELL_CORE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED" 2>&1`
307
+        fi
308
+	# Put the nasty error message in config.log where it belongs
309
+	echo "$SHELL_CORE_PKG_ERRORS" >&5
310
+
311
+	as_fn_error $? "Package requirements (mate-desktop-2.0 >= $MATEDESKTOP_REQUIRED) were not met:
312
+
313
+$SHELL_CORE_PKG_ERRORS
314
+
315
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
316
+installed software in a non-standard prefix.
317
+
318
+Alternatively, you may set the environment variables SHELL_CORE_CFLAGS
319
+and SHELL_CORE_LIBS to avoid the need to call pkg-config.
320
+See the pkg-config man page for more details." "$LINENO" 5
321
+elif test $pkg_failed = untried; then
322
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
323
+$as_echo "no" >&6; }
324
+	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
325
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
326
+as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
327
+is in your PATH or set the PKG_CONFIG environment variable to the full
328
+path to pkg-config.
329
+
330
+Alternatively, you may set the environment variables SHELL_CORE_CFLAGS
331
+and SHELL_CORE_LIBS to avoid the need to call pkg-config.
332
+See the pkg-config man page for more details.
333
+
334
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
335
+See \`config.log' for more details" "$LINENO" 5; }
336
+else
337
+	SHELL_CORE_CFLAGS=$pkg_cv_SHELL_CORE_CFLAGS
338
+	SHELL_CORE_LIBS=$pkg_cv_SHELL_CORE_LIBS
339
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
340
+$as_echo "yes" >&6; }
341
+
342
+fi
343
+
344
+$as_echo "#define WITH_MATEDESKTOP 1" >>confdefs.h
345
+
346
+fi
347
+
348
 # *****************
349
 # Help files
350
 # *****************
351
@@ -23716,6 +23839,10 @@
352
   as_fn_error $? "conditional \"ENABLE_EPUB\" was never defined.
353
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
354
 fi
355
+if test -z "${WITH_MATEDESKTOP_TRUE}" && test -z "${WITH_MATEDESKTOP_FALSE}"; then
356
+  as_fn_error $? "conditional \"WITH_MATEDESKTOP\" was never defined.
357
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
358
+fi
359
 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
360
   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
361
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
362
@@ -26300,27 +26427,28 @@
363
 echo "
364
 Configure summary:
365
 
366
-    Platform...........:    $with_platform
367
-    GTK+ version.......:    $with_gtk
368
-    GTK+ Unix Print....:    $with_gtk_unix_print
369
-    Keyring Support....:    $with_keyring
370
-    DBUS Support.......:    $enable_dbus
371
-    SM client support..:    $with_smclient
372
-    Caja Plugin........:    $enable_caja
373
-    Thumbnailer........:    $enable_thumbnailer
374
-    Previewer..........:    $enable_previewer
375
-    Gtk-Doc Support....:    $enable_gtk_doc
376
-    Debug mode.........:    $enable_debug
377
-    GObj. Introspection:    $enable_introspection
378
-    Tests..............:    $enable_tests
379
-
380
-    PDF Backend........:    $enable_pdf
381
-    PostScript Backend.:    $enable_ps
382
-    TIFF Backend.......:    $enable_tiff
383
-    DJVU Backend.......:    $enable_djvu
384
-    DVI Backend........:    $enable_dvi
385
-    Pixbuf Backend.....:    $enable_pixbuf
386
-    Comics Backend.....:    $enable_comics
387
-    XPS Backend........:    $enable_xps
388
-    ePub Backend.......:    $have_webkit
389
+    Platform............:    $with_platform
390
+    GTK+ version........:    $with_gtk
391
+    GTK+ Unix Print.....:    $with_gtk_unix_print
392
+    MATE desktop Support:    $with_matedesktop
393
+    Keyring Support.....:    $with_keyring
394
+    DBUS Support........:    $enable_dbus
395
+    SM client support...:    $with_smclient
396
+    Caja Plugin.........:    $enable_caja
397
+    Thumbnailer.........:    $enable_thumbnailer
398
+    Previewer...........:    $enable_previewer
399
+    Gtk-Doc Support.....:    $enable_gtk_doc
400
+    Debug mode..........:    $enable_debug
401
+    GObj. Introspection.:    $enable_introspection
402
+    Tests...............:    $enable_tests
403
+
404
+    PDF Backend.........:    $enable_pdf
405
+    PostScript Backend..:    $enable_ps
406
+    TIFF Backend........:    $enable_tiff
407
+    DJVU Backend........:    $enable_djvu
408
+    DVI Backend.........:    $enable_dvi
409
+    Pixbuf Backend......:    $enable_pixbuf
410
+    Comics Backend......:    $enable_comics
411
+    XPS Backend.........:    $enable_xps
412
+    ePub Backend........:    $have_webkit
413
 "
(-)files/patch-shell_ev-window.c (+39 lines)
Line 0 Link Here
1
--- shell/ev-window.c.orig	2015-07-10 12:46:39.000000000 +0200
2
+++ shell/ev-window.c	2015-07-29 15:31:25.000000000 +0200
3
@@ -41,8 +41,10 @@
4
 #include <gio/gio.h>
5
 #include <gtk/gtk.h>
6
 
7
+#ifdef WITH_MATEDESKTOP
8
 #include <libmate-desktop/mate-aboutdialog.h>
9
 #include <libmate-desktop/mate-gsettings.h>
10
+#endif
11
 
12
 #include "egg-editable-toolbar.h"
13
 #include "egg-toolbar-editor.h"
14
@@ -1501,7 +1503,13 @@
15
 				  ev_window);
16
 	}
17
 
18
+#ifdef WITH_MATEDESKTOP
19
 	if (mate_gsettings_schema_exists (MATE_LOCKDOWN_SCHEMA)) {
20
+#else
21
+	GSettingsSchema *schema_mate_lockdown_schema = g_settings_schema_source_lookup (g_settings_schema_source_get_default(), MATE_LOCKDOWN_SCHEMA, FALSE);
22
+	if (schema_mate_lockdown_schema != NULL) {
23
+		g_settings_schema_unref (schema_mate_lockdown_schema);
24
+#endif
25
 		if (!ev_window->priv->lockdown_settings)
26
 			ev_window->priv->lockdown_settings = g_settings_new (MATE_LOCKDOWN_SCHEMA);
27
 		g_signal_connect (ev_window->priv->lockdown_settings,
28
@@ -5053,7 +5061,11 @@
29
 
30
 	comments = build_comments_string (ev_window->priv->document);
31
 
32
+#ifdef WITH_MATEDESKTOP
33
 	mate_show_about_dialog (
34
+#else
35
+	gtk_show_about_dialog (
36
+#endif
37
 		GTK_WINDOW (ev_window),
38
 		"name", _("Atril"),
39
 		"version", VERSION,

Return to bug 201967