1 Apr 2011 19:15
Install custom files
Simon Ruderich <simon <at> ruderich.org>
2011-04-01 17:15:45 GMT
2011-04-01 17:15:45 GMT
Hi,
I'm trying to install custom files to a specific location which
should be relative to the given prefix/install_base/.. In this
case into share/locale. So e.g. if --prefix=/usr/local then it
should install into /usr/local/share/locale/.
I'm using Module::Build 0.340201 on Debian Squeeze.
I tried the following ($class has a method process_locale_files()
which creates the files in blib/locale, that part works just
fine):
my $build = $class->new(
...
);
$build->add_build_element('locale');
$build->install_base_relpaths(locale => 'locale');
$build->create_build_script;
But no files get installed. After some testing it looks like
$build->install_base_relpaths() doesn't work at all -
$build->install_base_relpaths(lib => 'whatever') does nothing for
me, my .pm files are still installed in the same place.
I could use $build->install_path(locale => '...') but that
requires an absolute path. At the moment I'm using the following
hack to get the real installation path (I'm not sure if that's
even correct all the time):
(Continue reading)
RSS Feed