Module/Install/Msgfmt.pm untested

filter: Statementstmt 0.0% 0 / 34 Branchbran 0.0% 0 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 49 CC 5 SCAR 27.7
CC
5
Cov
0%
install_share_with_mofiles
30.0
BEGIN
2.0
BEGIN
2.0
CRAP 16.0
1 package Module::Install::Msgfmt;
2  
3 use 5.008005;
4 use strict;
5 use warnings;
6 use File::Spec ();
7 use Module::Install::Base ();
8  
9 our $VERSION = '0.15';
10 our @ISA = 'Module::Install::Base';
11  
12 sub install_share_with_mofiles {
13 my $self = shift;
14 my @orig = (@_);
15 my $class = ref($self);
16 my $prefix = $self->_top->{prefix};
17 my $name = $self->_top->{name};
18 my $dir = @_ ? pop : 'share';
19 my $type = @_ ? shift : 'dist';
20 my $module = @_ ? shift : '';
21 $self->build_requires( 'Locale::Msgfmt' => '0.15' );
22 $self->install_share(@orig);
23 my $distname = "";
24 if ( $type eq 'dist' ) {
25 $distname = $self->name;
26 } else {
27 $distname = Module::Install::_CLASS($module);
28 $distname =~ s/::/-/g;
29 }
30 my $path = File::Spec->catfile( 'auto', 'share', $type, $distname );
31 $self->postamble(<<"END_MAKEFILE");
32 config ::
33 \t\$(NOECHO) \$(PERL) "-MLocale::Msgfmt" -e "Locale::Msgfmt::do_msgfmt_for_module_install(q(\$(INST_LIB)), q($path))"
34  
35 END_MAKEFILE
36 }
37  
38 1;