File Coverage

lib/ExtUtils/MM_Darwin.pm
Criterion Covered Total %
statement 8 11 72.7
branch n/a
condition 0 2 0.0
subroutine 3 4 75.0
pod 1 1 100.0
total 12 18 66.6


line stmt bran cond sub pod time code
1             package ExtUtils::MM_Darwin;
2              
3 1     1   14890 use strict;
  1         3  
  1         48  
4 1     1   7 use warnings;
  1         3  
  1         93  
5              
6             BEGIN {
7 1     1   9 require ExtUtils::MM_Unix;
8 1         176 our @ISA = qw( ExtUtils::MM_Unix );
9             }
10              
11             our $VERSION = '7.78';
12             $VERSION =~ tr/_//d;
13              
14              
15             =head1 NAME
16              
17             ExtUtils::MM_Darwin - special behaviors for OS X
18              
19             =head1 SYNOPSIS
20              
21             For internal MakeMaker use only
22              
23             =head1 DESCRIPTION
24              
25             See L or L for documentation on the
26             methods overridden here.
27              
28             =head2 Overridden Methods
29              
30             =head3 init_dist
31              
32             Turn off Apple tar's tendency to copy resource forks as "._foo" files.
33              
34             =cut
35              
36             sub init_dist {
37 0     0 1   my $self = shift;
38              
39             # Thank you, Apple, for breaking tar and then breaking the work around.
40             # 10.4 wants COPY_EXTENDED_ATTRIBUTES_DISABLE while 10.5 wants
41             # COPYFILE_DISABLE. I'm not going to push my luck and instead just
42             # set both.
43             $self->{TAR} ||=
44 0   0       'COPY_EXTENDED_ATTRIBUTES_DISABLE=1 COPYFILE_DISABLE=1 tar';
45              
46 0           $self->SUPER::init_dist(@_);
47             }
48              
49             1;