Re: Install custom files

Simon Ruderich <[email protected]> Mon, 4 Apr 2011 16:08:27 +0200
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
--=_zucker.schokokeks.org-1256-1301926108-0001-2
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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.
>> =C2=ABapt-get install libmodule-build-perl=C2=BB 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';
>>   =E2=80=A6
>>   $build->add_build_element('locale');
>>   $build->install_base_relpaths(locale =3D> catdir('share', 'locale'));
>>   $build->prefix_relpaths($_, locale =3D> 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
--=20
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

--=_zucker.schokokeks.org-1256-1301926108-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----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-----

--=_zucker.schokokeks.org-1256-1301926108-0001-2--