logo       

Re: META.yml, MakeMaker and the license field: msg#00016

Subject: Re: META.yml, MakeMaker and the license field
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.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe