Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mate-extra/caja-extensions/files: caja-extensions-1.8.0-sendto-options.patch
Date: Sun, 04 May 2014 21:43:30
Message-Id: 20140504214326.C28502004E@flycatcher.gentoo.org
1 tomwij 14/05/04 21:43:26
2
3 Added: caja-extensions-1.8.0-sendto-options.patch
4 Log:
5 New ebuild for mate-extra/caja-extensions for MATE 1.8, several Caja extensions; imported from the mate-overlay, reviewed and adjusted.
6
7 (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
8
9 Revision Changes Path
10 1.1 mate-extra/caja-extensions/files/caja-extensions-1.8.0-sendto-options.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mate-extra/caja-extensions/files/caja-extensions-1.8.0-sendto-options.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mate-extra/caja-extensions/files/caja-extensions-1.8.0-sendto-options.patch?rev=1.1&content-type=text/plain
14
15 Index: caja-extensions-1.8.0-sendto-options.patch
16 ===================================================================
17 diff --git a/configure.ac b/configure.ac
18 index fcf02d6..c38061f 100644
19 --- a/configure.ac
20 +++ b/configure.ac
21 @@ -102,19 +102,173 @@ if test "x$enable_sendto" = "xyes"; then
22 GUPNP_REQUIRED=0.13
23 PKG_CHECK_MODULES(SENDTO,
24 glib-2.0 >= $GLIB_REQUIRED
25 - gio-2.0 >= $GLIB_REQUIRED
26 gthread-2.0 >= $GTHREAD_REQUIRED
27 gmodule-2.0 >= $GLIB_REQUIRED
28 gobject-2.0 >= $GLIB_REQUIRED
29 - gtk+-$GTK_API_VERSION >= $GTK_REQUIRED
30 - dbus-1 >= $DBUS_REQUIRED
31 - dbus-glib-1 >= $DBUS_GLIB_REQUIRED
32 - gupnp-1.0 >= $GUPNP_REQUIRED)
33 + gtk+-$GTK_API_VERSION >= $GTK_REQUIRED)
34 AC_SUBST(SENDTO_CFLAGS)
35 AC_SUBST(SENDTO_LIBS)
36 - AC_DEFINE_UNQUOTED(GAJIM_SHARE_DIR, "$prefix/share/gajim", [path to gajim share dir])
37 -fi
38
39 + # The full list of plugins
40 + allowed_sendto_plugins="emailclient gajim caja-burn pidgin removable-devices upnp"
41 +
42 + sendto_plugin_error_or_ignore()
43 + {
44 + if test "${error_on_bad_sendto_plugin}" = "1" ; then
45 + AC_MSG_ERROR([$1])
46 + else
47 + AC_MSG_WARN([$1 (disabling sendto plugin)])
48 + fi
49 + }
50 +
51 + AC_ARG_WITH([sendto-plugins],
52 + [AS_HELP_STRING([--with-sendto-plugins],[Which caja-sendto plugins to compile (default: auto; "all", "autodetect" are valid)])],
53 + [], [with_sendto_plugins=autodetect])
54 +
55 + used_sendto_plugins=""
56 + used_sendto_plugins2=""
57 +
58 + if test "x${with_sendto_plugins}" = "xautodetect" ; then
59 + # Default to all plugins and just ignore them if they won't compile
60 + with_sendto_plugins="all"
61 + error_on_bad_sendto_plugin="0"
62 + else
63 + # Clean up the plugin list and error if a plugin won't compile
64 + with_sendto_plugins=`echo ,"${with_sendto_plugins}", | sed -e 's/[[ ,]][[ ,]]*/ /g' -e 's/,$//'`
65 + error_on_bad_sendto_plugin="1"
66 + fi
67 +
68 + # Iterate through the wanted plugins and weed out bad ones (or error)
69 + for wanted_sendto_plugin in ${with_sendto_plugins}; do
70 + for allowed_sendto_plugin in ${allowed_sendto_plugins}; do
71 + case ${wanted_sendto_plugin} in
72 + all)
73 + # List all plugins as being used
74 + used_sendto_plugins=${allowed_sendto_plugins}
75 + ;;
76 + autodetect)
77 + # List all plugins as being used
78 + used_sendto_plugins=${allowed_sendto_plugins}
79 + ;;
80 + ${allowed_sendto_plugin}) used_sendto_plugins="${used_sendto_plugins} ${wanted_sendto_plugin}";; # List the plugin
81 + *) ;;
82 + esac
83 + done
84 + done
85 +
86 + # Check for plugin-specific requirements and error if necessary
87 + for sendto_plugin in ${used_sendto_plugins}; do
88 + add_sendto_plugin="1"
89 +
90 + case ${sendto_plugin} in
91 + emailclient)
92 + PKG_CHECK_MODULES(EMAILCLIENT, gio-2.0,
93 + enable_emailclient=yes, enable_emailclient=no)
94 + if test "${enable_emailclient}" != "yes" ; then
95 + sendto_plugin_error_or_ignore "you need gio-2.0 to build the emailclient plugin"
96 + add_sendto_plugin="0"
97 + fi
98 + ;;
99 + gajim)
100 + AC_ARG_WITH(sendto_gajim,
101 + [AS_HELP_STRING(--with-sendto-gajim,[Path to Gajim install prefix])],
102 + [GAJIM_PATH="$withval"],[GAJIM_PATH="$prefix"])
103 +
104 + GAJIM_SHARE_DIR="$GAJIM_PATH"/share/gajim
105 +
106 + PKG_CHECK_MODULES(DBUS, dbus-1 >= $DBUS_REQUIRED dbus-glib-1 >= $DBUS_GLIB_REQUIRED,
107 + [AC_SUBST(DBUS_CFLAGS)
108 + AC_SUBST(DBUS_LIBS)
109 + enable_sendto_gajim=yes
110 + AC_DEFINE_UNQUOTED(GAJIM_SHARE_DIR, "$GAJIM_SHARE_DIR", [path to gajim share dir])],
111 + [enable_gajim=no])
112 +
113 + if test "${enable_gajim}" != "yes" ; then
114 + sendto_plugin_error_or_ignore "you need gajim and dbus-glib installed for the gajim plugin"
115 + add_sendto_plugin="0"
116 + fi
117 + ;;
118 + caja-burn)
119 + PKG_CHECK_MODULES(GIO, gio-2.0,
120 + enable_burn=yes, enable_burn=no)
121 + if test "${enable_burn}" != "yes" ; then
122 + sendto_plugin_error_or_ignore "you need gio installed for the caja-burn plugin"
123 + add_sendto_plugin="0"
124 + fi
125 + ;;
126 + pidgin)
127 + PKG_CHECK_MODULES(PIDGIN, dbus-glib-1 >= $DBUS_GLIB_REQUIRED,
128 + enable_pidgin=yes, enable_pidgin=no)
129 + if test "${enable_pidgin}" != "yes" ; then
130 + sendto_plugin_error_or_ignore "you need dbus-glib to build the pidgin plugin"
131 + add_sendto_plugin="0"
132 + fi
133 + ;;
134 + removable-devices)
135 + PKG_CHECK_MODULES(GIO, gio-2.0,
136 + enable_removable=yes, enable_removable=no)
137 + if test "${enable_removable}" != "yes" ; then
138 + sendto_plugin_error_or_ignore "you need gio-2.0 to build the removable-devices plugin"
139 + add_sendto_plugin="0"
140 + fi
141 + ;;
142 + upnp)
143 + PKG_CHECK_MODULES(UPNP, gupnp-1.0 >= $GUPNP_REQUIRED,
144 + enable_upnp=yes, enable_upnp=no)
145 + if test "${enable_upnp}" != "yes" ; then
146 + sendto_plugin_error_or_ignore "you need gupnp installed for the upnp plugin"
147 + add_sendto_plugin="0"
148 + fi
149 + ;;
150 + esac
151 +
152 + # Add the specified plugin
153 + if test "${add_sendto_plugin}" = "1" ; then
154 + used_sendto_plugins2="${used_sendto_plugins2} ${sendto_plugin}"
155 + fi
156 + done
157 +
158 + ALL_SENDTO_PLUGINS=$allowed_sendto_plugins
159 + SENDTO_PLUGINS=$used_sendto_plugins2
160 +
161 + dnl Error out if no plugins will be built
162 + if test -z "${SENDTO_PLUGINS}" ; then
163 + AC_MSG_ERROR([No sendto plugins will be built, and caja-sendto requires at least one])
164 + fi
165 +
166 + AC_MSG_CHECKING([which sendto plugins to compile])
167 + AC_MSG_RESULT([$SENDTO_PLUGINS])
168 +
169 + AC_SUBST([ALL_SENDTO_PLUGINS])
170 + AC_SUBST([SENDTO_PLUGINS])
171 +
172 + dnl For the pidgin sendto plugin
173 + AM_CONDITIONAL(HAVE_SENDTO_PIDGIN, test "x$enable_pidgin" = "xyes")
174 +
175 + dnl For the GIO based plugins
176 + enable_nst_common=no
177 + if test "x$enable_burn" = "xyes" -o "x$enable_removable" = "xyes"; then
178 + enable_nst_common=yes
179 + fi
180 + AM_CONDITIONAL(HAVE_GIO, test "x$enable_nst_common" = "xyes")
181 +
182 + if test "x${SENDTO_PLUGINS}" != "x" ; then
183 + for allowed_sendto_plugin in ${ALL_SENDTO_PLUGINS}; do
184 + for sendto_plugin in ${SENDTO_PLUGINS}; do
185 + case ${allowed_sendto_plugin} in
186 + ${sendto_plugin})
187 + AC_MSG_NOTICE([** ${allowed_sendto_plugin} sendto plugin enabled])
188 + continue 2
189 + ;;
190 + *);;
191 + esac
192 + done
193 + AC_MSG_NOTICE([ ${allowed_sendto_plugin} sendto plugin disabled])
194 + done
195 + else
196 + AC_MSG_NOTICE([ No caja-sendto plugins enabled])
197 + fi
198 +fi
199 AM_CONDITIONAL(ENABLE_SENDTO, test x"$enable_sendto" = "xyes")
200
201 # share extension
202 diff --git a/sendto/plugins/Makefile.am b/sendto/plugins/Makefile.am
203 index 10097e8..6d17c98 100644
204 --- a/sendto/plugins/Makefile.am
205 +++ b/sendto/plugins/Makefile.am
206 @@ -1,16 +1,13 @@
207 -SUBDIRS = . \
208 - caja-burn \
209 - emailclient \
210 - gajim \
211 - pidgin \
212 - removable-devices \
213 - upnp
214 +SUBDIRS = . $(SENDTO_PLUGINS)
215 +DIST_SUBDIRS = $(ALL_SENDTO_PLUGINS)
216
217 NST_COMMON_SOURCES = nst-common.c nst-common.h
218
219 +if HAVE_GIO
220 noinst_LTLIBRARIES = libnstcommon.la
221 libnstcommon_la_SOURCES = $(NST_COMMON_SOURCES)
222 libnstcommon_la_CFLAGS = $(SENDTO_CFLAGS)
223 libnstcommon_la_LIBADD = $(SENDTO_LIBS)
224 +endif
225
226 EXTRA_DIST = $(NST_COMMON_SOURCES)
227 diff --git a/sendto/plugins/caja-burn/Makefile.am b/sendto/plugins/caja-burn/Makefile.am
228 index 50c309b..00f95c2 100644
229 --- a/sendto/plugins/caja-burn/Makefile.am
230 +++ b/sendto/plugins/caja-burn/Makefile.am
231 @@ -9,11 +9,12 @@ AM_CPPFLAGS = \
232 -I$(srcdir)/../ \
233 $(SENDTO_CFLAGS) \
234 $(WARN_CFLAGS) \
235 - $(DISABLE_DEPRECATED)
236 + $(DISABLE_DEPRECATED) \
237 + $(GIO_CFLAGS)
238
239 plugin_LTLIBRARIES = libnstburn.la
240
241 libnstburn_la_SOURCES = caja-burn.c
242 libnstburn_la_LDFLAGS = -module -avoid-version
243 -libnstburn_la_LIBADD = $(SENDTO_LIBS) $(builddir)/../libnstcommon.la
244 +libnstburn_la_LIBADD = $(GIO_LIBS) $(SENDTO_LIBS) $(builddir)/../libnstcommon.la
245
246 diff --git a/sendto/plugins/emailclient/Makefile.am b/sendto/plugins/emailclient/Makefile.am
247 index 31ba40e..c4af752 100644
248 --- a/sendto/plugins/emailclient/Makefile.am
249 +++ b/sendto/plugins/emailclient/Makefile.am
250 @@ -7,6 +7,7 @@ AM_CPPFLAGS = \
251 -I$(top_srcdir)/sendto \
252 -I$(top_builddir) \
253 $(SENDTO_CFLAGS) \
254 + $(EMAILCLIENT_CFLAGS) \
255 $(DISABLE_DEPRECATED) \
256 $(WARN_CFLAGS)
257
258 @@ -14,4 +15,4 @@ plugin_LTLIBRARIES = libnstemailclient.la
259
260 libnstemailclient_la_SOURCES = emailclient.c
261 libnstemailclient_la_LDFLAGS = -module -avoid-version
262 -libnstemailclient_la_LIBADD = $(SENDTO_LIBS)
263 +libnstemailclient_la_LIBADD = $(SENDTO_LIBS) $(EMAILCLIENT_LIBS)
264 diff --git a/sendto/plugins/gajim/Makefile.am b/sendto/plugins/gajim/Makefile.am
265 index 5acd5b0..c39a3c0 100644
266 --- a/sendto/plugins/gajim/Makefile.am
267 +++ b/sendto/plugins/gajim/Makefile.am
268 @@ -7,6 +7,7 @@ AM_CPPFLAGS = \
269 -I$(top_srcdir)/sendto \
270 -I$(top_builddir) \
271 $(SENDTO_CFLAGS) \
272 + $(DBUS_CFLAGS) \
273 $(DISABLE_DEPRECATED) \
274 $(WARN_CFLAGS)
275
276 @@ -14,5 +15,5 @@ plugin_LTLIBRARIES = libnstgajim.la
277
278 libnstgajim_la_SOURCES = gajim.c
279 libnstgajim_la_LDFLAGS = -module -avoid-version
280 -libnstgajim_la_LIBADD = $(SENDTO_LIBS)
281 +libnstgajim_la_LIBADD = $(DBUS_LIBS) $(SENDTO_LIBS)
282
283 diff --git a/sendto/plugins/pidgin/Makefile.am b/sendto/plugins/pidgin/Makefile.am
284 index b7f650a..bcfe1d3 100644
285 --- a/sendto/plugins/pidgin/Makefile.am
286 +++ b/sendto/plugins/pidgin/Makefile.am
287 @@ -7,6 +7,8 @@ AM_CPPFLAGS = \
288 -I$(top_srcdir)/sendto \
289 -I$(top_builddir) \
290 $(SENDTO_CFLAGS) \
291 + $(NST_EBOOK_CFLAGS) \
292 + $(PIDGIN_CFLAGS) \
293 $(DISABLE_DEPRECATED) \
294 $(WARN_CFLAGS)
295
296 @@ -14,5 +16,5 @@ plugin_LTLIBRARIES = libnstpidgin.la
297
298 libnstpidgin_la_SOURCES = pidgin.c
299 libnstpidgin_la_LDFLAGS = -module -avoid-version
300 -libnstpidgin_la_LIBADD = $(SENDTO_LIBS)
301 +libnstpidgin_la_LIBADD = $(PIDGIN_LIBS) $(SENDTO_LIBS)
302
303 diff --git a/sendto/plugins/removable-devices/Makefile.am b/sendto/plugins/removable-devices/Makefile.am
304 index 294ca90..797353b 100644
305 --- a/sendto/plugins/removable-devices/Makefile.am
306 +++ b/sendto/plugins/removable-devices/Makefile.am
307 @@ -15,5 +15,5 @@ plugin_LTLIBRARIES = libnstremovable_devices.la
308
309 libnstremovable_devices_la_SOURCES = removable-devices.c
310 libnstremovable_devices_la_LDFLAGS = -module -avoid-version
311 -libnstremovable_devices_la_LIBADD = $(SENDTO_LIBS) $(builddir)/../libnstcommon.la
312 +libnstremovable_devices_la_LIBADD = $(GIO_LIBS) $(SENDTO_LIBS) $(builddir)/../libnstcommon.la
313
314 diff --git a/sendto/plugins/upnp/Makefile.am b/sendto/plugins/upnp/Makefile.am
315 index 4127abd..31a8bd6 100644
316 --- a/sendto/plugins/upnp/Makefile.am
317 +++ b/sendto/plugins/upnp/Makefile.am
318 @@ -7,6 +7,7 @@ AM_CPPFLAGS = \
319 -I$(top_srcdir)/sendto \
320 -I$(top_builddir) \
321 $(SENDTO_CFLAGS) \
322 + $(UPNP_CFLAGS) \
323 $(DISABLE_DEPRECATED) \
324 $(WARN_CFLAGS)
325
326 @@ -14,5 +15,5 @@ plugin_LTLIBRARIES = libnstupnp.la
327
328 libnstupnp_la_SOURCES = upnp.c
329 libnstupnp_la_LDFLAGS = -module -avoid-version
330 -libnstupnp_la_LIBADD = $(SENDTO_LIBS)
331 +libnstupnp_la_LIBADD = $(UPNP_LIBS) $(SENDTO_LIBS)