line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Debian::Copyright::Stanza::License - License stanza of Debian copyright file |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 VERSION |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
This document describes Debian::Copyright::Stanza::License version 0.2 . |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $copy = Debian::Copyright::Stanza::License->new(\%data); |
12
|
|
|
|
|
|
|
print $copy; # auto-stringification |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 DESCRIPTION |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Debian::Copyright::Stanza::License can be used for representation and |
17
|
|
|
|
|
|
|
manipulation of a C stanza of Debian copyright files in an |
18
|
|
|
|
|
|
|
object-oriented way. Converts itself to a textual representation in string |
19
|
|
|
|
|
|
|
context. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 FIELDS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
The supported fields for License stanzas are listed below. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Note that real copyright fields may contain dashes in their names. These are |
26
|
|
|
|
|
|
|
replaced with underscores. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item License |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item Comment |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=back |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=cut |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
package Debian::Copyright::Stanza::License; |
39
|
|
|
|
|
|
|
require v5.10.1; |
40
|
3
|
|
|
3
|
|
48
|
use strict; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
88
|
|
41
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
125
|
|
42
|
3
|
|
|
3
|
|
168
|
use base qw(Debian::Copyright::Stanza); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
408
|
|
43
|
3
|
|
|
|
|
349
|
use constant fields => qw ( |
44
|
|
|
|
|
|
|
License Comment |
45
|
3
|
|
|
3
|
|
17
|
); |
|
3
|
|
|
|
|
11
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
our $VERSION = '0.2'; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=over |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=item new |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item new( { field => value, ... } ) |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Creates a new L object and optionally |
58
|
|
|
|
|
|
|
initialises it with the supplied data. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=back |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 SEE ALSO |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Debian::Copyright::Stanza::License inherits most of its functionality from |
65
|
|
|
|
|
|
|
L |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Copyright (C) 2011-12 Nicholas Bamber L |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This module is substantially based upon L. |
72
|
|
|
|
|
|
|
Copyright (C) 2009 Damyan Ivanov L |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under |
75
|
|
|
|
|
|
|
the terms of the GNU General Public License version 2 as published by the Free |
76
|
|
|
|
|
|
|
Software Foundation. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY |
79
|
|
|
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
80
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=cut |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
1; |