Re: Install custom files
[email protected] (Simon Ruderich) Mon, 4 Apr 2011 16:08:27 +0200
| Newsgroups | perl.module.build |
|---|---|
| Message-ID | <[email protected]> |
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. It might solve your problems.
>
> Retried with 0.38, same problem.
Sorry, wrong version. I retried it with 0.36.
>> The general solution looks something like this:
>>
>> use File::Spec 'catdir';
>> …
>> $build->add_build_element('locale');
>> $build->install_base_relpaths(locale => catdir('share', 'locale'));
>> $build->prefix_relpaths($_, locale => catdir('share', 'locale')) for
>> qw/core vendor site/;
>> $build->install_sets($_, 'locale',
>> catdir($build->original_prefix($_)), 'share', 'locale')) for qw/core
>> vendor site/;
It would be great if this could get added to the cookbook.
Regards,
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJNmdDbAAoJEJL+/bfkTDL5gh0P+QFf9nb0Y68nDyLpiwkEA2Ms D3Ym88M98t+UCqbrAPYsT6ZhoVuSR9QjhW3jTb/GIV9FR9VjDe7bbuwpZf4uhAWf i632alhozID7PJZJEU+Y+p79d56ZK9Lu0+eVzNshdfZwPz2GXdzGcc9UyZnI/usP w3EJgfbyYmXnVNhmSBjdD1pRWPmAPxk2HC/V5ee2yLfzLXRb7HBBBx7dy1RPGZh4 X3C/PDKPWyGSr+VkCts5iNmUqbAcPDvxpc3OI3AcFle90GHDw9NuZTvrEmzedNdu GBMIqaLpZJlyi/DuEVsCjPgbDYg/YIbXxjvzzmr3R0UvyjE7KvQozr0ys5TXDJg1 xMZtG6DiS6M0Oo/xQ9eyfmYPuXmFaHrPRuYa81Qz2clSpoQHD5kjKgFpEiQTtMKQ aGFcwqEI/jon4F4OEzFUHol/wBSCdf2JfYg+sQoCVF0BjLRNO3J8soEsgJRKSLGr KZla0JCx9vYOniMHbqumwxCywrOMJaJFrAnTGtQcbj5ws9K0DkKg6ZHZa3PECuLc iuIqbcjTnNaI2TJ2xX9BBukk2ehQbdKs0qx0rHdoM6QaX6WbVhpa7gIPY5eMEEBe vLf1ZjuRV+6g3uRpjf74tMZpEpH+QL6eAJtRU5thTitxxQLdcQ2j2Abq14dDQykr iLjoJssKopdj7xx9CxL/ =ivGf -----END PGP SIGNATURE-----