]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blob - Makefile.PL
Give an explicit value to dynamic_config
[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 %META = (
19  configure_requires => {
20   'ExtUtils::MakeMaker' => 0,
21  },
22  build_requires => {
23   'ExtUtils::MakeMaker' => 0,
24   'Test::More'          => 0,
25  },
26  dynamic_config => 1,
27  resources => {
28   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
29   homepage   => "http://search.cpan.org/dist/$dist/",
30   license    => 'http://dev.perl.org/licenses/',
31   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
32  },
33 );
34
35 WriteMakefile(
36     NAME             => 'Scope::Upper',
37     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
38     LICENSE          => 'perl',
39     VERSION_FROM     => 'lib/Scope/Upper.pm',
40     ABSTRACT_FROM    => 'lib/Scope/Upper.pm',
41     PL_FILES         => {},
42     @DEFINES,
43     PREREQ_PM        => {
44         'Exporter' => 0,
45         'XSLoader' => 0,
46         'base'     => 0,
47     },
48     MIN_PERL_VERSION => 5.006,
49     META_MERGE       => \%META,
50     dist             => {
51         PREOP    => 'pod2text lib/Scope/Upper.pm > $(DISTVNAME)/README',
52         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
53     },
54     clean            => {
55         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
56     },
57 );
58
59 package MY;
60
61 sub postamble {
62  return <<'POSTAMBLE';
63 testdeb: all
64         PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES)
65 POSTAMBLE
66 }