On Sep 13, 2006, at 8:06 AM, Gabor Szabo wrote:
On 9/13/06, Thomas Klausner <[EMAIL PROTECTED]> wrote:
Maybe it would be reasonable to also check for a POD-Heading named
LICENSE, but that's definitly more error-prone.
Maybe this metric should even check if there's a license in META.yml
AND a pod heading namen LICENSE, so that humans and tools can
figure the
license out...
It should also check if the license field in META.yml is one of the
'approved' licenses, I guess this would be the list of words that
can be
used in Module::Build.
It should also check if the license in META.yml and in the docs match.
the problem of course is that this is very difficult to do correctly.
If you want a more general approach to extracting the license
information, consider my Module::License::Report package. It uses a
bunch of heuristics to search README, meta.yml, Build.PL,
Makefile.PL, LICENSE/COPYING/COPYRIGHT, dslip, etc. It requires
CPANPLUS, so it might not be directly suitable for CPANTS, but there
is some stuff in there that could help.
Chris
--
Chris Dolan, Software Developer, Clotho Advanced Media Inc.
608-294-7900, fax 294-7025, 1435 E Main St, Madison WI 53703
vCard: http://www.chrisdolan.net/ChrisDolan.vcf
Clotho Advanced Media, Inc. - Creators of MediaLandscape Software
(http://www.media-landscape.com/) and partners in the revolutionary
Croquet project (http://www.opencroquet.org/)