Update META checker
[Config-Perl-V.git] / Makefile.PL
blob3c1675fe436242b68c9816c9f6ad5ae5f571a6fa
1 #!/usr/bin/perl
3 # Copyright PROCURA B.V. (c) 2009-2013 H.Merijn Brand
5 use strict;
7 use ExtUtils::MakeMaker;
9 my %wm = (
10 NAME => "Config::Perl::V",
11 DISTNAME => "Config-Perl-V",
12 AUTHOR => "H.Merijn Brand <h.m.brand\@xs4all.nl>",
13 VERSION_FROM => "V.pm",
14 ABSTRACT_FROM => "V.pm",
16 PREREQ_PM => { "Config" => 0,
17 "Test::More" => 0,
18 "Test::NoWarnings" => 0,
20 macro => { TARFLAGS => "--format=ustar -c -v -f",
23 $ExtUtils::MakeMaker::VERSION > 6.30 and $wm{LICENSE} = "perl";
25 my $rv = WriteMakefile (%wm);
29 package MY;
31 sub postamble
33 join "\n" =>
34 'cover test_cover:',
35 ' ccache -C',
36 ' cover -test',
37 '',
38 'spellcheck:',
39 ' pod-spell-check --aspell',
40 '',
41 'checkmeta: spellcheck',
42 ' perl sandbox/genMETA.pl -c',
43 '',
44 'fixmeta: distmeta',
45 ' perl sandbox/genMETA.pl',
46 ' ls -l */META.yml',
47 '',
48 'tgzdist: checkmeta fixmeta $(DISTVNAME).tar.gz distcheck',
49 ' -@mv -f $(DISTVNAME).tar.gz $(DISTVNAME).tgz',
50 ' -@cpants_lint.pl $(DISTVNAME).tgz',
51 ' -@rm -f Debian_CPANTS.txt',
52 '';
53 } # postamble