Re: [Module-build-general] Article on perl.com
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2003-02-16 03:41:15
|
On Thursday, February 13, 2003, at 12:25 AM, Andreas J. Koenig wrote: > Let's imagine, Module::Build could write an *equivalent* Makefile.PL. > One that could then be used with ExtUtils::MakeMaker (and without > Module::Build). If that were possible (even just for 80% of the > modules out there), that would convince many developers to switch, as > they would just distribute both Build.PL and Makefile.PL (no > duplicated work). Yeah, that's not a half-bad idea. The rub, of course, is that many options to Module::Build->new() might not translate very easily to MakeMaker options. But we could at least take a stab at it and see what happens. Of course, a tool that translates the *other* direction would be really nice too, for getting existing CPAN modules into the M::B world if the user so desires. This would likely involve a lot of voodoo, like perhaps hijacking WriteMakefile() and looking at the options given to the function, and perhaps scanning the Makefile.PL to see whether there's extra stuff in there that might be doing something significant. One good reason to do the EU::MM -> M::B step is that even if the M::B versions of things never made it to CPAN, we could generate META.yml files for those things that we're able to convert, and then generate some kind of dependency mapping for CPAN. -Ken |