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