From: Robin Edwards Date: Wed, 10 Feb 2010 13:57:12 +0000 (+0000) Subject: ported to module::install X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c78edabf7bd048ba5c7491d2382b7352c338e6e0;p=p5sagit%2FDevel-Declare-Keyword.git ported to module::install --- diff --git a/Makefile.PL b/Makefile.PL index 11af5d1..4842105 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,15 +1,16 @@ -use 5.010000; -use ExtUtils::MakeMaker; -# See lib/ExtUtils/MakeMaker.pm for details of how to influence -# the contents of the Makefile that is written. -WriteMakefile( - NAME => 'Keyword', - VERSION_FROM => 'lib/Keyword.pm', # finds $VERSION - PREREQ_PM => { - 'Devel::Declare'=>0, - 'B::Hooks::EndOfScope'=>0 - }, # e.g., Module::Name => 1.1 - ($] >= 5.005 ? ## Add these new keywords supported since 5.005 - (ABSTRACT_FROM => 'lib/Keyword.pm', # retrieve abstract from module - AUTHOR => 'Robin Edwards ') : ()), -); +use inc::Module::Install; + +# Define metadata +name 'Keyword'; +all_from 'lib/Keyword.pm'; + +# Specific dependencies +requires 'Devel::Declare' => '0.0'; +requires 'B::Hooks::EndOfScope' => '0.0'; +test_requires 'Test::More' => '0.42'; +#recommends 'Text::CSV_XS'=> '0.50'; +no_index 'directory' => 'examples'; +#install_script 'myscript'; +tests "t/*.t t/usecase/*.t"; + +WriteAll;