line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
11
|
|
|
11
|
|
75142
|
use strict; |
|
11
|
|
|
|
|
45
|
|
|
11
|
|
|
|
|
306
|
|
2
|
11
|
|
|
11
|
|
56
|
use warnings; |
|
11
|
|
|
|
|
22
|
|
|
11
|
|
|
|
|
557
|
|
3
|
|
|
|
|
|
|
package Software::License::Apache_2_0; |
4
|
|
|
|
|
|
|
$Software::License::Apache_2_0::VERSION = '0.104004'; |
5
|
11
|
|
|
11
|
|
500
|
use parent 'Software::License'; |
|
11
|
|
|
|
|
355
|
|
|
11
|
|
|
|
|
50
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: The Apache License, Version 2.0 |
7
|
|
|
|
|
|
|
|
8
|
23
|
|
|
23
|
1
|
201
|
sub name { 'The Apache License, Version 2.0, January 2004' } |
9
|
0
|
|
|
0
|
1
|
0
|
sub url { 'http://www.apache.org/licenses/LICENSE-2.0.txt' } |
10
|
43
|
|
|
43
|
1
|
126
|
sub meta_name { 'apache' } |
11
|
42
|
|
|
42
|
1
|
100
|
sub meta2_name { 'apache_2_0' } |
12
|
43
|
|
|
43
|
1
|
117
|
sub spdx_expression { 'Apache-2.0' } |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub fulltext { |
15
|
1
|
|
|
1
|
1
|
6
|
my ($self) = @_; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
5
|
my $txt = $self->SUPER::fulltext(); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
4337
|
my $year = $self->year; |
20
|
1
|
|
|
|
|
4
|
my $holder = $self->holder; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
|
|
69
|
$txt =~ s{\Q[yyyy]\E}{$year}g; |
23
|
1
|
|
|
|
|
84
|
$txt =~ s{\Q[name of copyright owner]\E}{$holder}g; |
24
|
|
|
|
|
|
|
|
25
|
1
|
|
|
|
|
17
|
return $txt; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=encoding UTF-8 |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 NAME |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Software::License::Apache_2_0 - The Apache License, Version 2.0 |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head1 VERSION |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
version 0.104004 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 PERL VERSION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
This module is part of CPAN toolchain, or is treated as such. As such, it |
45
|
|
|
|
|
|
|
follows the agreement of the Perl Toolchain Gang to require no newer version |
46
|
|
|
|
|
|
|
of perl than one released in the last ten years. This version may change by |
47
|
|
|
|
|
|
|
agreement of the Toolchain Gang, but for now is governed by the L
|
48
|
|
|
|
|
|
|
Consensus|https://github.com/Perl-Toolchain-Gang/toolchain-site/blob/master/lancaster-consensus.md> |
49
|
|
|
|
|
|
|
of 2013 and the Lyon Amendment of 2023 (described at the linked-to document). |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
52
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
53
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to |
54
|
|
|
|
|
|
|
lower the minimum required perl. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Ricardo Signes |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This software is copyright (c) 2023 by Ricardo Signes. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
65
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
__DATA__ |