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