| 1 | package Module::Install::PerlTar; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.006001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use Module::Install::Base (); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | our @ISA = qw(Module::Install::Base); | |||||||||
| 9 | 1 | our $VERSION = '1.001'; | |||||||||
| 10 | 1 | $VERSION =~ s/_//ms; | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | sub use_ptar { | ||||||||
|
Subroutine
use_ptar: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||
| 13 | 0 | my $self = shift; | |||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | return if not $Module::Install::AUTHOR; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | eval { require Archive::Tar; 1; } or warn "Cannot find Archive::Tar\n"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 0 | ▶ | eval { require IO::Compress::Gzip; 1; } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | or warn "Cannot find IO::Compress::Gzip\n"; | ||||||||||
| 20 | |||||||||||
| 21 | 0 | my %args = ( | |||||||||
| 22 | TAR => 'ptar', | ||||||||||
| 23 | TARFLAGS => '-c -C -f', | ||||||||||
| 24 | COMPRESS => | ||||||||||
| 25 | q{perl -MIO::Compress::Gzip=gzip,:constants -e"my $$in = $$ARGV[0]; gzip($$in => qq($$in.gz), q(Level) => Z_BEST_COMPRESSION, q(BinModeIn) => 1) or die q(gzip failed); unlink $$in;"}, | ||||||||||
| 26 | ); | ||||||||||
| 27 | |||||||||||
| 28 | 0 | $self->makemaker_args( dist => \%args ); | |||||||||
| 29 | |||||||||||
| 30 | 0 | return 1; | |||||||||
| 31 | } ## end sub use_ptar | ||||||||||
| 32 | |||||||||||
| 33 | 1 | 1; | |||||||||
| 34 | __END__ | ||||||||||