Remove usage of defined %hash in test for perl 5.21.x and later
[Nagios-Plugin.git] / Makefile.PL
blobfa4ab35e6ec26811eee6ab4bcb9a2b2d63a7aaf7
1 use 5.006;
2 use ExtUtils::MakeMaker;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
5 WriteMakefile(
6     NAME              => 'Nagios::Monitoring::Plugin',
7     VERSION_FROM      => 'lib/Nagios/Monitoring/Plugin/Functions.pm', # finds $VERSION
8     PREREQ_PM         => {
9         Params::Validate    => 0,
10         Class::Accessor     => 0,
11         Test::More              => 0.62,
12         Carp                => 0,
13         Config::Tiny        => 0,
14         File::Spec          => 0,
15         File::Basename      => 0,
16         IO::File            => 0,
17         Math::Calc::Units   => 0,           # used in N::P::Performance
18     }, # e.g., Module::Name => 1.1
19     ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
20       (ABSTRACT_FROM  => 'lib/Nagios/Monitoring/Plugin.pm', # retrieve abstract from module
21        AUTHOR         => 'Nagios Plugin Development Team <nagiosplug-devel@lists.sourceforge.net>') : ()),