logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[Module::Build] Re: Module::Build question: msg#00068

Subject: [Module::Build] Re: Module::Build question
Hi Nick,

Sounds like there are two issues here. First, to figure out where the 'lib' items will be installed, you can use the install_destination() method, like so:

 $target_dir = $build->install_destination('lib');

You can then store this value in config_data() for later use.

I've just noticed that the install_destination() method is undocumented - I'm adding docs for it now.

As for how to get the PNGs installed in some other location, that should also be doable by defining another install_type. The cookbook should have some pointers, see:

http://search.cpan.org/~kwilliams/Module-Build-0.27_03/lib/Module/ Build/Cookbook.pm

 -Ken


On Oct 15, 2005, at 9:41 AM, Nick Sutterer wrote:

hi ken,

i'm currently preparing the release of a small IDE (for perl) and found
Module::Build, which is waaay better and easier than MakeMaker. ;-)
i need to install a directory with png-files for the IDE. i simply put this (inside a subclass of Module::Build) in the lib-folder. this is not good behaviour, i know they should be somewhere in /usr/share/ide-files or so, but
i couldn't find a way to accomplish this. however - how can i get the
absolute path for "lib/" (or other dirs) which Build has decided? i need that to configure this path with config_data(), so that the IDE knows where its
png-files are.
can you see my problem? would be great if you can give me some help, as i'm
totally unexperienced with Build, make, and releasing.


cheers,


        nick



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl


<Prev in Thread] Current Thread [Next in Thread>