On Mon, Apr 4, 2011 at 3:55 PM, Simon Ruderich <si...@ruderich.org> 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? «./Build --install_base foo» or «./Build install --install_base foo»? Or both? > Hm, looks really complicated for such a simple task :-/ I agree. I think adding a helper function for this may be a good idea. > Yeah, at the moment I rewrite the files to point to the right > place. My current solution feels really like a hack: It has the issue that the install_destination may not be known at build time. The stages are rather independent. In theory it may even be installed to multiple locations. > Is there a simple way for text replacements like this in > Module::Build (or maybe a better way to do it)? One known problem > with my solution is that a --prefix/--install_base change doesn't > case an update to the file, so it points to the wrong path. No there isn't (nor should there be IMO, it has enough cruft as it is). > I had a look at it, but I want a path like /usr/share/locale, and > it gives me something like /usr/share/perl/5.10.1/auto/<package-name>. Fair enough. Leon