Permalink
Browse files

meta_yml

  • Loading branch information...
1 parent f1d30e5 commit 823e9542bbada9a7b384cec4d2bbd36155bae50e @rjbs rjbs committed Jun 2, 2008
View
9 lib/Software/License.pm
@@ -120,6 +120,15 @@ sub version {
return join '.', @vparts;
}
+=head2 meta_yml_name
+
+This method returns the string that should be used for this license in the CPAN
+META.yml file, or undef if there is no known string to use.
+
+=cut
+
+sub meta_yml_name { return undef; }
+
sub _fill_in {
my ($self, $which) = @_;
View
1 lib/Software/License/Apache_1_1.pm
@@ -11,6 +11,7 @@ Software::License::Apache_1_1 - The Apache Software License, Version 1.1
sub name { 'The Apache Software License, Version 1.1' }
sub url { 'http://www.apache.org/licenses/LICENSE-1.1' }
+sub meta_yml_name { 'apache' }
1;
__DATA__
View
1 lib/Software/License/Apache_2_0.pm
@@ -11,6 +11,7 @@ Software::License::Apache_2_0 - The Apache License, Version 2.0
sub name { 'The Apache License, Version 2.0, January 2004' }
sub url { 'http://www.apache.org/licenses/LICENSE-2.0.txt' }
+sub meta_yml_name { 'apache' }
1;
__DATA__
View
2 lib/Software/License/Artistic_1_0.pm
@@ -47,6 +47,8 @@ sub name {
return $name;
}
+sub meta_yml_name { 'artistic' }
+
1;
__DATA__
__LICENSE__
View
1 lib/Software/License/BSD.pm
@@ -10,6 +10,7 @@ Software::License::BSD - The (three-clause) BSD License
=cut
sub name { 'The (three-clause) BSD License' }
+sub meta_yml_name { 'bsd' }
1;
__DATA__
View
1 lib/Software/License/GPL_1.pm
@@ -11,6 +11,7 @@ Software::License::GPL_1 - GNU General Public License, Version 1
sub name { 'The GNU General Public License, Version 1, February 1989' }
sub url { 'http://www.gnu.org/licenses/old-licenses/gpl-1.0.txt' }
+sub meta_yml_name { 'gpl' }
1;
__DATA__
View
1 lib/Software/License/GPL_2.pm
@@ -11,6 +11,7 @@ Software::License::GPL_2 - GNU General Public License, Version 2
sub name { 'The GNU General Public License, Version 2, June 1991' }
sub url { 'http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt' }
+sub meta_yml_name { 'gpl' }
1;
__DATA__
View
1 lib/Software/License/GPL_3.pm
@@ -11,6 +11,7 @@ Software::License::GPL_3 - GNU General Public License, Version 3
sub name { 'The GNU General Public License, Version 3, June 2007' }
sub url { 'http://www.gnu.org/licenses/gpl-3.0.txt' }
+sub meta_yml_name { 'gpl' }
1;
__DATA__
View
1 lib/Software/License/LGPL_2_1.pm
@@ -11,6 +11,7 @@ Software::License::LGPL_2_1 - GNU Lesser General Public License, Version 2.1
sub name { 'The GNU Lesser General Public License, Version 2.1, February 1999' }
sub url { 'http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt' }
+sub meta_yml_name { 'lgpl' }
1;
__DATA__
View
1 lib/Software/License/LGPL_3_0.pm
@@ -11,6 +11,7 @@ Software::License::LGPL_3_0 - GNU Lesser General Public License, Version 3
sub name { 'The GNU Lesser General Public License, Version 3, June 2007' }
sub url { 'http://www.gnu.org/licenses/lgpl-3.0.txt' }
+sub meta_yml_name { 'lgpl' }
1;
__DATA__
View
1 lib/Software/License/MIT.pm
@@ -11,6 +11,7 @@ Software::License::MIT - The MIT (aka X11) License
sub name { 'The MIT (X11) License' }
sub url { 'http://www.opensource.org/licenses/mit-license.php' }
+sub meta_yml_name { 'mit' }
1;
__DATA__
View
1 lib/Software/License/Mozilla_1_0.pm
@@ -10,6 +10,7 @@ Software::License::Mozilla_1_0 - Mozilla Public License 1.0
=cut
sub name { 'The Mozilla Public License 1.0' }
+sub meta_yml_name { 'mozilla' }
1;
__DATA__
View
1 lib/Software/License/Mozilla_1_1.pm
@@ -11,6 +11,7 @@ Software::License::Mozilla_1_1 - The Mozilla Public License 1.1
sub name { 'The Mozilla Public License 1.1' }
sub url { 'http://www.mozilla.org/MPL/MPL-1.1.txt' }
+sub meta_yml_name { 'mozilla' }
1;
__DATA__
View
1 lib/Software/License/Perl_5.pm
@@ -14,6 +14,7 @@ require Software::License::Artistic_1_0;
sub name { 'the same terms as perl 5 itself' }
sub url { 'http://dev.perl.org/licenses/' }
+sub meta_yml_name { 'perl' }
sub _gpl {
my ($self) = @_;

0 comments on commit 823e954

Please sign in to comment.