File nautilus-share-bnc358451-extension-dir.patch of Package nautilus-share

2008-03-03  JP Rosevear  <jpr@novell.com>

	Fix the nautilus-share part of
	https://bugzilla.novell.com/show_bug.cgi?id=358451 - fix the
	directory in which Nautilus extensions are installed.

	* configure.in: Check for nautilus extension dir

	* src/Makefile.am: install nautilus extension to directory based
	on package config file

--- nautilus-share/configure.in	(revision 96)
+++ nautilus-share/configure.in	(working copy)
@@ -41,7 +41,13 @@
 AC_SUBST(LIBGLADE_CFLAGS)
 AC_SUBST(LIBGLADE_LIBS)
 
+dnl ========================================================
+dnl Get nautilus extensionsdir
+dnl ========================================================
 
+NAUTILUS_EXTENSION_DIR=`$PKG_CONFIG --variable=extensiondir libnautilus-extension`
+AC_SUBST(NAUTILUS_EXTENSION_DIR)
+
 dnl ========================================================
 dnl Set PIXMAPS_DIR 
 dnl ========================================================
--- nautilus-share/src/Makefile.am	(revision 96)
+++ nautilus-share/src/Makefile.am	(working copy)
@@ -10,8 +10,7 @@
 	$(LIBGLADE_CFLAGS)				\
 	$(GLIB_CFLAGS)
 
-# FIXME: get this from the .pc file
-nautilus_extensiondir=$(libdir)/nautilus/extensions-1.0
+nautilus_extensiondir=$(NAUTILUS_EXTENSION_DIR)
 
 nautilus_extension_LTLIBRARIES=libnautilus-share.la
openSUSE Build Service is sponsored by