Commit 4828f7f1 authored by Ansgar's avatar Ansgar

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

parent 2237eaa1
Revision history for Software-License Revision history for Software-License
0.101370 2010-05-17 19:07:27 America/New_York
add the meta2_name method for META.json files in schema v2
0.016 2010-05-01 0.016 2010-05-01
added the None and CC0_1_0 licenses for the far ends of the spectrum added the None and CC0_1_0 licenses for the far ends of the spectrum
(thanks to Brian Phillips for None) (thanks to Brian Phillips for None)
......
This diff is collapsed.
Changes Changes
inc/Module/Install.pm LICENSE
inc/Module/Install/AutoManifest.pm MANIFEST
inc/Module/Install/Base.pm META.json
inc/Module/Install/Can.pm META.yml
inc/Module/Install/ExtraTests.pm Makefile.PL
inc/Module/Install/Fetch.pm README
inc/Module/Install/Makefile.pm dist.ini
inc/Module/Install/Metadata.pm
inc/Module/Install/Win32.pm
inc/Module/Install/WriteAll.pm
lib/Software/License.pm lib/Software/License.pm
lib/Software/License/AGPL_3.pm lib/Software/License/AGPL_3.pm
lib/Software/License/Apache_1_1.pm lib/Software/License/Apache_1_1.pm
...@@ -35,15 +32,9 @@ lib/Software/License/SSLeay.pm ...@@ -35,15 +32,9 @@ lib/Software/License/SSLeay.pm
lib/Software/License/Sun.pm lib/Software/License/Sun.pm
lib/Software/License/Zlib.pm lib/Software/License/Zlib.pm
lib/Software/LicenseUtils.pm lib/Software/LicenseUtils.pm
LICENSE
Makefile.PL
MANIFEST This list of files
META.yml
README
t/basic.t t/basic.t
t/bsd-url.t t/bsd-url.t
t/meta-names.t t/meta-names.t
t/release-pod-syntax.t
t/round-trip.t t/round-trip.t
t/utils.t t/utils.t
xt/release/pod-coverage.t \ No newline at end of file
xt/release/pod.t
{
"abstract" : "packages that provide templated software licenses",
"author" : [
"Ricardo Signes <rjbs@cpan.org>"
],
"build_requires" : {
"Test::More" : "0.88"
},
"configure_requires" : {
"ExtUtils::MakeMaker" : "6.31"
},
"generated_by" : "Dist::Zilla version 2.101310",
"license" : "perl",
"meta-spec" : {
"url" : "http://module-build.sourceforge.net/META-spec-v1.4.html",
"version" : 1.4
},
"name" : "Software-License",
"recommends" : {},
"requires" : {
"Data::Section" : "0",
"Sub::Install" : "0",
"Text::Template" : "0",
"perl" : "5.006"
},
"resources" : {
"repository" : "git://git.codesimply.com/Software-License.git"
},
"version" : "0.101370",
"x_Dist_Zilla" : {
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@RJBS/@Basic/GatherDir",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@RJBS/@Basic/PruneCruft",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@RJBS/@Basic/ManifestSkip",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@RJBS/@Basic/MetaYAML",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@RJBS/@Basic/License",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@RJBS/@Basic/Readme",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@RJBS/@Basic/ExtraTests",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@RJBS/@Basic/ExecDir",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@RJBS/@Basic/ShareDir",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
"name" : "@RJBS/@Basic/MakeMaker",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@RJBS/@Basic/Manifest",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@RJBS/@Basic/TestRelease",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@RJBS/@Basic/ConfirmRelease",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@RJBS/@Basic/UploadToCPAN",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereq",
"name" : "@RJBS/AutoPrereq",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::AutoVersion",
"name" : "@RJBS/AutoVersion",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@RJBS/PkgVersion",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@RJBS/MetaConfig",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@RJBS/MetaJSON",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@RJBS/NextRelease",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@RJBS/PodSyntaxTests",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@RJBS/Repository",
"version" : "0.12"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
"name" : "@RJBS/PodWeaver",
"version" : "3.100710"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
"name" : "@RJBS/@Git/Check",
"version" : "1.101330"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
"name" : "@RJBS/@Git/Commit",
"version" : "1.101330"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
"name" : "@RJBS/@Git/Tag",
"version" : "1.101330"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
"name" : "@RJBS/@Git/Push",
"version" : "1.101330"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
"version" : "2.101310"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
"version" : "2.101310"
}
],
"zilla" : {
"class" : "Dist::Zilla",
"config" : {
"is_trial" : 0
},
"version" : "2.101310"
}
}
}
...@@ -3,28 +3,152 @@ abstract: 'packages that provide templated software licenses' ...@@ -3,28 +3,152 @@ abstract: 'packages that provide templated software licenses'
author: author:
- 'Ricardo Signes <rjbs@cpan.org>' - 'Ricardo Signes <rjbs@cpan.org>'
build_requires: build_requires:
ExtUtils::MakeMaker: 6.42
Test::More: 0.88 Test::More: 0.88
configure_requires: configure_requires:
ExtUtils::MakeMaker: 6.42 ExtUtils::MakeMaker: 6.31
distribution_type: module generated_by: 'Dist::Zilla version 2.101310'
generated_by: 'Module::Install version 0.95'
license: perl license: perl
meta-spec: meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4 version: 1.4
name: Software-License name: Software-License
no_index: recommends: {}
directory:
- inc
- t
- xt
requires: requires:
Data::Section: 0.000 Data::Section: 0
Sub::Install: 0.000 Sub::Install: 0
Text::Template: 0.000 Text::Template: 0
perl: 5.6.0 perl: 5.006
resources: resources:
license: http://dev.perl.org/licenses/ repository: git://git.codesimply.com/Software-License.git
repository: http://github.com/rjbs/software-license version: 0.101370
version: 0.016 x_Dist_Zilla:
plugins:
-
class: Dist::Zilla::Plugin::GatherDir
name: '@RJBS/@Basic/GatherDir'
version: 2.101310
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@RJBS/@Basic/PruneCruft'
version: 2.101310
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@RJBS/@Basic/ManifestSkip'
version: 2.101310
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@RJBS/@Basic/MetaYAML'
version: 2.101310
-
class: Dist::Zilla::Plugin::License
name: '@RJBS/@Basic/License'
version: 2.101310
-
class: Dist::Zilla::Plugin::Readme
name: '@RJBS/@Basic/Readme'
version: 2.101310
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@RJBS/@Basic/ExtraTests'
version: 2.101310
-
class: Dist::Zilla::Plugin::ExecDir
name: '@RJBS/@Basic/ExecDir'
version: 2.101310
-
class: Dist::Zilla::Plugin::ShareDir
name: '@RJBS/@Basic/ShareDir'
version: 2.101310
-
class: Dist::Zilla::Plugin::MakeMaker
name: '@RJBS/@Basic/MakeMaker'
version: 2.101310
-
class: Dist::Zilla::Plugin::Manifest
name: '@RJBS/@Basic/Manifest'
version: 2.101310
-
class: Dist::Zilla::Plugin::TestRelease
name: '@RJBS/@Basic/TestRelease'
version: 2.101310
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@RJBS/@Basic/ConfirmRelease'
version: 2.101310
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@RJBS/@Basic/UploadToCPAN'
version: 2.101310
-
class: Dist::Zilla::Plugin::AutoPrereq
name: '@RJBS/AutoPrereq'
version: 2.101310
-
class: Dist::Zilla::Plugin::AutoVersion
name: '@RJBS/AutoVersion'
version: 2.101310
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@RJBS/PkgVersion'
version: 2.101310
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@RJBS/MetaConfig'
version: 2.101310
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@RJBS/MetaJSON'
version: 2.101310
-
class: Dist::Zilla::Plugin::NextRelease
name: '@RJBS/NextRelease'
version: 2.101310
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@RJBS/PodSyntaxTests'
version: 2.101310
-
class: Dist::Zilla::Plugin::Repository
name: '@RJBS/Repository'
version: 0.12
-
class: Dist::Zilla::Plugin::PodWeaver
name: '@RJBS/PodWeaver'
version: 3.100710
-
class: Dist::Zilla::Plugin::Git::Check
name: '@RJBS/@Git/Check'
version: 1.101330
-
class: Dist::Zilla::Plugin::Git::Commit
name: '@RJBS/@Git/Commit'
version: 1.101330
-
class: Dist::Zilla::Plugin::Git::Tag
name: '@RJBS/@Git/Tag'
version: 1.101330
-
class: Dist::Zilla::Plugin::Git::Push
name: '@RJBS/@Git/Push'
version: 1.101330
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
version: 2.101310
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
version: 2.101310
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
version: 2.101310
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
version: 2.101310
zilla:
class: Dist::Zilla
config:
is_trial: 0
version: 2.101310
use strict; use strict;
use warnings; use warnings;
use inc::Module::Install; BEGIN { require 5.006; }
use ExtUtils::MakeMaker 6.31;
my %WriteMakefileArgs = (
'ABSTRACT' => 'packages that provide templated software licenses',
'AUTHOR' => 'Ricardo Signes <rjbs@cpan.org>',
'BUILD_REQUIRES' => {
'Test::More' => '0.88'
},
'CONFIGURE_REQUIRES' => {
'ExtUtils::MakeMaker' => '6.31'
},
'DISTNAME' => 'Software-License',
'EXE_FILES' => [],
'LICENSE' => 'perl',
'NAME' => 'Software::License',
'PREREQ_PM' => {
'Data::Section' => '0',
'Sub::Install' => '0',
'Text::Template' => '0'
},
'VERSION' => '0.101370',
'test' => {
'TESTS' => 't/*.t'
}
);
name ('Software-License'); unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
author ('Ricardo Signes <rjbs@cpan.org>'); my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
license ('perl'); my $pp = $WriteMakefileArgs{PREREQ_PM};
all_from ('lib/Software/License.pm'); for my $mod ( keys %$br ) {
if ( exists $pp->{$mod} ) {
$pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
}
else {
$pp->{$mod} = $br->{$mod};
}
}
}
requires('Data::Section' => '0.000'); # minimum unknown delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
requires('Sub::Install' => '0.000'); # minimum unknown unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
requires('Text::Template' => '0.000'); # minimum unknown
build_requires('Test::More' => '0.88'); # done_testing! WriteMakefile(%WriteMakefileArgs);
extra_tests;
repository('http://github.com/rjbs/software-license');
auto_manifest;
WriteAll();
Software-License contains templates for common open source software licenses.
This archive contains the distribution Software-License,
version 0.101370:
packages that provide templated software licenses
This software is copyright (c) 2010 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
name = Software-License
author = Ricardo Signes <rjbs@cpan.org>
license = Perl_5
copyright_holder = Ricardo Signes
[@RJBS]
This diff is collapsed.
#line 1
use strict;
use warnings;
package Module::Install::AutoManifest;
use Module::Install::Base;
BEGIN {
our $VERSION = '0.003';
our $ISCORE = 1;
our @ISA = qw(Module::Install::Base);
}
sub auto_manifest {
my ($self) = @_;
return unless $Module::Install::AUTHOR;
die "auto_manifest requested, but no MANIFEST.SKIP exists\n"
unless -e "MANIFEST.SKIP";
if (-e "MANIFEST") {
unlink('MANIFEST') or die "Can't remove MANIFEST: $!";
}
$self->postamble(<<"END");
create_distdir: manifest_clean manifest
distclean :: manifest_clean
manifest_clean:
\t\$(RM_F) MANIFEST
END
}
1;
__END__
#line 48
#line 131
1; # End of Module::Install::AutoManifest
#line 1
package Module::Install::Base;
use strict 'vars';
use vars qw{$VERSION};
BEGIN {
$VERSION = '0.95';
}
# Suspend handler for "redefined" warnings
BEGIN {
my $w = $SIG{__WARN__};
$SIG{__WARN__} = sub { $w };
}
#line 42
sub new {
my $class = shift;
unless ( defined &{"${class}::call"} ) {
*{"${class}::call"} = sub { shift->_top->call(@_) };
}
unless ( defined &{"${class}::load"} ) {
*{"${class}::load"} = sub { shift->_top->load(@_) };
}
bless { @_ }, $class;
}
#line 61
sub AUTOLOAD {
local $@;
my $func = eval { shift->_top->autoload } or return;
goto &$func;
}
#line 75
sub _top {
$_[0]->{_top};
}
#line 90
sub admin {
$_[0]->_top->{admin}
or
Module::Install::Base::FakeAdmin->new;
}
#line 106
sub is_admin {
$_[0]->admin->VERSION;
}
sub DESTROY {}
package Module::Install::Base::FakeAdmin;
my $fake;
sub new {
$fake ||= bless(\@_, $_[0]);
}
sub AUTOLOAD {}
sub DESTROY {}
# Restore warning handler
BEGIN {
$SIG{__WARN__} = $SIG{__WARN__}->();
}
1;
#line 154
#line 1
package Module::Install::Can;
use strict;
use Config ();
use File::Spec ();
use ExtUtils::MakeMaker ();
use Module::Install::Base ();
use vars qw{$VERSION @ISA $ISCORE};
BEGIN {
$VERSION = '0.95';
@ISA = 'Module::Install::Base';
$ISCORE = 1;
}
# check if we can load some module
### Upgrade this to not have to load the module if possible
sub can_use {
my ($self, $mod, $ver) = @_;
$mod =~ s{::|\\}{/}g;
$mod .= '.pm' unless $mod =~ /\.pm$/i;
my $pkg = $mod;
$pkg =~ s{/}{::}g;
$pkg =~ s{\.pm$}{}i;
local $@;
eval { require $mod; $pkg->VERSION($ver || 0); 1 };
}
# check if we can run some command
sub can_run {
my ($self, $cmd) = @_;
my $_cmd = $cmd;
return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd));
for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') {
next if $dir eq '';
my $abs = File::Spec->catfile($dir, $_[1]);
return $abs if (-x $abs or $abs = MM->maybe_command($abs));
}
return;
}
# can we locate a (the) C compiler
sub can_cc {
my $self = shift;
my @chunks = split(/ /, $Config::Config{cc}) or return;
# $Config{cc} may contain args; try to find out the program part
while (@chunks) {
return $self->can_run("@chunks") || (pop(@chunks), next);
}
return;
}
# Fix Cygwin bug on maybe_command();
if ( $^O eq 'cygwin' ) {
require ExtUtils::MM_Cygwin;
require ExtUtils::MM_Win32;
if ( ! defined(&ExtUtils::MM_Cygwin::maybe_command) ) {
*ExtUtils::MM_Cygwin::maybe_command = sub {
my ($self, $file) = @_;
if ($file =~ m{^/cygdrive/}i and ExtUtils::MM_Win32->can('maybe_command')) {
ExtUtils::MM_Win32->maybe_command($file);
} else {
ExtUtils::MM_Unix->maybe_command($file);
}
}
}
}
1;
__END__
#line 156
#line 1
use strict;
use warnings;
use 5.006;
package Module::Install::ExtraTests;
use Module::Install::Base;