This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Refactor ExtUtils::Embed::xsi_{protos,body} to use a scalar $retval.
[perl5.git] / cpan / MIME-Base64 / Makefile.PL
index 7300447..72a95bc 100644 (file)
@@ -2,7 +2,7 @@ require 5.006;
 use ExtUtils::MakeMaker;
 
 my @makefileopts;
-if ($] >= 5.008) {
+if ($] >= 5.008 && $] < 5.012) {
     push @makefileopts, INSTALLDIRS => 'perl';
 }
 
@@ -10,4 +10,36 @@ WriteMakefile(
     NAME        => 'MIME::Base64',
     VERSION_FROM => 'Base64.pm',
     @makefileopts,
+
+    ABSTRACT     => 'The RFC 2045 encodings; base64 and quoted-printable',
+    AUTHOR       => 'Gisle Aas <gisle@activestate.com>',
+    LICENSE      => 'perl',
+    MIN_PERL_VERSION => 5.006,
+    META_MERGE   => {
+        resources  => {
+            repository => 'http://github.com/gisle/mime-base64',
+        }
+    },
 );
+
+BEGIN {
+    # compatibility with older versions of MakeMaker
+    my $developer = -d ".git";
+    my %mm_req = (
+        LICENCE => 6.31,
+        META_MERGE => 6.45,
+        META_ADD => 6.45,
+        MIN_PERL_VERSION => 6.48,
+    );
+    undef(*WriteMakefile);
+    *WriteMakefile = sub {
+        my %arg = @_;
+        for (keys %mm_req) {
+            unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
+                warn "$_ $@" if $developer;
+                delete $arg{$_};
+            }
+        }
+        ExtUtils::MakeMaker::WriteMakefile(%arg);
+    };
+}