File Coverage

blib/lib/Module/Install/AutoConf.pm
Criterion Covered Total %
statement 18 23 78.2
branch n/a
condition 0 2 0.0
subroutine 6 8 75.0
pod 1 1 100.0
total 25 34 73.5


line stmt bran cond sub pod time code
1             package Module::Install::AutoConf;
2              
3 1     1   895 use 5.005;
  1         5  
  1         43  
4 1     1   5 use strict;
  1         2  
  1         33  
5 1     1   871 use Module::Install::Base;
  1         3  
  1         27  
6 1     1   6 use Carp ();
  1         2  
  1         24  
7              
8             =head1 NAME
9              
10             Module::Install::AutoConf - tools to intigrate Module::Install with the
11             Gnu autoconf tools
12              
13             =head1 VERSION
14              
15             0.001
16              
17             =cut
18              
19 1     1   6 use vars qw{$VERSION $ISCORE @ISA};
  1         2  
  1         313  
20             BEGIN {
21 1     1   3 $VERSION = '0.001';
22 1         2 $ISCORE = 0;
23 1         260 @ISA = qw{Module::Install::Base};
24             }
25              
26             =head1 COMMANDS
27              
28             This plugin adds the following Module::Install commands:
29              
30             =head2 makefile
31              
32             makefile('pmakefile');
33              
34             Change the name of the makefile to 'pamakefile'.
35              
36             =cut
37              
38             sub makefile {
39 0     0 1   my ($self, $name) = @_;
40 0           _makefile($self, $name);
41             }
42              
43             sub _makefile {
44 0     0     my ($self, $name) = @_;
45 0   0       $name //= 'pmakefile';
46 0           $self->makemaker_args->{FIRST_MAKEFILE} = $name;
47             }
48              
49             =head1 HOW IT WORKS
50              
51             =head1 BUGS
52              
53             Please report any bugs or feature requests through the web interface at
54             L. I will be notified, and then you'll automatically be
55             notified of progress on your bug as I make changes.
56              
57             =head1 COPYRIGHT
58              
59             Copyright 2011, G. Allen Morris III. This program is free software; you can
60             redistribute it and/or modify it under the same terms as Perl itself.
61              
62             =cut
63              
64             1;