From: Robert 'phaylon' Sedlacek Date: Thu, 24 May 2012 02:42:19 +0000 (+0000) Subject: turned into a dist X-Git-Tag: v0.001_001~63 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9d42b191ba6995b4f2429ee76bf7e56809eca8df;p=scpubgit%2FSystem-Introspector.git turned into a dist --- diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..3f768cb --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,52 @@ +use strict; +use warnings; + +use ExtUtils::MakeMaker; + +my %build_requires => ( + 'Test::More' => 0, +); + +my %requires = ( + 'Moo' => 0.009013, + 'File::Path' => 0, + 'File::Basename' => 0, + 'Module::Runtime' => 0, + 'Data::YAML::Writer' => 0, + 'Object::Remote' => 0, + 'Object::Remote::Future' => 0, + 'Config::General' => 0, + 'Pod::Usage' => 0, + 'Getopt::Long' => 0, + 'Digest::SHA' => 0, + 'strictures' => 1, + 'IPC::Run' => 0, +) + +# have to do this since old EUMM dev releases miss the eval $VERSION line +my $mymeta_works = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5707 }; +my $mymeta = do { no warnings; $ExtUtils::MakeMaker::VERSION >= 6.5702 }; + +WriteMakefile( + NAME => 'File-Tree-Snapshot', + VERSION_FROM => 'lib/File/Tree/Snapshot.pm', + PREREQ_PM => { + %requires, + ($] >= 5.010 ? () : ('MRO::Compat' => 0)), + ($mymeta_works ? () : (%build_requires)), + }, + ($mymeta_works + ? ( # BUILD_REQUIRES makes MYMETA right, requires stops META being wrong + BUILD_REQUIRES => \%build_requires, + META_ADD => { requires => \%requires } + ) + : ( # META_ADD both to get META right - only Makefile written + META_ADD => { + requires => \%requires, + build_requires => \%build_requires, + } + ) + ), + ($mymeta && !$mymeta_works ? (NO_MYMETA => 1) : ()), + LICENSE => 'perl', +);;