meta-spec in json is an integer
[Test-Smoke-Metabase.git] / Makefile.PL
blobd786bc572eba77cc47a89640be19695bd43f3242
1 #!/usr/bin/perl
3 # Copyright 2010-2012 H.Merijn Brand
5 require 5.006; # <- also see postamble at the bottom for META.yml
6 use strict;
8 use ExtUtils::MakeMaker;
10 my %wm = (
11 NAME => "Test::Smoke::Metabase",
12 DISTNAME => "Test-Smoke-Metabase",
13 ABSTRACT => "Metabase interface for Test::Smoke",
14 AUTHOR => "H.Merijn Brand <h.merijn\@xs4all.nl>",
15 VERSION_FROM => "lib/Test/Smoke/Metabase.pm",
16 PREREQ_PM => { "base" => 2.14,
17 "Carp" => 0,
18 "JSON" => 2,
19 "Metabase::Client::Simple" => 0.008,
20 "Metabase::Fact::Hash" => 0.020,
22 BUILD_REQUIRES => { "Test::More" => 0,
25 $ExtUtils::MakeMaker::VERSION > 6.30 and $wm{LICENSE} = "perl";
27 my $rv = WriteMakefile (%wm);
31 package MY;
33 sub postamble
35 my $min_vsn = ($] >= 5.010 && -d "xt" && ($ENV{AUTOMATED_TESTING} || 0) != 1)
36 ? join "\n" =>
37 'test ::',
38 ' -@env TEST_FILES="xt/*.t" make -e test_dynamic',
40 : "";
41 join "\n" =>
42 'cover test_cover:',
43 ' ccache -C',
44 ' cover -test',
45 '',
46 'leaktest:',
47 q{ sandbox/leaktest $(FULLPERLRUN) "test_harness($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)')" $(TEST_FILES)},
48 '',
49 'spellcheck:',
50 ' pod-spell-check --aspell',
51 '',
52 'checkmeta: spellcheck',
53 ' perl sandbox/genMETA.pl -c',
54 '',
55 'fixmeta: distmeta',
56 ' perl sandbox/genMETA.pl',
57 '',
58 'tgzdist: checkmeta fixmeta $(DISTVNAME).tar.gz distcheck',
59 ' -@mv -f $(DISTVNAME).tar.gz $(DISTVNAME).tgz',
60 ' -@cpants_lint.pl $(DISTVNAME).tgz',
61 ' -@rm -f Debian_CPANTS.txt',
62 '',
63 $min_vsn;
64 } # postamble