X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=7ab9cef7c6581c43c665a52f477675d00628fd3b;hb=ec94b9e154354895a9eb498f6dc6c314034f79bf;hp=32612fcb1c56517b1caaf49473dc2e5973fbadbf;hpb=faf4ea26df86ca4dac2f8ef9c4cb56490b919d78;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/Makefile.PL b/Makefile.PL index 32612fc..7ab9cef 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,18 +1,21 @@ #!/usr/bin/perl -w use strict; +require 5.006000; use ExtUtils::MakeMaker; WriteMakefile( - NAME => 'Devel::GlobalDestruction', - VERSION_FROM => 'lib/Devel/GlobalDestruction.pm', - INSTALLDIRS => 'site', - SIGN => 1, - PL_FILES => { }, - PREREQ_PM => { - 'Sub::Exporter' => 0, - 'Scope::Guard' => 0, - }, + NAME => 'Devel::GlobalDestruction', + VERSION_FROM => 'lib/Devel/GlobalDestruction.pm', + INSTALLDIRS => 'site', + SIGN => 1, + PL_FILES => { }, + MIN_PERL_VERSION => '5.006000', + PREREQ_PM => { + 'Sub::Exporter' => 0, + 'Scope::Guard' => 0, + }, + ($] >= 5.013007 ? (XS => {}, C => []) : ()), );