Skip to content

Commit

Permalink
Once again don't allow installation if gnuplot isn't installed
Browse files Browse the repository at this point in the history
This is more for CPAN-testers than anything else
  • Loading branch information
dkogan committed Aug 6, 2012
1 parent 7beb45b commit 835606b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile.PL
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,20 +18,23 @@ sub parseversion
return $version; return $version;
} }


# make sure we can run gnuplot # make sure we can run gnuplot before continuing
{ {
unless( open( my $pipe, '|-', 'gnuplot' )) unless( open( my $pipe, '|-', 'gnuplot' ))
{ {
print STDERR <<EOM; print STDERR <<EOM;
Error: "$!" Error: "$!"
I tried to execute 'gnuplot' and it didn't work. Since this module is an I tried to execute 'gnuplot' and it didn't work. Since this module is an is an
interface to Gnuplot, it must be installed for the module to be useful. I'll go interface to Gnuplot, it must be installed for the module to be useful. Install
ahead and build PDL::Graphics::Gnuplot, but it'll be useless without gnuplot. Gnuplot to continue. Use your package manager, or download the source from
THE UNIT TESTS WILL FAIL until gnuplot is installed. Use your package manager, http://www.gnuplot.info
or download the source from http://www.gnuplot.info
EOM EOM

# This exit is mostly for cpan testers to not tell me that my module is
# broken
exit 0;
} }
} }


Expand Down

0 comments on commit 835606b

Please sign in to comment.