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