line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CPANPLUS::Config::HomeEnv; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1043
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
96
|
|
4
|
2
|
|
|
2
|
|
15
|
use File::Spec; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
97
|
|
5
|
2
|
|
|
2
|
|
13
|
use vars qw($VERSION); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
260
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION = "0.9912"; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub setup { |
10
|
2
|
|
|
2
|
1
|
5
|
my $conf = shift; |
11
|
|
|
|
|
|
|
$conf->set_conf( base => File::Spec->catdir( $ENV{PERL5_CPANPLUS_HOME}, '.cpanplus' ) ) |
12
|
2
|
50
|
|
|
|
7
|
if $ENV{PERL5_CPANPLUS_HOME}; |
13
|
2
|
|
|
|
|
10
|
return 1; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
qq'Wherever I hang my hat is home'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__END__ |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 NAME |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
CPANPLUS::Config::HomeEnv - Set the environment for the CPANPLUS base dir |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
export PERL5_CPANPLUS_HOME=/home/moo/perls/conf/perl-5.8.9/ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
CPANPLUS::Config::HomeEnv is a L<CPANPLUS::Config> file that allows the CPANPLUS user to |
31
|
|
|
|
|
|
|
specify where L<CPANPLUS> gets its configuration from. |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Setting the environment variable C<PERL5_CPANPLUS_HOME> to a path location, determines |
34
|
|
|
|
|
|
|
where the C<.cpanplus> directory will be located. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 METHODS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=over |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item C<setup> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Called by L<CPANPLUS::Configure>. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=back |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 AUTHOR |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Chris C<BinGOs> Williams <chris@bingosnet.co.uk> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Contributions and patience from Jos Boumans the L<CPANPLUS> guy! |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 LICENSE |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Copyright E<copy> Chris Williams and Jos Boumans. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 SEE ALSO |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
L<CPANPLUS> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=cut |