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