Enbld/Definition/Wget.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 36 SCAR 6.9
CC
1
Cov
0%
initialize
2.0
set_argument
2.0
BEGIN
2.0
CRAP 2.0
1 package Enbld::Definition::Wget;
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://www.gnu.org/software/wget/';
14  
15 $self->{defined}{Dependencies} = [ 'libidn' ];
16  
17 $self->{defined}{DownloadSite} = 'http://ftp.gnu.org/gnu/wget/';
18  
19 $self->{defined}{ArchiveName} = 'wget';
20 $self->{defined}{VersionForm} = '\d{1,2}\.\d{1,2}(\.\d{1,2})?';
21
22 $self->{defined}{DarwinArgument} = \&set_argument;
23 $self->{defined}{DefaultArgument} = '--with-ssl=openssl --enable-iri';
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-ssl=openssl --enable-iri --with-libidn=$to_install";
35  
36 $argument .= ' ' . 'PERL=/usr/bin/perl POD2MAN=/usr/bin/pod2man';
37  
38 return $argument;
39 }
40  
41 1;
42  
43 =pod
44  
45 =head1 NAME
46  
47 Enbld::Definition::Wget - definition module for GNU Wget
48  
49 =head1 SEE ALSO
50  
51 L<GNU Wget|http://www.gnu.org/software/wget/>
52  
53 L<Enbld::Definition>
54  
55 =head1 COPYRIGHT
56  
57 copyright 2013- Magnolia C<< <magnolia.k@me.com> >>.
58  
59 =head1 LICENSE
60  
61 This is free software; you can redistribute it and/or modify it under
62 the same terms as the Perl 5 programming language system itself.
63  
64 =cut