| 1 | # | ||||||||||||||||||||
| 2 | # This file is part of Software-License-GPL3andArtistic2 | ||||||||||||||||||||
| 3 | # | ||||||||||||||||||||
| 4 | # This software is copyright (c) 2010 by Caleb Cushing. | ||||||||||||||||||||
| 5 | # | ||||||||||||||||||||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||
| 8 | # | ||||||||||||||||||||
| 9 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | package Software::License::GPL3andArtistic2; | ||||||||||||||||||||
| 12 | 1 | ▶ | BEGIN { | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 13 | 1 | $Software::License::GPL3andArtistic2::VERSION = '0.07'; | |||||||||||||||||||
| 14 | } | ||||||||||||||||||||
| 15 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 16 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | 1 | ▶ | use parent 'Software::License'; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 1 | ▶ | use Software::License::GPL_3; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 20 | 1 | ▶ | use Software::License::Artistic_2_0; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | 0 | ▶ | sub name { 'GNU GPLv3 and Artistic 2.0' } | ||||||||||||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 23 | 0 | ▶ | sub url { 'http://www.gnu.org/licenses/gpl-3.0.txt http://www.perlfoundation.org/artistic_license_2_0' } | ||||||||||||||||||
|
Subroutine
url: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 24 | 0 | ▶ | sub meta_name { 'open_source' } | ||||||||||||||||||
|
Subroutine
meta_name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||||||||||||
| 25 | |||||||||||||||||||||
| 26 | 0 | ▶ | sub _gpl { | ||||||||||||||||||
|
Subroutine
_gpl: not called CC=2 SCAR=17.9
| |||||||||||||||||||||
| 27 | 0 | my ($self) = @_; | |||||||||||||||||||
| 28 | 0 | ▶ | return $self->{_gpl} ||= Software::License::GPL_3->new({ | ||||||||||||||||||
|
Condition0%0/3
$self->{"_gpl"} ||= "Software::License::GPL_3"->new({"year", $self->year, "holder", $self->holder})
MC/DC0%0/2
$self->{"_gpl"} ||= "Software::License::GPL_3"->new({"year", $self->year, "holder", $self->holder})
$self->{"_gpl"}
"Software::License::GPL_3"->new({"year", $self->year, "holder", $self->holder})
Truth table0%0/3
A ||= B
A= $self->{"_gpl"}B= "Software::License::GPL_3"->new({"year", $self->year, "holder", $self->holder})
| |||||||||||||||||||||
| 29 | year => $self->year, | ||||||||||||||||||||
| 30 | holder => $self->holder, | ||||||||||||||||||||
| 31 | }); | ||||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 0 | ▶ | sub _tal { | ||||||||||||||||||
|
Subroutine
_tal: not called CC=2 SCAR=17.9
| |||||||||||||||||||||
| 35 | 0 | my ($self) = @_; | |||||||||||||||||||
| 36 | 0 | ▶ | return $self->{_tal} ||= Software::License::Artistic_2_0->new({ | ||||||||||||||||||
|
Condition0%0/3
$self->{"_tal"} ||= "Software::License::Artistic_2_0"->new({"year", $self->year, "holder", $self->holder})
MC/DC0%0/2
$self->{"_tal"} ||= "Software::License::Artistic_2_0"->new({"year", $self->year, "holder", $self->holder})
$self->{"_tal"}
"Software::License::Artistic_2_0"->new({"year", $self->year, "holder", $self->holder})
Truth table0%0/3
A ||= B
A= $self->{"_tal"}B= "Software::License::Artistic_2_0"->new({"year", $self->year, "holder", $self->holder})
| |||||||||||||||||||||
| 37 | year => $self->year, | ||||||||||||||||||||
| 38 | holder => $self->holder, | ||||||||||||||||||||
| 39 | }); | ||||||||||||||||||||
| 40 | } | ||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | 1 | 1; | |||||||||||||||||||
| 43 | # ABSTRACT: GPL 3 and Artistic 2.0 Dual License | ||||||||||||||||||||
| 44 | |||||||||||||||||||||
| 45 | |||||||||||||||||||||
| 46 | |||||||||||||||||||||
| 47 | =pod | ||||||||||||||||||||
| 48 | |||||||||||||||||||||
| 49 | =head1 NAME | ||||||||||||||||||||
| 50 | |||||||||||||||||||||
| 51 | Software::License::GPL3andArtistic2 - GPL 3 and Artistic 2.0 Dual License | ||||||||||||||||||||
| 52 | |||||||||||||||||||||
| 53 | =head1 VERSION | ||||||||||||||||||||
| 54 | |||||||||||||||||||||
| 55 | version 0.07 | ||||||||||||||||||||
| 56 | |||||||||||||||||||||
| 57 | =head1 NOTICE | ||||||||||||||||||||
| 58 | |||||||||||||||||||||
| 59 | This license is probably not needed (IANAL) and unmaintained because the | ||||||||||||||||||||
| 60 | Artistic 2.0 Licensed Code can be used in GPL 3 Code and even Re-Licensed as | ||||||||||||||||||||
| 61 | it. In this L<http://bit.ly/dfBgPn> interview on | ||||||||||||||||||||
| 62 | L<http://www.theperlreview.com> Allison Randal states (full URI below) | ||||||||||||||||||||
| 63 | |||||||||||||||||||||
| 64 | =over 4 | ||||||||||||||||||||
| 65 | |||||||||||||||||||||
| 66 | I<Two concepts were added in the Artistic 2.0: relicensing and patent | ||||||||||||||||||||
| 67 | protection. The relicensing section 4(c)(ii) means that projects no longer need | ||||||||||||||||||||
| 68 | to dual-license with the GPL, because the Artistic License itself allows | ||||||||||||||||||||
| 69 | redistribution of the code under the GPL (or any "copyleft" license). The | ||||||||||||||||||||
| 70 | patent protection language was added in response to the increased patent | ||||||||||||||||||||
| 71 | litigation and threats of patent litigation against open source software in the | ||||||||||||||||||||
| 72 | past few years.> | ||||||||||||||||||||
| 73 | |||||||||||||||||||||
| 74 | =back | ||||||||||||||||||||
| 75 | |||||||||||||||||||||
| 76 | and | ||||||||||||||||||||
| 77 | |||||||||||||||||||||
| 78 | =over 4 | ||||||||||||||||||||
| 79 | |||||||||||||||||||||
| 80 | I<Artistic 2.0 is compatible with the GPL version 2 and version 3. This | ||||||||||||||||||||
| 81 | is an improvement over Artistic 1.0, which the FSF never considered compatible | ||||||||||||||||||||
| 82 | with the GPL. Artistic 2.0 code may also be redistributed under the LGPL, MPL | ||||||||||||||||||||
| 83 | or any pure "copyleft" license.> | ||||||||||||||||||||
| 84 | |||||||||||||||||||||
| 85 | =back | ||||||||||||||||||||
| 86 | |||||||||||||||||||||
| 87 | so this module is probably not necessary unless you know something else | ||||||||||||||||||||
| 88 | |||||||||||||||||||||
| 89 | interview URI for the paranoid | ||||||||||||||||||||
| 90 | L<http://www.theperlreview.com/Interviews/allison-randal-artistic-license.html> | ||||||||||||||||||||
| 91 | |||||||||||||||||||||
| 92 | =head1 SYNOPSIS | ||||||||||||||||||||
| 93 | |||||||||||||||||||||
| 94 | use Software::License::GPL3andArtistic2; | ||||||||||||||||||||
| 95 | |||||||||||||||||||||
| 96 | my $license = Software::License::GPL3andArtistic2->new({ | ||||||||||||||||||||
| 97 | holder => 'Caleb Cushing', | ||||||||||||||||||||
| 98 | }); | ||||||||||||||||||||
| 99 | |||||||||||||||||||||
| 100 | open (my $license_file, '>', 'LICENSE') or die $!; | ||||||||||||||||||||
| 101 | print $license_file $license->fulltext; | ||||||||||||||||||||
| 102 | |||||||||||||||||||||
| 103 | =head1 DESCRIPTION | ||||||||||||||||||||
| 104 | |||||||||||||||||||||
| 105 | This package provides a Dual Licence for GPLv3 and Artistic 2.0. Written | ||||||||||||||||||||
| 106 | Because as of yet Software::License (and Dist::Zilla ) doesn't provide a way | ||||||||||||||||||||
| 107 | to multilicense | ||||||||||||||||||||
| 108 | |||||||||||||||||||||
| 109 | =head1 AUTHOR | ||||||||||||||||||||
| 110 | |||||||||||||||||||||
| 111 | Caleb Cushing <xenoterracide@gmail.com> | ||||||||||||||||||||
| 112 | |||||||||||||||||||||
| 113 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||||||||
| 114 | |||||||||||||||||||||
| 115 | This software is copyright (c) 2010 by Caleb Cushing. | ||||||||||||||||||||
| 116 | |||||||||||||||||||||
| 117 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||||||||
| 118 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||||||||
| 119 | |||||||||||||||||||||
| 120 | =cut | ||||||||||||||||||||
| 121 | |||||||||||||||||||||
| 122 | |||||||||||||||||||||
| 123 | __DATA__ | ||||||||||||||||||||