Re: Install custom files

2011-05-15 Thread Leon Timmermans
On Sun, May 15, 2011 at 4:54 PM, Simon Ruderich wrote: > Sorry for the late reply, I completely forgot the mail. > > How can I do this? Once I perform the substitution (like LIBDIR > -> /usr/share/...) I can't perform it again for the next prefix. > Is there a simple way to handle this? Why insis

Re: Install custom files

2011-05-15 Thread Simon Ruderich
On Tue, Apr 05, 2011 at 12:44:28PM +0200, Leon Timmermans wrote: >> Good point. But how can I handle the problem? Is there no >> solution which works in all cases? > > The obvious solution would be to move it from build time to > (pre-)install time. Sorry for the late reply, I completely forgot th

Re: Install custom files

2011-04-05 Thread Leon Timmermans
On Mon, Apr 4, 2011 at 9:38 PM, Simon Ruderich wrote: > Sorry. I tried the following. > > Works fine: > >    perl Build.PL --install_base ~/test >    ./Build >    ./Build install > > Works, but doesn't correctly replace the paths with my hacky > solution. Exactly the problem you mentioned below. >

Re: Install custom files

2011-04-04 Thread Simon Ruderich
On Mon, Apr 04, 2011 at 05:12:00PM +0200, Leon Timmermans wrote: > What *exactly* did you try to do? «./Build --install_base foo» or > «./Build install --install_base foo»? Or both? Sorry. I tried the following. Works fine: perl Build.PL --install_base ~/test ./Build ./Build install

Re: Install custom files

2011-04-04 Thread Leon Timmermans
On Mon, Apr 4, 2011 at 3:55 PM, Simon Ruderich wrote: > Yes, I tried --install_base and --prefix, both have the same > problem. It looks like --destdir also doesn't work with ./Build, > just with perl Build.PL. I'm not sure if this is expected or a > bug. What *exactly* did you try to do? «./Buil

Re: Install custom files

2011-04-04 Thread Simon Ruderich
On Mon, Apr 04, 2011 at 03:55:24PM +0200, Simon Ruderich wrote: >>> I'm using Module::Build 0.340201 on Debian Squeeze. > >> You might want to upgrade to a more recent version of Module::Build. >> «apt-get install libmodule-build-perl» should upgrade it to 0.3607. >> CPAN will upgrade it to 0.38. I

Re: Install custom files

2011-04-04 Thread Simon Ruderich
On Fri, Apr 01, 2011 at 09:15:53PM +0200, Leon Timmermans wrote: > On Fri, Apr 1, 2011 at 7:15 PM, Simon Ruderich wrote: >> I'm trying to install custom files to a specific location which >> should be relative to the given prefix/install_base/.. In this >> case int

Re: Install custom files

2011-04-01 Thread Leon Timmermans
On Fri, Apr 1, 2011 at 9:15 PM, Leon Timmermans wrote: >  $build->install_sets($_, 'locale', catdir($build->original_prefix($_)), > 'share', 'locale')) for qw/core vendor site/; Oops, that would be a parenthesis too many: $build->install_sets($_, 'locale', catdir($build->original_prefix($_), 's

Re: Install custom files

2011-04-01 Thread Leon Timmermans
On Fri, Apr 1, 2011 at 7:15 PM, Simon Ruderich wrote: > 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/l

Re: Install custom files

2011-04-01 Thread Simon Ruderich
On Fri, Apr 01, 2011 at 07:15:45PM +0200, Simon Ruderich wrote: > sub install_base_path { > my $self = shift; > > if (defined $self->install_base) { > return $self->install_base; > } elsif (defined $self->prefix) { > return $self->prefix; >

Install custom files

2011-04-01 Thread Simon Ruderich
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 S