This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add Module::Build 0.27_08
[perl5.git] / lib / Module / Build / Platform / Unix.pm
CommitLineData
bb4e9162
YST
1package Module::Build::Platform::Unix;
2
3use strict;
4use Module::Build::Base;
5
6use vars qw(@ISA);
7@ISA = qw(Module::Build::Base);
8
9sub make_tarball {
10 my $self = shift;
11 $self->{args}{tar} ||= ['tar'];
12 $self->{args}{gzip} ||= ['gzip'];
13 $self->SUPER::make_tarball(@_);
14}
15
16sub _startperl { "#! " . shift()->perl }
17
18sub _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
311;
32__END__
33
34
35=head1 NAME
36
37Module::Build::Platform::Unix - Builder class for Unix platforms
38
39=head1 DESCRIPTION
40
41The sole purpose of this module is to inherit from
42C<Module::Build::Base>. Please see the L<Module::Build> for the docs.
43
44=head1 AUTHOR
45
46Ken Williams <ken@cpan.org>
47
48=head1 SEE ALSO
49
50perl(1), Module::Build(3), ExtUtils::MakeMaker(3)
51
52=cut