X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=607a3af245d6a4b0ea4a68f65af61ef00b940bb0;hb=a3414f52cb59bd7397309087ac7cacea1251682b;hp=db972f038df38ae1b37a8b91e02232a6557ff255;hpb=9d17242532bd6fb87d579fa24cc213b265b98e82;p=p5sagit%2FExcel-Template.git diff --git a/Makefile.PL b/Makefile.PL index db972f0..607a3af 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,43 +1,40 @@ -use strict; +use inc::Module::Install; -use ExtUtils::MakeMaker; -{ - no strict 'refs'; - - my $libscan = \&{"ExtUtils::MM_Any::libscan"}; - *{"ExtUtils::MM_Any::libscan"} = sub { - return '' unless $libscan->(@_); - return '' if $_[1] =~ /\.swp$/; - return $_[1]; - }; -} +name 'Excel-Template'; +perl_version '5.006'; +all_from 'lib/Excel/Template.pm'; +author q{Rob Kinyon }; +license 'perl'; +resources( + repository => { + url => 'git://git.shadowcat.co.uk/p5sagit/Excel-Template.git', + web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Excel-Template.git;a=summary', + type => 'git', + }, +); -my $prereqs = { - 'Spreadsheet::WriteExcel' => 0.42, - 'Test::More' => 0.01, - 'XML::Parser' => 0.01, - 'IO::Scalar' => 0.01, - 'File::Basename' => 0.01, -}; +test_requires 'File::Path' => 0; +test_requires 'File::Temp' => 0; +test_requires 'Test::Deep' => '0.095'; +test_requires 'Test::More' => '0.47'; +test_requires 'Test::Exception' => '0.21'; -# The assumption is Perl 5.8.0 and greater doesn't need Unicode::String. +requires 'Test::More' => 0; +requires 'XML::Parser' => 0; +requires 'IO::Scalar' => 0; +requires 'File::Basename' => 0; +requires 'Spreadsheet::WriteExcel' => '0.42'; +requires 'Spreadsheet::WriteExcel::Utility' => 0; -if ($] < 5.008) -{ - eval { require Unicode::String; }; - if ($@) - { - print "Note: If you want to work with Unicode, you will need to install"; - print "the optional module Unicode::String and set USE_UNICODE to true."; - } +if ($] < 5.008) { + print "#\n"; + print "# Note: If you want to work with Unicode, you will need to install\n"; + print "# the optional module Unicode::String and set USE_UNICODE to true.\n"; + print "#\n"; + recommends 'Unicode::String'; } -WriteMakefile( - NAME => 'Excel::Template', - VERSION_FROM => 'lib/Excel/Template.pm', # finds $VERSION - ABSTRACT => 'Excel::Template', - PREREQ_PM => $prereqs, - ($] >= 5.005 ? - (ABSTRACT_FROM => 'lib/Excel/Template.pm', - AUTHOR => 'Rob Kinyon (rob.kinyon@gmail.com)') : ()), -); +auto_install; + +WriteAll; +