add Module::Build 0.27_08
[p5sagit/p5-mst-13.2.git] / lib / Module / Build / Platform / Unix.pm
1 package Module::Build::Platform::Unix;
2
3 use strict;
4 use Module::Build::Base;
5
6 use vars qw(@ISA);
7 @ISA = qw(Module::Build::Base);
8
9 sub make_tarball {
10   my $self = shift;
11   $self->{args}{tar}  ||= ['tar'];
12   $self->{args}{gzip} ||= ['gzip'];
13   $self->SUPER::make_tarball(@_);
14 }
15
16 sub _startperl { "#! " . shift()->perl }
17
18 sub _construct {
19   my $self = shift()->SUPER::_construct(@_);
20
21   # perl 5.8.1-RC[1-3] had some broken %Config entries, and
22   # unfortunately Red Hat 9 shipped it like that.  Fix 'em up here.
23   my $c = $self->{config};
24   for (qw(siteman1 siteman3 vendorman1 vendorman3)) {
25     $c->{"install${_}dir"} ||= $c->{"install${_}"};
26   }
27
28   return $self;
29 }
30
31 1;
32 __END__
33
34
35 =head1 NAME
36
37 Module::Build::Platform::Unix - Builder class for Unix platforms
38
39 =head1 DESCRIPTION
40
41 The sole purpose of this module is to inherit from
42 C<Module::Build::Base>.  Please see the L<Module::Build> for the docs.
43
44 =head1 AUTHOR
45
46 Ken Williams <ken@cpan.org>
47
48 =head1 SEE ALSO
49
50 perl(1), Module::Build(3), ExtUtils::MakeMaker(3)
51
52 =cut