- round the dimensions used within the legend to integers to prevent
[imager-graph.git] / Makefile.PL
index 7dbb1ed..bf86895 100644 (file)
@@ -1,15 +1,26 @@
-# Imager::Graph
+#!perl -w
+use strict;
+require 5.005;
 use ExtUtils::MakeMaker;
 my %opts;
-if ($] ge '5.005') {
+# eval to prevent warnings about versions with _ in them
+my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
+if ($MM_ver > 6.06) {
   $opts{AUTHOR} = 'Tony Cook <tony@develop-help.com>';
   $opts{ABSTRACT} = 'Draws good looking pie graphs';
 }
+if ($MM_ver >= 6.31) {
+  $opts{LICENSE} = 'perl';
+}
 
 WriteMakefile(
               %opts,
               'NAME'          => 'Imager::Graph',
               'VERSION_FROM'  => 'Graph.pm', # finds $VERSION
-              PREREQ_PM       => { Imager=>'0.38' },
+              PREREQ_PM       => 
+             { 
+              Imager=>'0.61',
+              'Test::More' => 0.47
+             },
               clean => { FILES=>'testout' },
 );