Enbld/Definition/Apache.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 37 SCAR 6.9
CC
1
Cov
0%
initialize
2.0
set_argument
2.0
BEGIN
2.0
CRAP 2.0
1 package Enbld::Definition::Apache;
2  
3 use strict;
4 use warnings;
5  
6 use parent qw/Enbld::Definition/;
7  
8 sub initialize {
9 my $self = shift;
10
11 $self->SUPER::initialize;
12
13 $self->{defined}{ArchiveName} = 'httpd';
14 $self->{defined}{WebSite} = 'http://httpd.apache.org';
15 $self->{defined}{VersionForm} = '2\.\d\.\d{1,2}';
16 $self->{defined}{Extension} = 'tar.gz';
17 $self->{defined}{DownloadSite} = 'http://archive.apache.org/dist/httpd/';
18  
19 $self->{defined}{Dependencies} = sub { return [ 'pcre', 'apr', 'aprutil' ] };
20  
21 $self->{defined}{AdditionalArgument}= \&set_argument;
22  
23 $self->{defined}{CommandTest} = '';
24  
25 return $self;
26 }
27  
28 sub set_argument {
29 my $attributes = shift;
30  
31 require Enbld::Home;
32 my $to_install = Enbld::Home->library;
33  
34 my $argument = "--with-pcre=$to_install --with-apr=$to_install --with-apr-util=$to_install";
35  
36 return $argument;
37 }
38  
39 1;
40  
41 =pod
42  
43 =head1 NAME
44  
45 Enbld::Definition::Apache - definition module for Apache HTTP Server
46  
47 =head1 SEE ALSO
48  
49 L<Apache HTTP Server|http://httpd.apache.org>
50  
51 L<Enbld::Definition>
52  
53 =head1 COPYRIGHT
54  
55 copyright 2013- Magnolia C<< <magnolia.k@me.com> >>.
56  
57 =head1 LICENSE
58  
59 This is free software; you can redistribute it and/or modify it under
60 the same terms as the Perl 5 programming language system itself.
61  
62 =cut