1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
use strict;
use warnings;
package Software::License::Perl_5 0.104006;
use parent 'Software::License';
# ABSTRACT: The Perl 5 License (Artistic 1 & GPL 1)
require Software::License::GPL_1;
require Software::License::Artistic_1_0_Perl;
sub name { 'the same terms as the perl 5 programming language system itself' }
sub url { 'http://dev.perl.org/licenses/' }
sub meta_name { 'perl' }
sub meta2_name { 'perl_5' }
sub spdx_expression { 'Artistic-1.0-Perl OR GPL-1.0-or-later' }
sub _gpl {
my ($self) = @_;
return $self->{_gpl} ||= Software::License::GPL_1->new({
year => $self->year,
holder => $self->holder,
});
}
sub _tal {
my ($self) = @_;
return $self->{_tal} ||= Software::License::Artistic_1_0_Perl->new({
year => $self->year,
holder => $self->holder,
});
}
1;
=pod
=encoding UTF-8
=head1 NAME
Software::License::Perl_5 - The Perl 5 License (Artistic 1 & GPL 1)
=head1 VERSION
version 0.104006
=head1 PERL VERSION
This module is part of CPAN toolchain, or is treated as such. As such, it
follows the agreement of the Perl Toolchain Gang to require no newer version
of perl than one released in the last ten years. This version may change by
agreement of the Toolchain Gang, but for now is governed by the L<Lancaster
Consensus|https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md>
of 2013 and the Lyon Amendment of 2023 (described at the linked-to document).
Although it may work on older versions of perl, no guarantee is made that the
minimum required version will not be increased. The version may be increased
for any reason, and there is no promise that patches will be accepted to
lower the minimum required perl.
=head1 AUTHOR
Ricardo Signes <cpan@semiotic.systems>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2024 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.
=cut
__DATA__
__NOTICE__
This software is copyright (c) {{$self->year}} by {{$self->_dotless_holder}}.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
__LICENSE__
Terms of the Perl programming language system itself
a) the GNU General Public License as published by the Free
Software Foundation; either version 1, or (at your option) any
later version, or
b) the "Artistic License"
--- {{ $self->_gpl->name }} ---
{{$self->_gpl->fulltext}}
--- {{ $self->_tal->name }} ---
{{$self->_tal->fulltext}}
|