5 use ExtUtils::MakeMaker;
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';
14 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
16 my $dist = 'Scope-Upper';
18 (my $name = $dist) =~ s{-}{::}g;
20 (my $file = $dist) =~ s{-}{/}g;
21 $file = "lib/$file.pm";
30 configure_requires => {
31 'ExtUtils::MakeMaker' => 0,
34 'ExtUtils::MakeMaker' => 0,
40 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
41 homepage => "http://search.cpan.org/dist/$dist/",
42 license => 'http://dev.perl.org/licenses/',
43 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
49 AUTHOR => 'Vincent Pit <perl@profvince.com>',
51 VERSION_FROM => $file,
52 ABSTRACT_FROM => $file,
55 PREREQ_PM => \%PREREQ_PM,
56 MIN_PERL_VERSION => 5.006,
59 PREOP => "pod2text $file > \$(DISTVNAME)/README",
60 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
63 FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
72 PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES)