R. Geoffrey Avery on Fri, 10 Jan 2003 00:34:17 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: CPAN submission


At 03:04 PM 1/8/2003, you wrote:

On Wed, Jan 08, 2003 at 02:38:51PM -0500, spoulson3@comcast.net wrote:
> - How do I compile a CPAN-friendly bundle if my project has multiple
> modules?  I've read the section in the Perl Cookbook and it really only
> covers building single-module distributions.

I can't help you with this, as I haven't (yet) written modules for
distribution that consisted of multiple library files, but a quick
scan of the ExtUtils::MakeMaker docs seems to indicate that it "just
finds them" in your source directory and "just installs them" where
they need to go, just as if you only had one module file.

The one complication is that if you use h2xs to create the wrappers you would have Sample::Module in the same directory with the MANIFEST and other files as Module.pm. To have multiple modules in the distribution if is cleaner to have it as lib/Sample/Module.pm so all the pm files can live in lib with and use their full name. Then you list them all in MANIFEST so make can "just find them". And in Makefile.PL you usually tell it to collect the version from the primary module.


The last release of ExtUtils::ModuleMaker was during YAPC::Europe. My presentation that went with it can be found at http://www.platypiventures.com/perl/present/yapcNA2002/yapcEU2002/001.html.

- Geoff

-
**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**