X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=ee4ed6404fbb2e392862a88caeb10b0660514255;hb=ab688693550bf12a9e9618948951d7e6bd317a75;hp=891bfa0b8319de81faebefb1ba1e913901906800;hpb=2af880191b27692321cb8c3f2b90de5902b7b469;p=gitmo%2FMouse.git diff --git a/Makefile.PL b/Makefile.PL old mode 100755 new mode 100644 index 891bfa0..ee4ed64 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,3 +1,4 @@ +# COMPAT_TEST=1 genrates Moose compatible tests # for developpers: BEGIN{ if(grep{ $_ eq '--author' } @ARGV){ @@ -14,9 +15,6 @@ use inc::Module::Install 1.00; use Module::Install::XSUtil 0.30; use Module::Install::AuthorTests; -system($^X, 'tool/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 - or warn "Cannot generate Mouse::Tiny: $!"; - name 'Mouse'; all_from 'lib/Mouse.pm'; @@ -74,11 +72,18 @@ author_tests 'xt'; repository 'git://git.moose.perl.org/Mouse.git'; +system($^X, 'tool/generate-mouse-tiny.pl', 'lib/Mouse/Tiny.pm') == 0 + or warn "Cannot generate Mouse::Tiny: $!"; +makemaker_args PL_FILES => { + 'tool/generate-mouse-tiny.pl' => 'lib/Mouse/Tiny.pm', +}; + if ($Module::Install::AUTHOR) { require 'lib/Mouse/Spec.pm'; # for the version my $require_version = Mouse::Spec->MooseVersion; - if (eval { require Moose; Moose->VERSION($require_version) }) { + if ($ENV{COMPAT_TEST} + && eval { require Moose; Moose->VERSION($require_version) }) { print "You have Moose ", Moose->VERSION, ".\n"; do 'tool/create-moose-compatibility-tests.pl'; # repeat testing