line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Debian::Control::Stanza::Source - source stanza of Debian source package control file |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
my $src = Debian::Control::Stanza::Source->new(\%data); |
8
|
|
|
|
|
|
|
print $src; # auto-stringification |
9
|
|
|
|
|
|
|
print $src->Build_Depends; # Debian::Dependencies object |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 DESCRIPTION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Debian::Control::Stanza::Source can be used for representation and manipulation |
14
|
|
|
|
|
|
|
of C stanza of Debian source package control files in an |
15
|
|
|
|
|
|
|
object-oriented way. Converts itself to a textual representation in string |
16
|
|
|
|
|
|
|
context. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 FIELDS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
The supported fields for source stanzas are listed below. For more information |
21
|
|
|
|
|
|
|
about each field's meaning, consult the section named C
|
22
|
|
|
|
|
|
|
files -- debian/control> of the Debian Policy Manual at |
23
|
|
|
|
|
|
|
L |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Note that real control fields may contain dashes in their names. These are |
26
|
|
|
|
|
|
|
replaced with underscores. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=over |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item Source |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item Section |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item Priority |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item Maintainer |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item Uploaders |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item DM_Upload_Allowed |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item Build_Conflicts |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item Build_Conflicts_Indep |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=item Build_Depends |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item Build_Depends_Indep |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=item Standards_Version |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=item Vcs_Browser |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item Vcs_Bzr |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=item Vcs_CVS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item Vcs_Git |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=item Vcs_Svn |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=item Homepage |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=item XS_Autobuild |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=item Testsuite |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=back |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
All Build_... fields are converted into objects of L |
71
|
|
|
|
|
|
|
class upon construction. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
package Debian::Control::Stanza::Source; |
76
|
|
|
|
|
|
|
|
77
|
5
|
|
|
5
|
|
34577014
|
use strict; |
|
5
|
|
|
|
|
25
|
|
|
5
|
|
|
|
|
223
|
|
78
|
5
|
|
|
5
|
|
30
|
use warnings; |
|
5
|
|
|
|
|
33
|
|
|
5
|
|
|
|
|
616
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
our $VERSION = '0.73'; |
81
|
|
|
|
|
|
|
|
82
|
5
|
|
|
5
|
|
105
|
use base qw(Debian::Control::Stanza); |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
3465
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
use constant fields => qw ( |
85
|
|
|
|
|
|
|
Source Section Priority Maintainer Uploaders DM_Upload_Allowed |
86
|
|
|
|
|
|
|
Build_Conflicts Build_Conflicts_Indep Build_Depends Build_Depends_Indep |
87
|
|
|
|
|
|
|
Standards_Version Vcs_Browser Vcs_Bzr Vcs_CVS Vcs_Git Vcs_Svn Homepage |
88
|
|
|
|
|
|
|
XS_Autobuild Testsuite |
89
|
|
|
|
|
|
|
); |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=over |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item new |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item new( { field => value, ... } ) |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Creates a new L object and optionally |
100
|
|
|
|
|
|
|
initializes it with the supplied data. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=back |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 SEE ALSO |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Debian::Control::Stanza::Source inherits most of its functionality from |
107
|
|
|
|
|
|
|
L |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
Copyright (C) 2009 Damyan Ivanov L |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under |
114
|
|
|
|
|
|
|
the terms of the GNU General Public License version 2 as published by the Free |
115
|
|
|
|
|
|
|
Software Foundation. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY |
118
|
|
|
|
|
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
119
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=cut |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
1; |