Tels wrote:

I already wondered many times why the license for most of my modules is not
set/shown at search.cpan.org, even though modules like BigInt have simple the
perl license (being part of the core etc).

Seems like setting a "license: perl" line in META.yml would fix this. However,
everytime I run "make dist", the META.yml file is overwritten again, with the
license line missing. And it seems that MakeMaker doesn't have a "LICENSE =>"
setting.

Of course, I can set "NO_META" to true, and modify the META.yml file manually,
but that looses the handy property that META.yml is autogenerated with the
correct dependencies etc. (e.g. everytime I change Makefile.PL, I have to
remember to change META.yml, which I surely will forget from time to
time. Ugh.)

So, is it possible to have MakeMaker to generate the license line
automagically, or I am something missing?

Current versions of MM don't have an option for setting the license. I think I sent a patch a while back for the next release. You can find an example of how you can override MM's rule for creating META.yml in: <http://search.cpan.org/src/MHX/Convert-Binary-C-0.56/Makefile.PL>


Search for 'sub MY::metafile'

Randy.


PS: If you do override the generation of the meta file, it's a good idea to follow Marcus' convention for setting 'generated_by' => 'Your::Module::Name Makefile.PL'. Or if you create it by hand (NO_META), then set 'generated_by' => 'Author Name, by hand'. These conventions make it easy to see who's doing what with META.yml.

Reply via email to