X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=maint%2FMakefile.PL.include;h=3f4e47ab2a969bc86fe8adf01d36fb5f4b3fe528;hb=1998749604fb426e4ae3b3c3a2e5491bd75e3b3d;hp=1555fa8932fc67939dfcc83d27623cd737dc64d5;hpb=eae006ee3476346901d8edb6c73b1fed4a98c766;p=p5sagit%2Fstrictures.git diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index 1555fa8..3f4e47a 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -1,60 +1,5 @@ -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 => 'Matt S Trout ', - ABSTRACT_FROM => $args{VERSION_FROM}, - ); - } -} - -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; -} - -manifest_include( - 'lib' => '.pm', - 't' => '.t', - 't/lib' => '.pm', - 'xt' => '.t', - 'xt/lib' => '.pm', - '' => '.PL', - '' => qr{Changes|MANIFEST|README|META\.yml}, - 'maint' => qr{[^.].*}, -); - -1; +author 'mst - Matt S. Trout (cpan:MSTROUT) ';