Removing the use of UNIVERSAL::require
[gitmo/Moose.git] / Build.PL
1 use Module::Build;
2
3 use strict;
4
5 # Scalar::Util 1.18 doesn't work on Windows
6 my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' );
7
8 my $build = Module::Build->new(
9     module_name => 'Moose',
10     license => 'perl',
11     requires => {
12         'Scalar::Util'       => $win32 ? '1.17' : '1.18',
13         'Carp'               => '0',
14         'Class::MOP'         => '0.34',
15         'Sub::Name'          => '0.02',
16         'Sub::Exporter'      => '0.954',
17         'Sub::Install'       => '0.92',   
18         'B'                  => '0',             
19     },
20     optional => {
21     },
22     build_requires => {
23         'Test::More'       => '0.62',
24         'Test::Exception'  => '0.21',
25         'Test::LongString' => '0',
26     },
27     create_makefile_pl => 'traditional',
28     recursive_test_files => 1,
29     add_to_cleanup => [
30         'META.yml', '*.bak', '*.gz', 'Makefile.PL',
31     ],
32 );
33
34 $build->create_build_script;
35