1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
# Build.PL
use strict; use warnings;
use Module::Build;
my $build = Module::Build->new(
# look up Module::Build::API for the info!
'dynamic_config' => 0,
'module_name' => 'Test::Apocalypse',
'license' => 'perl',
'dist_abstract' => "Apocalypse's favorite tests bundled into a simple interface",
'dist_author' => 'Apocalypse <APOCAL@cpan.org>',
'create_packlist' => 1,
'create_makefile_pl' => 'traditional',
'create_readme' => 1,
'create_license' => 1,
'sign' => 0,
'test_files' => 't/*.t',
'add_to_cleanup' => [ 'META.yml', 'Makefile.PL', 'README', 'Makefile', 'LICENSE' ], # automatically generated
'requires' => {
# Test stuff
'Test::More' => 0,
'Test::Compile' => 0,
'Test::Perl::Critic' => 0,
'Test::Dependencies' => 0,
'Test::Distribution' => 0,
'Test::Fixme' => 0,
'Test::HasVersion' => 0,
'Test::MinimumVersion' => 0,
'Test::Pod::Coverage' => 0,
'Test::Spelling' => 0,
'Test::Pod' => 0,
'Test::Prereq' => 0,
'Test::Prereq::Build' => 0,
'Test::Strict' => 0,
'Test::UseAllModules' => 0,
'Test::YAML::Meta' => 0,
'Test::NoWarnings' => 0,
'Test::CheckChanges' => 0,
'Test::File' => 0,
'Test::Dir' => 0,
'Test::Signature' => 0,
'Test::Portability::Files' => 0,
'Test::DistManifest' => 0,
'Test::Module::Used' => 0,
'Test::Synopsis' => 0,
# handy tools
'File::Spec' => 0,
'File::Find::Rule' => 0,
'Module::CPANTS::Analyse' => 0,
'Perl::Metrics::Simple' => 0,
'Test::Block' => 0,
'YAML' => 0,
'version' => 0,
'CPANPLUS::Backend' => 0,
'CPANPLUS::Configure' => 0,
'Devel::PPPort' => 0,
'Module::CoreList' => 0,
# we need a recent perl
'perl' => '5.008',
},
# include the standard stuff in META.yml
'meta_merge' => {
'resources' => {
'license' => 'http://dev.perl.org/licenses/',
'homepage' => 'http://search.cpan.org/dist/Test-Apocalypse',
'bugtracker' => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Apocalypse',
'repository' => 'http://github.com/apocalypse/perl-test-apocalypse',
},
},
);
# all done!
$build->create_build_script;
|