-
Notifications
You must be signed in to change notification settings - Fork 2
/
Build.PL
39 lines (33 loc) · 1.07 KB
/
Build.PL
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
use strict;
use warnings;
use Module::Build;
use Module::CPANfile;
use builder::MyBuilder;
my $file = Module::CPANfile->load("cpanfile");
my $prereq = $file->prereq_specs;
my $build = builder::MyBuilder->new(
license => 'unknown',
dynamic_config => 0,
build_requires => {
$prereq->{build} ? %{$prereq->{build}->{requires}} : (),
$prereq->{test} ? %{$prereq->{test}->{requires}} : (),
},
configure_requires => {
%{$prereq->{configure}->{requires}},
},
requires => {
perl => '5.008001',
%{$prereq->{runtime}->{requires}},
},
script_files => [glob('script/*'), glob('bin/*')],
no_index => { 'directory' => [ 'inc' ] },
name => 'Pyazo2',
module_name => 'Pyazo2',
author => 'Some Person <[email protected]>',
dist_abstract => 'A web site based on Amon2',
test_files => (-d '.git' || $ENV{RELEASE_TESTING}) ? 't/ xt/' : 't/',
recursive_test_files => 1,
create_readme => 0,
create_license => 0,
);
$build->create_build_script();