View | Details | Raw Unified | Return to bug 3822
Collapse All | Expand All

(-)Makefile.PL (+23 lines)
Lines 183-188 Link Here
183
    },
183
    },
184
184
185
    # be quite explicit about this; afaik CPAN.pm is sensible using this
185
    # be quite explicit about this; afaik CPAN.pm is sensible using this
186
    # also see CURRENT_PM below
186
    'PREREQ_PM' => {
187
    'PREREQ_PM' => {
187
        'Digest::SHA1'  => 0,             # 2.0 is oldest tested version
188
        'Digest::SHA1'  => 0,             # 2.0 is oldest tested version
188
        'File::Spec'    => 0.8,           # older versions lack some routines we need
189
        'File::Spec'    => 0.8,           # older versions lack some routines we need
Lines 234-244 Link Here
234
    # Don't add META.yml to the MANIFEST for god's sake!
235
    # Don't add META.yml to the MANIFEST for god's sake!
235
    'NO_META' => 1,
236
    'NO_META' => 1,
236
);
237
);
238
237
# That META.yml stuff was introduced with Perl 6.06_03, see
239
# That META.yml stuff was introduced with Perl 6.06_03, see
238
# <http://archive.develooper.com/makemaker@perl.org/msg00922.html>
240
# <http://archive.develooper.com/makemaker@perl.org/msg00922.html>
239
# <http://archive.develooper.com/makemaker@perl.org/msg00984.html>
241
# <http://archive.develooper.com/makemaker@perl.org/msg00984.html>
240
delete $makefile{'NO_META'} if $mm_version < 6.06_03;
242
delete $makefile{'NO_META'} if $mm_version < 6.06_03;
241
243
244
# make sure certain optional modules are up-to-date if they are installed
245
# also see PREREQ_PM above
246
my %CURRENT_PM = (
247
    'Net::DNS' => (RUNNING_ON_WINDOWS ? 0.46 : 0.34),
248
    'Razor2::Client::Agent' => 2.40,
249
);
242
250
243
if (bool($opt{'__cruft'}, 0) and not bool($opt{'ignore_cruft'}, 0)) {
251
if (bool($opt{'__cruft'}, 0) and not bool($opt{'ignore_cruft'}, 0)) {
244
  my $error = <<OLD_CRUFT;
252
  my $error = <<OLD_CRUFT;
Lines 411-416 Link Here
411
}
419
}
412
else {
420
else {
413
  unlink("t/bayessql.cf");
421
  unlink("t/bayessql.cf");
422
}
423
424
# check optional module versions
425
while (my ($module, $version) = each %CURRENT_PM) {
426
  my $eval = "require $module";
427
  eval $eval;
428
429
  if ($@) {
430
    next;
431
  }
432
  elsif ($module->VERSION < $version) {
433
    warn("Warning: optional module $module $version not found (" .
434
	 $module->VERSION .
435
	 " currently installed)");
436
  }
414
}
437
}
415
438
416
#######################################################################
439
#######################################################################

Return to bug 3822