Re: dconf 0.5



Ryan,

On Tue, Aug 03, 2010 at 09:42:19PM -0400, Ryan Lortie wrote:
> After a bit of post-GUADEC delay I am happy to announce dconf 0.5.

Here is a patch that makes the dconf editor optional. I've also added
this to bugzilla: https://bugzilla.gnome.org/show_bug.cgi?id=626081

rsc

----------8<----------8<----------8<----------8<----------8<----------

From: Michael Olbrich <m olbrich pengutronix de>
Date: Thu, 8 Jul 2010 14:21:32 +0200
Subject: [PATCH 1/2] make dconf editor optional

Signed-off-by: Michael Olbrich <m olbrich pengutronix de>
---
 Makefile.am  |    6 +++++-
 configure.ac |   11 ++++++++---
 2 files changed, 13 insertions(+), 4 deletions(-)

Index: dconf-0.5/Makefile.am
===================================================================
--- dconf-0.5.orig/Makefile.am
+++ dconf-0.5/Makefile.am
@@ -1,5 +1,9 @@
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
-SUBDIRS = gvdb service gsettings tests client bin engine common docs editor
+SUBDIRS = gvdb service gsettings tests client bin engine common docs
+
+if ENABLE_EDITOR
+SUBDIRS += editor
+endif
 
 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
Index: dconf-0.5/configure.ac
===================================================================
--- dconf-0.5.orig/configure.ac
+++ dconf-0.5/configure.ac
@@ -22,9 +22,14 @@ GTK_DOC_CHECK([1.15])
 
 # Dependencies
 PKG_CHECK_MODULES(gio, gio-2.0 >= 2.25.12)
-PKG_CHECK_MODULES(gtk, gtk+-2.0)
-PKG_CHECK_MODULES(gee, gee-1.0)
-PKG_CHECK_MODULES(libxml, libxml-2.0)
+
+AC_ARG_ENABLE(editor, [  --disable-editor Disable the dconf editor, [default=yes]],,[enable_editor=yes])
+if test "x$enable_editor" = "xyes"; then
+  PKG_CHECK_MODULES(gtk, gtk+-2.0)
+  PKG_CHECK_MODULES(gee, gee-1.0)
+  PKG_CHECK_MODULES(libxml, libxml-2.0)
+fi
+AM_CONDITIONAL(ENABLE_EDITOR, test "x$enable_editor" = "xyes")
 
 AC_ARG_WITH(gio_modules_dir, [  --with-gio-modules-dir=PATH choose directory for the GIO module, [default=LIBDIR/gio/modules]], giomodulesdir="$withval", giomodulesdir=${libdir}/gio/modules)
 AC_SUBST(giomodulesdir)

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


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