Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Syntactic Confectionery Delight
 
PerlMonks  

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)


Comment on Re^2: Module::Build's pm_files in ExtUtils::MakeMaker?
Select or Download Code
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..

    -xdg

    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://493543]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (16)
As of 2014-04-16 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (434 votes), past polls