5 use ExtUtils::MakeMaker;
8 eval { require Config };
9 die 'OS unsupported' if $@;
10 Config->import(qw/%Config/);
15 my $pl = $Config{perl_patchlevel};
16 print "Checking perl patchlevel... ";
17 if (defined $pl && length $pl) {
19 push @DEFINES, '-DVMG_PERL_PATCHLEVEL=' . $pl;
26 print "Checking if this is Windows ActiveState 5.8.[78]... ";
27 if ($^O eq 'MSWin32' && $^V ge v5.8.7 && $^V lt v5.8.9) {
32 if (defined &Win32::BuildNumber) {
37 print $is_as ? "yes\n" : "no\n";
39 # Threads, Windows and 5.8.x don't seem to be best friends
40 if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
41 push @DEFINES, '-DVMG_MULTIPLICITY=0';
44 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
46 my $dist = 'Variable-Magic';
49 configure_requires => {
51 'ExtUtils::MakeMaker' => 0,
56 'ExtUtils::MakeMaker' => 0,
60 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
61 homepage => "http://search.cpan.org/dist/$dist/",
62 license => 'http://dev.perl.org/licenses/',
63 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
68 NAME => 'Variable::Magic',
69 AUTHOR => 'Vincent Pit <perl@profvince.com>',
71 VERSION_FROM => 'lib/Variable/Magic.pm',
72 ABSTRACT_FROM => 'lib/Variable/Magic.pm',
80 MIN_PERL_VERSION => 5.008,
83 PREOP => 'pod2text lib/Variable/Magic.pm > $(DISTVNAME)/README',
84 COMPRESS => 'gzip -9f', SUFFIX => 'gz'
87 FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"