File xfce4-panel-plugin-clipman-1.1.3-use-docdir.patch of Package xfce4-panel-plugin-clipman

Index: xfce4-clipman-plugin-1.1.3/docs/manual/C/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/C/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/C/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/C
+TARGET_DIR = $(docdir)/html/C
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/C/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/C/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/C/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/C/images
+imagesdir = $(docdir)/html/C/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/docs/manual/da/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/da/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/da/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/da
+TARGET_DIR = $(docdir)/html/da
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/da/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/da/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/da/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/da/images
+imagesdir = $(docdir)/html/da/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/docs/manual/fr/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/fr/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/fr/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/fr
+TARGET_DIR = $(docdir)/html/fr
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/fr/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/fr/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/fr/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/fr/images
+imagesdir = $(docdir)/html/fr/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/docs/manual/gl/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/gl/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/gl/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/gl
+TARGET_DIR = $(docdir)/html/gl
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/gl/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/gl/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/gl/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/gl/images
+imagesdir = $(docdir)/html/gl/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/docs/manual/it/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/it/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/it/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/it
+TARGET_DIR = $(docdir)/html/it
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/it/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/it/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/it/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/it/images
+imagesdir = $(docdir)/html/it/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/docs/manual/ja/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/ja/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/ja/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/ja
+TARGET_DIR = $(docdir)/html/ja
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/ja/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/ja/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/ja/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/ja/images
+imagesdir = $(docdir)/html/ja/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/docs/manual/zh_CN/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/zh_CN/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/zh_CN/Makefile.am
@@ -10,7 +10,7 @@ SUBDIRS =								\
 	images								\
 	$(NULL)
 
-TARGET_DIR = $(datadir)/xfce4/doc/zh_CN
+TARGET_DIR = $(docdir)/html/zh_CN
 STYLESHEET = ../xfce-nochunk.xsl
 DOCUMENT = $(PACKAGE).xml
 
Index: xfce4-clipman-plugin-1.1.3/docs/manual/zh_CN/images/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/docs/manual/zh_CN/images/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/docs/manual/zh_CN/images/Makefile.am
@@ -1,6 +1,6 @@
 NULL = 
 
-imagesdir = $(datadir)/xfce4/doc/zh_CN/images
+imagesdir = $(docdir)/html/zh_CN/images
 images_DATA =								\
 	clipman-action-dialog.png					\
 	clipman-menu.png						\
Index: xfce4-clipman-plugin-1.1.3/panel-plugin/Makefile.am
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/panel-plugin/Makefile.am
+++ xfce4-clipman-plugin-1.1.3/panel-plugin/Makefile.am
@@ -7,6 +7,7 @@ INCLUDES =								\
 	-DDATADIR=\"$(datadir)\"					\
 	-DSRCDIR=\"$(top_srcdir)\"					\
 	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"				\
+	-DDOCROOTDIR=\"$(docdir)\"					\
 	$(NULL)
 
 bin_PROGRAMS = xfce4-clipman xfce4-popup-clipman xfce4-clipman-settings
Index: xfce4-clipman-plugin-1.1.3/panel-plugin/xfce4-clipman-settings.c
===================================================================
--- xfce4-clipman-plugin-1.1.3.orig/panel-plugin/xfce4-clipman-settings.c
+++ xfce4-clipman-plugin-1.1.3/panel-plugin/xfce4-clipman-settings.c
@@ -166,31 +166,31 @@ cb_show_help (GtkButton *button)
   locale = g_strdup ("C");
 #endif
 
-  filename = g_strdup_printf (DATAROOTDIR"/xfce4/doc/%s/"PACKAGE".html", locale);
+  filename = g_strdup_printf (DOCROOTDIR"/html/%s/"PACKAGE".html", locale);
   if (!g_file_test (filename, G_FILE_TEST_EXISTS))
     {
       offset = g_strrstr (locale, "_");
       if (offset == NULL)
         {
           g_free (filename);
-          filename = g_strdup (DATAROOTDIR"/xfce4/doc/C/"PACKAGE".html");
+          filename = g_strdup (DOCROOTDIR"/html/C/"PACKAGE".html");
         }
       else
         {
           *offset = '\0';
           g_free (filename);
-          filename = g_strdup_printf (DATAROOTDIR"/xfce4/doc/%s/"PACKAGE".html", locale);
+          filename = g_strdup_printf (DOCROOTDIR"/html/%s/"PACKAGE".html", locale);
           if (!g_file_test (filename, G_FILE_TEST_EXISTS))
             {
               g_free (filename);
-              filename = g_strdup (DATAROOTDIR"/xfce4/doc/C/"PACKAGE".html");
+              filename = g_strdup (DOCROOTDIR"/html/C/"PACKAGE".html");
             }
         }
     }
 
   g_free (locale);
 #else
-  filename = g_strdup (DATAROOTDIR"/xfce4/doc/C/"PACKAGE".html");
+  filename = g_strdup (DOCROOTDIR"/html/C/"PACKAGE".html");
 #endif
 
   screen = gtk_widget_get_screen (GTK_WIDGET (button));
openSUSE Build Service is sponsored by