[giggle] Establish giggle as url-handler for git:// URLs



commit b00dd6543014e32ab32918d9bf5e96107aca1c38
Author: Florian Müllner <florian muellner gmail com>
Date:   Fri May 7 04:38:36 2010 +0200

    Establish giggle as url-handler for git:// URLs
    
    Use GConf for this if It's available
    
    https://bugzilla.gnome.org/show_bug.cgi?id=608267

 configure.ac     |    9 +++++++++
 data/.gitignore  |    1 +
 data/Makefile.am |   28 +++++++++++++++++++++++++---
 po/POTFILES.in   |    1 +
 4 files changed, 36 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 82b23b8..c69ecfd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,15 @@ AC_SUBST(PLATFORM_CFLAGS)
 AC_SUBST(PLATFORM_LDFLAGS)
 
 
+dnl  --------------------------------------
+dnl | GConftool detection for url-handlers |-------------------
+dnl  --------------------------------------
+AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no])
+if test "x$GCONFTOOL" != xno; then
+   AM_GCONF_SOURCE_2
+fi
+
+
 dnl  -----------------------
 dnl | GIT command detection |----------------------------------
 dnl  -----------------------
diff --git a/data/.gitignore b/data/.gitignore
index 55d7f1a..ca020db 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -2,3 +2,4 @@
 Makefile.in
 Makefile
 giggle.desktop
+giggle.schemas
diff --git a/data/Makefile.am b/data/Makefile.am
index 989fe0c..6ee6fcc 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,8 +5,30 @@ dist_glade_DATA = \
 desktop_in_data=giggle.desktop.in
 desktop_DATA=$(desktop_in_data:.desktop.in=.desktop)
 desktopdir=$(datadir)/applications
-CLEANFILES=$(desktop_DATA)
-
 @INTLTOOL_DESKTOP_RULE@
 
-EXTRA_DIST=giggle.desktop.in
+schemas_in_data=giggle.schemas.in
+schemas_DATA=$(schemas_in_data:.schemas.in=.schemas)
+schemasdir=$(GCONF_SCHEMA_FILE_DIR)
+ INTLTOOL_SCHEMAS_RULE@
+
+# don't do this if we are building in eg. rpm
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+	@if test -z "$(DESTDIR)"; then \
+		GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
+		$(GCONFTOOL) --makefile-install-rule \
+		$(builddir)/$(schemas_DATA); \
+	fi
+
+uninstall-local:
+	@if test -z "$(DESTDIR)"; then \
+		GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
+		$(GCONFTOOL) --makefile-uninstall-rule \
+		$(builddir)/$(schemas_DATA); \
+	fi
+endif
+
+CLEANFILES=$(desktop_DATA) $(schemas_DATA)
+
+EXTRA_DIST=giggle.desktop.in giggle.schemas.in
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7e4aec1..19401fd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,5 @@
 data/giggle.desktop.in
+data/giggle.schemas.in
 [type: gettext/glade]data/main-window.ui
 libgiggle/giggle-plugin.c
 [type: gettext/glade]plugins/hello-world.xml



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