This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Silence some Win32 compiler warnings
[perl5.git] / cpan / MIME-Base64 / Makefile.PL
CommitLineData
e1839706 1require 5.006;
6fba102d
JH
2use ExtUtils::MakeMaker;
3
d491518e 4my @makefileopts;
43f93048 5if ($] >= 5.008 && $] < 5.012) {
d491518e
RGS
6 push @makefileopts, INSTALLDIRS => 'perl';
7}
8
6fba102d
JH
9WriteMakefile(
10 NAME => 'MIME::Base64',
11 VERSION_FROM => 'Base64.pm',
d491518e 12 @makefileopts,
46787c0e
CBW
13
14 ABSTRACT => 'The RFC 2045 encodings; base64 and quoted-printable',
15 AUTHOR => 'Gisle Aas <gisle@activestate.com>',
16 LICENSE => 'perl',
17 MIN_PERL_VERSION => 5.006,
18 META_MERGE => {
19 resources => {
20 repository => 'http://github.com/gisle/mime-base64',
21 }
22 },
6fba102d 23);
46787c0e
CBW
24
25BEGIN {
26 # compatibility with older versions of MakeMaker
27 my $developer = -d ".git";
28 my %mm_req = (
29 LICENCE => 6.31,
30 META_MERGE => 6.45,
31 META_ADD => 6.45,
32 MIN_PERL_VERSION => 6.48,
33 );
34 undef(*WriteMakefile);
35 *WriteMakefile = sub {
36 my %arg = @_;
37 for (keys %mm_req) {
38 unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
39 warn "$_ $@" if $developer;
40 delete $arg{$_};
41 }
42 }
43 ExtUtils::MakeMaker::WriteMakefile(%arg);
44 };
45}