Commit 99423d54 authored by gregor herrmann's avatar gregor herrmann

[svn-upgrade] Integrating new upstream version, libsoftware-license-perl (0.014)

parent a86f0915
Revision history for Software-License
0.014 2010-03-23
add meta_name to almost all remaining licenses, and add a test
0.013 2010-03-18
add meta_name to Artistic 2 (thanks, Bernardo Rechea)
......
......@@ -40,6 +40,7 @@ META.yml
README
t/basic.t
t/bsd-url.t
t/meta-names.t
t/round-trip.t
t/utils.t
xt/release/pod-coverage.t
......
......@@ -26,4 +26,4 @@ requires:
resources:
license: http://dev.perl.org/licenses/
repository: http://github.com/rjbs/software-license
version: 0.013
version: 0.014
......@@ -9,11 +9,11 @@ Software::License - packages that provide templated software licenses
=head1 VERSION
version 0.013
version 0.014
=cut
our $VERSION = '0.013';
our $VERSION = '0.014';
use Data::Section -setup => { header_re => qr/\A__([^_]+)__\Z/ };
use Sub::Install ();
......
......@@ -12,6 +12,8 @@ Software::License::AGPL_3 - GNU Affero General Public License, Version 3
sub name { 'The GNU Affero General Public License, Version 3, November 2007' }
sub url { 'http://www.gnu.org/licenses/agpl-3.0.txt' }
sub meta_name { 'open_source' }
1;
__DATA__
__LICENSE__
......
......@@ -12,6 +12,8 @@ Software::License::FreeBSD - The FreeBSD License (aka two-clause BSD)
sub name { 'The (two-clause) FreeBSD License' }
sub url { 'http://www.freebsd.org/copyright/freebsd-license.html' }
sub meta_name { 'bsd' }
1;
__DATA__
__LICENSE__
......
......@@ -12,6 +12,8 @@ Software::License::QPL_1_0 - The Q Public License, Version 1.0
sub name { 'The Q Public License, Version 1.0' }
sub url { 'http://trolltech.com/products/qt/licenses/licensing/qpl' }
sub meta_name { 'open_source' }
1;
__DATA__
__LICENSE__
......
......@@ -12,6 +12,8 @@ Software::License::Zlib - The zlib License
sub name { 'The zlib License' }
sub url { 'http://www.zlib.net/zlib_license.html' }
sub meta_name { 'open_source' }
1;
__DATA__
__LICENSE__
......
#!perl
use strict;
use warnings;
use Test::More 0.88;
my @files = <lib/Software/License/*.pm>;
for my $module (@files) {
# It's retired. Dunno if it's okay to be open_source. Punt!
next if $module =~ /Sun.pm$/;
my $pkg = $module;
$pkg =~ s{^lib/}{};
$pkg =~ s{\.pm$}{};
$pkg =~ s{/}{::}g;
eval "require $pkg; 1";
ok(defined $pkg->meta_name, "$pkg provide meta_name");
}
done_testing;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment