]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blob - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/Scope-Upper.git] / Makefile.PL
1 use 5.006;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my @DEFINES;
8
9 # Threads, Windows and 5.8.x don't seem to be best friends
10 if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
11  push @DEFINES, '-DSU_MULTIPLICITY=0';
12 }
13
14 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
15
16 my $dist = 'Scope-Upper';
17
18 my %PREREQ_PM = (
19  'Exporter' => 0,
20  'XSLoader' => 0,
21  'base'     => 0,
22 );
23
24 my %META = (
25  configure_requires => {
26   'ExtUtils::MakeMaker' => 0,
27  },
28  build_requires => {
29   'ExtUtils::MakeMaker' => 0,
30   'Test::More'          => 0,
31   %PREREQ_PM,
32  },
33  dynamic_config => 1,
34  resources => {
35   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
36   homepage   => "http://search.cpan.org/dist/$dist/",
37   license    => 'http://dev.perl.org/licenses/',
38   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
39  },
40 );
41
42 WriteMakefile(
43     NAME             => 'Scope::Upper',
44     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
45     LICENSE          => 'perl',
46     VERSION_FROM     => 'lib/Scope/Upper.pm',
47     ABSTRACT_FROM    => 'lib/Scope/Upper.pm',
48     PL_FILES         => {},
49     @DEFINES,
50     PREREQ_PM        => \%PREREQ_PM,
51     MIN_PERL_VERSION => 5.006,
52     META_MERGE       => \%META,
53     dist             => {
54         PREOP    => 'pod2text lib/Scope/Upper.pm > $(DISTVNAME)/README',
55         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
56     },
57     clean            => {
58         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
59     },
60 );
61
62 package MY;
63
64 sub postamble {
65  return <<'POSTAMBLE';
66 testdeb: all
67         PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES)
68 POSTAMBLE
69 }