Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re^2: Module::Build's pm_files in ExtUtils::MakeMaker?

by LTjake (Prior)
on Sep 20, 2005 at 17:39 UTC ( #493543=note: print w/replies, xml ) Need Help??

in reply to Re: Module::Build's pm_files in ExtUtils::MakeMaker?
in thread Module::Build's pm_files in ExtUtils::MakeMaker?

Hi! Thanks for your reply.

With your suggestion, i can now do the following which allows me to get rid of the pm_files section.

my $build = Module::Build->new( # ... tmpl_files => { 'etc/photos_index.tmpl' => 'lib/CGI/Application/PhotoGallery/ +photos_index.tmpl', 'etc/photos_single.tmpl' => 'lib/CGI/Application/PhotoGallery +/photos_single.tmpl', } ); $build->add_build_element( 'tmpl' ); $build->create_build_script;

So, Thanks! =)

However, the auto-generated Makefile.PL still has no idea about those templates and will not install them as needed.

"Go up to the next female stranger you see and tell her that her "body is a wonderland."
My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
" (src)

Replies are listed 'Best First'.
Re^3: Module::Build's pm_files in ExtUtils::MakeMaker?
by xdg (Monsignor) on Sep 20, 2005 at 19:40 UTC

    I'd bring it up on the Module::Build mailing list. It looks like it might not be too hard to patch Module::Build::Compat to write a PMLIBDIRS argument to the Makefile.PL -- assuming that's the right way to do it... I don't know ExtUtils::MakeMaker well enough..


    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Re^3: Module::Build's pm_files in ExtUtils::MakeMaker?
by jhourcle (Prior) on Jan 27, 2012 at 22:19 UTC

    Just in case anyone stumbles across this older post ... it's possible that the issue has been fixed, but there's (currently) nothing to stop you from using a different build element whose files are also in lib, where MakeMaker would find them:

    tmpl_files => { map { $_ => $_ } glob( 'lib/CGI/Application/PhotoGallery/*.tmpl' +) },

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493543]
[Corion]: marto: I'm not sure on how to treat mail archives. I think you could either set an auto-deletion timespan or an auto-anonymisation timespan if you wanted to do it right.
[Corion]: For PM, I think we'll create a user "gdpr", who gets assigned the nodes of users who want to give up their user status here.

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2018-05-22 08:28 GMT
Find Nodes?
    Voting Booth?