From: Matt S Trout Date: Wed, 16 Feb 2011 00:45:42 +0000 (+0000) Subject: convert to Distar, fixup author X-Git-Tag: release_1.002000~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d81f898dc9b139b6af40e2b2edd1708e03ff6ad6;p=p5sagit%2Fstrictures.git convert to Distar, fixup author --- diff --git a/Makefile.PL b/Makefile.PL index bed4a17..7d5ab73 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -7,7 +7,4 @@ use ExtUtils::MakeMaker; WriteMakefile( NAME => 'strictures', VERSION_FROM => 'lib/strictures.pm', - ABSTRACT_FROM => 'lib/strictures.pm', - AUTHOR => 'Matt S Trout ', - LICENSE => 'perl', ); diff --git a/lib/strictures.pm b/lib/strictures.pm index 3286a54..3c3c005 100644 --- a/lib/strictures.pm +++ b/lib/strictures.pm @@ -161,7 +161,7 @@ Gitweb is on http://git.shadowcat.co.uk/ and the clone URL is: =head1 AUTHOR -Matt S. Trout +mst - Matt S. Trout (cpan:MSTROUT) =head1 CONTRIBUTORS diff --git a/maint/Makefile.PL.include b/maint/Makefile.PL.include index e3385b3..fefe9d9 100644 --- a/maint/Makefile.PL.include +++ b/maint/Makefile.PL.include @@ -1,61 +1,7 @@ -use strict; -use warnings FATAL => 'all'; +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; -} +author 'mst - Matt S. Trout (cpan:MSTROUT) '; manifest_include( - 'lib' => '.pm', - 't' => '.t', - 't/lib' => '.pm', - 'xt' => '.t', - 'xt/lib' => '.pm', - '' => '.PL', - '' => qr{Changes|MANIFEST|README|META\.yml}, '' => qr{t/smells-of-vcs/.svn}, - 'maint' => qr{[^.].*}, ); - -1;