Click here to get back home

List of sample Build::Module Build.PL

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
List of sample Build::Module Build.PL bumrecordingstudios 05-07-2007
Posted by bumrecordingstudios on May 7, 2007, 6:49 pm
Please log in for more thread options


Hi,

I'm using Module::Build to create a install program for a Perl tool
which has a .pm, .cgi and folder of .tmpl files.

So far I've success with getting the .pm and .cgi files to install,
and I've got the template folder to copy to blib but I've had no
success with getting that template folder (using dat_files) to copy to
the correct path after.

I feel I'm fairly close but missing one minor thing. I didn't write a
specific function, related to the dat files, as the files need no
processing, only to be copied to a live folder.

I'm having a bit of trouble finding examples for this; is there a list
of CPAN modules that makes use of Module::Build so that I could take a
look at the Build.PL in hopes of getting a better grasp on how non-
standard files are installed with the module?

Thanks!
Drew Krakowski


Posted by Sisyphus on May 7, 2007, 10:35 pm
Please log in for more thread options



.
.
>
> I feel I'm fairly close but missing one minor thing. I didn't write a
> specific function, related to the dat files, as the files need no
> processing, only to be copied to a live folder.
>

See the section "Adding new file types to the build process" in 'perldoc
Module::Build::Cookbook' - it might help (though I'm not sure what you mean
by a "live folder").

Cheers,
Rob


Posted by bumrecordingstudios on May 8, 2007, 11:54 am
Please log in for more thread options


Hi Rob, thanks for the reply.

'live' folder just means the path in /mnt/net or /usr/local... (can't
recall which), which is where the templates get written after they are
temporarily copied into /blib (which incidentally they are copied in
the correct structure).

I've gone through the cookbook, and done those required tasks, I've
made the dat_files, and then used add_build_element. So I assume I'm
just missing something that forces the module to copy the template
files from /blib to the final location.

Cheers!
Drew

> > I feel I'm fairly close but missing one minor thing. I didn't write a
> > specific function, related to the dat files, as the files need no
> > processing, only to be copied to a live folder.
>
> See the section "Adding new file types to the build process" in 'perldoc
> Module::Build::Cookbook' - it might help (though I'm not sure what you mean
> by a "live folder").



Posted by Sisyphus on May 8, 2007, 8:55 pm
Please log in for more thread options



> Hi Rob, thanks for the reply.
>
> 'live' folder just means the path in /mnt/net or /usr/local... (can't
> recall which), which is where the templates get written after they are
> temporarily copied into /blib (which incidentally they are copied in
> the correct structure).
>
> I've gone through the cookbook, and done those required tasks, I've
> made the dat_files, and then used add_build_element. So I assume I'm
> just missing something that forces the module to copy the template
> files from /blib to the final location.
>

The section I referred to assumes that your dat files are going into perl's
lib directory. If they're destined for a different location then that's
covered in the "Adding new elements to the install process" section. Still
.... I guess you've been through that one, too.

If you're satisifed that the cookbook is not covering the process correctly,
then you could submit a bug report to
http://rt.cpan.org/Public/Dist/Display.html?Name=Module-Build .

I see there's a Module::Build mailing list (
http://lists.cpan.org/showlist.cgi?name=module-build-general ) - perhaps
there's some good help available there.

Sorry - beyond that I can't really help. ( I avoid Module::Build wherever
possible.)

Cheers,
Rob


Posted by bumrecordingstudios on May 10, 2007, 2:16 pm
Please log in for more thread options


ah well, thanks for your help anyway.

time to migrate to a different list.

Cheers!
Drew


Similar ThreadsPosted
Win32:Printer Windows x86 build with FreeImage.dll support build issues May 29, 2008, 2:58 pm
Help with Module::Build June 19, 2006, 10:50 am
Using Module::Build to XS December 18, 2007, 4:50 pm
DBD-Pg for Perl 5.8.4 Build 810 December 11, 2004, 1:05 pm
Perl/Tk build fails on HP-UX February 27, 2006, 4:58 pm
Filesys::SmbClient Build Errors July 14, 2006, 1:36 pm
HTML-Parser-3.56 build problem February 6, 2007, 4:32 am
Re: Best Practice - Modules to build a web application March 17, 2007, 10:10 am
XSUB example in perlxstut fails to build on Win32 June 9, 2005, 11:40 pm
XML::Sax::Writer build error (long data) August 2, 2005, 6:54 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap