This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
2cd2321204ccb41de47e52a1c2282b4392276413
[perl5.git] / cpan / ExtUtils-MakeMaker / lib / ExtUtils / MM_Darwin.pm
1 package ExtUtils::MM_Darwin;
2
3 use strict;
4 use warnings;
5
6 BEGIN {
7     require ExtUtils::MM_Unix;
8     our @ISA = qw( ExtUtils::MM_Unix );
9 }
10
11 our $VERSION = '7.48';
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<ExtUtils::MM_Unix> or L<ExtUtils::MM_Any> 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     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         'COPY_EXTENDED_ATTRIBUTES_DISABLE=1 COPYFILE_DISABLE=1 tar';
45
46     $self->SUPER::init_dist(@_);
47 }
48
49 1;