Commit | Line | Data |
fcd84ca9 |
1 | use Module::Build; |
2 | |
3 | use strict; |
4 | |
3c2bc5e2 |
5 | # Scalar::Util 1.18 doesn't work on Windows |
6 | my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' ); |
7 | |
fcd84ca9 |
8 | my $build = Module::Build->new( |
9 | module_name => 'Moose', |
10 | license => 'perl', |
11 | requires => { |
3c2bc5e2 |
12 | 'Scalar::Util' => $win32 ? '1.17' : '1.18', |
7f18097c |
13 | 'Carp' => '0', |
093b12c2 |
14 | 'Class::MOP' => '0.35', |
7f18097c |
15 | 'Sub::Name' => '0.02', |
72c4f6d1 |
16 | 'Sub::Exporter' => '0.954', |
31f8ec72 |
17 | 'Sub::Install' => '0.92', |
18 | 'B' => '0', |
fcd84ca9 |
19 | }, |
20 | optional => { |
21 | }, |
22 | build_requires => { |
5ce7e5b8 |
23 | 'Test::More' => '0.62', |
24 | 'Test::Exception' => '0.21', |
25 | 'Test::LongString' => '0', |
fcd84ca9 |
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 | |