X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.include;h=cfb2c9598381026f322e406f9fa001eb66551da7;hb=631ccfb53a6b3d5960e11312a366276931e25f65;hp=f6d8f119bad970aab0437dd0fcd3584712a000f5;hpb=e8c1f31589af6daf783fe2c81fd0410969c987ca;p=p5sagit%2FModule-Metadata.git diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index f6d8f11..cfb2c95 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -1,61 +1,10 @@ -use strict; -use warnings FATAL => 'all'; +BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") } +use lib 'Distar/lib'; +use Distar; -{ - package MY; - - { - no warnings 'once'; push @ExtUtils::MakeMaker::Overridable, 'find_tests'; - } - - sub find_tests { - shift->SUPER::find_tests.' xt/*.t'; - } - - sub postamble { 'include maint/Makefile.include' } -} - -{ - no warnings 'redefine'; - sub WriteMakefile { - my %args = @_; - ExtUtils::MakeMaker::WriteMakefile( - %args, - AUTHOR => 'Ken Williams , Randy W. Sims ', - ABSTRACT_FROM => $args{VERSION_FROM}, - LICENSE => 'perl', - ); - } -} - -sub manifest_include { - use autodie; - my @files = @_; - my @parts; - while (my ($dir, $spec) = splice(@files, 0, 2)) { - my $re = ($dir ? $dir.'/' : ''). - ((ref($spec) eq 'Regexp') - ? $spec - : !ref($spec) - ? ".*\Q${spec}\E" - : die "spec must be string or regexp, was: ${spec} (${\ref $spec})"); - push @parts, $re; - } - my $final = '^(?!'.join('|', map "${_}\$", @parts).')'; - open my $skip, '>', 'MANIFEST.SKIP'; - print $skip "${final}\n"; - close $skip; -} +use ExtUtils::MakeMaker 6.68; # ensure meta-spec v2 compatibility +author 'Ken Williams , Randy W. Sims '; manifest_include( - 'lib' => '.pm', - 't' => '.t', - 't/lib' => '.pm', - 'xt' => '.t', - 'xt/lib' => '.pm', - '' => '.PL', - '' => qr{Changes|MANIFEST|README|META\.yml}, - 'maint' => qr{[^.].*}, + 't/smells-of-vcs' => qr{.*}, ); - -1;