[gnome-doc-utils] [xml2po] Install modes in /usr/lib/python2.x/ to respect FHS (Bug #528099)



commit af6c6108760a9fc0b5d8102fe0d7363c081c13de
Author: Arun Raghavan <ford_prefect gentoo org>
Date:   Fri Jun 26 23:10:26 2009 +0200

    [xml2po] Install modes in /usr/lib/python2.x/ to respect FHS (Bug #528099)

 xml2po/Makefile.am       |    4 +---
 xml2po/modes/Makefile.am |    2 +-
 xml2po/xml2po.pc.in      |    2 +-
 3 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/xml2po/Makefile.am b/xml2po/Makefile.am
index 2c9ceb4..61a6d39 100644
--- a/xml2po/Makefile.am
+++ b/xml2po/Makefile.am
@@ -3,8 +3,6 @@ SUBDIRS = modes examples
 nodist_bin_SCRIPTS = xml2po
 CLEANFILES = xml2po
 
-commondir = $(datadir)/xml2po
-
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = xml2po.pc
 
@@ -12,7 +10,7 @@ man_MANS = xml2po.1
 
 xml2po: xml2po.py
 	sed -e "s/^VERSION =.*/VERSION = \"@VERSION \"/" \
-	    -e "s+^submodes_path =.*+submodes_path = \"$(commondir)\"+" \
+	    -e "s+^submodes_path =.*+submodes_path = \"$(pythondir)/xml2po\"+" \
 	    -e "s+^#!.*python.*+#!$(PYTHON)+" \
 	  < $(srcdir)/xml2po.py > xml2po
 	chmod +x xml2po
diff --git a/xml2po/modes/Makefile.am b/xml2po/modes/Makefile.am
index 7a7f956..f9bc720 100644
--- a/xml2po/modes/Makefile.am
+++ b/xml2po/modes/Makefile.am
@@ -1,4 +1,4 @@
-commondir = $(datadir)/xml2po
+commondir = $(pythondir)/xml2po
 common_DATA = basic.py docbook.py gs.py ubuntu.py xhtml.py
 
 EXTRA_DIST = $(common_DATA)
diff --git a/xml2po/xml2po.pc.in b/xml2po/xml2po.pc.in
index 06e9ffc..527a7be 100644
--- a/xml2po/xml2po.pc.in
+++ b/xml2po/xml2po.pc.in
@@ -1,7 +1,7 @@
 prefix= prefix@
 exec_prefix=${prefix}
 datarootdir= datarootdir@
-modesdir= datadir@/xml2po
+modesdir= pythondir@/xml2po
 
 Name: xml2po
 Description: Tool for translating XML documents



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