Skip to content

Commit

Permalink
minimum version of P:G:G if installed to avoid gnuplot 6 breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Sep 24, 2024
1 parent 4a5bda3 commit 18683f7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ FOO
my %prereq = ( 'PDL' => '2.089', # contour_polylines
'File::Temp' => 0,
'Time::HiRes' => 0);
my %min_version = (
'PDL::Graphics::Gnuplot' => '2.029', # Gnuplot 6 warnings fixes
);
for my $opt_dep (sort keys %min_version) {
(my $file = $opt_dep) =~ s#::#/#g;
next if !eval { require "$file.pm"; 1 }; # not installed, fine
next if eval { $opt_dep->VERSION($min_version{$opt_dep}); 1 };
$prereq{$opt_dep} = $min_version{$opt_dep};
}

WriteMakefile(
NAME => 'PDL::Graphics::Simple',
Expand Down

0 comments on commit 18683f7

Please sign in to comment.