| 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 | our $VERSION = '7.13_01'; | ||
| 11 | $VERSION = eval $VERSION; | ||
| 12 | |||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | ExtUtils::MM_Darwin - special behaviors for OS X | ||
| 17 | |||
| 18 | =head1 SYNOPSIS | ||
| 19 | |||
| 20 | For internal MakeMaker use only | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | See L<ExtUtils::MM_Unix> for L<ExtUtils::MM_Any> for documentation on the | ||
| 25 | methods overridden here. | ||
| 26 | |||
| 27 | =head2 Overriden Methods | ||
| 28 | |||
| 29 | =head3 init_dist | ||
| 30 | |||
| 31 | Turn off Apple tar's tendency to copy resource forks as "._foo" files. | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | sub 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 | |||
| 48 | 1; |