[Po4a-commits] "po4a Build.PL,1.31,1.32 changelog,1.323,1.324"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Thu Mar 13 00:12:08 UTC 2008


Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv11385

Modified Files:
	Build.PL changelog 
Log Message:
Fix the path of the manpages and mo files and a prefix is specified on the command line.


Index: Build.PL
===================================================================
RCS file: /cvsroot/po4a/po4a/Build.PL,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- Build.PL	17 Aug 2007 12:00:44 -0000	1.31
+++ Build.PL	13 Mar 2008 00:12:06 -0000	1.32
@@ -178,9 +178,6 @@
     },
 );
 
-my $base= $Config::Config{man1dir};
-$base =~ s/\/man\/man1//;
-
 my $b = $builder->new
   ( module_name => 'po4a',
       license => 'gpl',
@@ -204,8 +201,17 @@
 	  'scripts/po4aman-display-po'],
       add_to_cleanup => ['t/tmp','messages.mo', 'blib', 'html',
 	  'po/pod/po4a-pod.pot~', 'po4a.log'],
-      install_path => {po => $base.'/locale', man => $base.'/man'},
       dist_abstract => 'Tools for helping translation of documentation',
       dist_author => ['Martin Quinson (mquinson#debian.org)',
 	  'Denis Barbier <barbier at linuxfr.org>']
-  )->create_build_script;
+  );
+
+# Tweak the installation path
+#  Retrieve the prefix (Ther should be a better way)
+my $base= $b->install_map->{"blib/bindoc"};
+$base =~ s/\/man\/man1//;
+$b->install_path(po => $base.'/locale');
+$b->install_path(man => $base.'/man');
+
+$b->create_build_script;
+

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.323
retrieving revision 1.324
diff -u -d -r1.323 -r1.324
--- changelog	10 Mar 2008 19:57:13 -0000	1.323
+++ changelog	13 Mar 2008 00:12:06 -0000	1.324
@@ -1,3 +1,8 @@
+2008-03-13  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* Build.PL: Fix the path of the manpages and mo files and a prefix
+	is specified on the command line.
+
 2008-03-10  Noritada Kobayashi <nori1 at dolphin.c.u-tokyo.ac.jp>
 
 	* lib/Locale/Po4a/Xml.pm: Make sure that all comments at a block




More information about the Po4a-commits mailing list