X-Git-Url: http://git.imager.perl.org/imager-graph.git/blobdiff_plain/35574351b59a1859aae3fe050b5ad77217a40526..dabc03139a104906303d3785435fedc00f64c0dc:/Makefile.PL diff --git a/Makefile.PL b/Makefile.PL index 7dbb1ed..5036f67 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,15 +1,42 @@ -# Imager::Graph +#!perl -w +use strict; +require 5.006; 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 '; - $opts{ABSTRACT} = 'Draws good looking pie graphs'; + $opts{ABSTRACT} = 'Draws good looking charts'; +} +if ($MM_ver >= 6.31) { + $opts{LICENSE} = 'perl'; +} +if ($MM_ver >= 6.46) { + $opts{META_MERGE} = + { + license => "perl", + resources => + { + homepage => "http://imager.perl.org/", + repository => "git://git.imager.perl.org/imager-graph.git", + bugtracker => "http://rt.cpan.org/NoAuth/Bugs.html?Dist=Imager-Graph", + }, + }; +} + +if ($MM_ver >= 6.48) { + $opts{MIN_PERL_VERSION} = "5.006"; } WriteMakefile( %opts, 'NAME' => 'Imager::Graph', 'VERSION_FROM' => 'Graph.pm', # finds $VERSION - PREREQ_PM => { Imager=>'0.38' }, + PREREQ_PM => + { + Imager=>'0.75', + 'Test::More' => 0.47 + }, clean => { FILES=>'testout' }, );