[Module-build-general] Re: META.yaml in Module-Build dist
Status: Beta
Brought to you by:
kwilliams
From: Graham B. <gb...@po...> - 2002-08-14 10:47:51
|
After sending this I started to compare with what MM does. With MM you pass NAME and VERSION or VERSION_FROM. Where NAME is a module name. You can optionally pass DISTNAME and DISTNAME defaults to NAME =~ s/::/-/g So maybe all that sneeded is for another method + yaml entry for distname. Also read your docs. The autosplit call. Why do you need it ? MM does a scan of each .pm for /^use AutoSplit/ to determine which need splitting. Graham. On Wed, Aug 14, 2002 at 10:30:26AM +1000, Ken Williams wrote: > Hi Graham, > > You're right, I'll change the name to the distribution name. > Regarding the version, it should be settable in the Build.PL if > it doesn't come from a module, just like in MakeMaker. Is there > something that needs fixing there? Perhaps the 'module_name', > 'module_version', and 'module_version_from' parameters are > misnamed in the new() method, since they (should) really refer > to the distribution, not a module. Is this what you mean? > > Thanks for the suggestions. > > -Ken > > On Wednesday, August 14, 2002, at 12:44 AM, Graham Barr wrote: > > > Ken, > > > > I am looking forward to having a meta file in distributions so > > that search can start using it. However I was reading the fail > > in the Module-Build distribution. It contains the line > > > > name: Module::Build > > > > I would suggest that this is wrong. A distribution is not one module > > and the meta file should be about the distribution. IMO that line > > should be > > > > name: Module-Build > > > > consider distributions like libnet, libwww-perl or any other > > distribution that contains many modules. > > > > The same goes for the version. In these distribution that > > have many modules, the version of the distribution is > > not always extracted from one of the modules. > > > > Graham. > |