Enbld/Definition/Aprutil.pm untested

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