* On Fri, Apr 25 2008, Sébastien Aperghis-Tramoni wrote:
> Jerome Quelin wrote:
>
>> hi there,
>>
>> i'm writing a tk app that i'm shipping as a cpan dist. this app needs
>> some extra resource files (icons, etc) i'd like to know what's the best
>> method to ship extra data files in a dist.
>>
>> where to put them in the dist tar file:
>>  - create a data subdir under lib/Foo/Bar (assuming it's dist Foo::Bar).
>>    in that case, do they get installed automatically, even if not pm
>>    files?
>>  - create a data subdir at the top level, and use sthg like this in
>>    Makefile.PL:
>>     PM => {
>>         'data/foo.data'  => '$(INST_LIB)/Foo/Bar/foo.data',
>>         ...
>>     },
>>  - anything else?
>
> You can also define a MY::postamble() for this task:
>   » http://use.perl.org/~Maddingue/journal/34682
>
> Of course, Michael Schwern doesn't like such extensions for obvious
> reasons ;-)

There is also File::ShareDir which completely automates both installing
extra files and then finding them once installed.

(manually scanning @INC)--

Regards,
Jonathan Rockway

-- 
print just => another => perl => hacker => if $,=$"

Reply via email to