5 use ExtUtils::MakeMaker;
9 my $pl = $Config{perl_patchlevel};
10 my $desc = $Config{git_describe};
12 $_ = undef unless defined and length;
17 print "Checking if this is an official release of perl... ";
18 my $is_release = ("$]" < 5.011) ? (defined($pl) || defined($desc) ? 0 : 1)
19 : (defined($desc) ? 0 : 1);
20 push @DEFINES, "-DSU_RELEASE=$is_release";
21 print $is_release ? "yes\n" : "no\n";
23 # Threads, Windows and 5.8.x don't seem to be best friends
24 if ($^O eq 'MSWin32' && "$]" < 5.009) {
25 push @DEFINES, '-DSU_MULTIPLICITY=0';
28 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
30 my $dist = 'Scope-Upper';
32 (my $name = $dist) =~ s{-}{::}g;
34 (my $file = $dist) =~ s{-}{/}g;
35 $file = "lib/$file.pm";
44 configure_requires => {
46 'ExtUtils::MakeMaker' => 0,
49 'ExtUtils::MakeMaker' => 0,
55 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
56 homepage => "http://search.cpan.org/dist/$dist/",
57 license => 'http://dev.perl.org/licenses/',
58 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
64 AUTHOR => 'Vincent Pit <perl@profvince.com>',
66 VERSION_FROM => $file,
67 ABSTRACT_FROM => $file,
70 PREREQ_PM => \%PREREQ_PM,
71 MIN_PERL_VERSION => 5.006,
74 PREOP => "pod2text -u $file > \$(DISTVNAME)/README",
75 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
78 FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
87 PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" $(FULLPERLRUN) -MTAP::Harness -e 'TAP::Harness->new({verbosity => q{$(VERBOSE)}, lib => [ q{$(INST_LIB)}, q{$(INST_ARCHLIB)} ], switches => [ q{-d} ]})->runtests(@ARGV)' $(TEST_FILES)