-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild.PL
More file actions
99 lines (79 loc) · 2.29 KB
/
Copy pathBuild.PL
File metadata and controls
99 lines (79 loc) · 2.29 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
use strict;
use warnings;
use Module::Build;
my $class = Module::Build->subclass(
class => 'My::Builder',
code => <<'END_CODE',
sub ACTION_authortest {
my ($self) = @_;
$self->depends_on('build');
$self->test_files( qw< t xt/author > );
$self->depends_on('test');
return;
}
sub ACTION_releasetest {
my ($self) = @_;
$self->depends_on('build');
$self->test_files( qw< t xt/author xt/release > );
$self->depends_on('test');
return;
}
sub ACTION_manifest {
my ($self, @arguments) = @_;
if (-e 'MANIFEST') {
unlink 'MANIFEST' or die "Can't unlink MANIFEST: $!";
}
return $self->SUPER::ACTION_manifest(@arguments);
}
sub ACTION_distmeta {
my ($self) = @_;
$self->depends_on('manifest');
return $self->SUPER::ACTION_distmeta();
}
END_CODE
);
my $builder = $class->new(
module_name => 'WiX3',
license => 'perl',
dist_author => 'Curtis Jewell <csjewell@cpan.org>',
dist_version_from => 'lib/WiX3.pm',
create_makefile_pl => 'small',
create_license => 1,
create_readme => 1,
# Do not remove. Directories in t/ require it.
recursive_test_files => 1,
configure_requires => {
'Module::Build' => '0.33',
},
build_requires => {
'Test::More' => '0.61',
'Test::UseAllModules' => '0.12',
},
requires => {
'perl' => 5.008003, # Because Moose 2.0001 requires it.
'parent' => '0.221',
'Exception::Class' => '1.29',
'List::MoreUtils' => '>= 0.22, != 0.23, != 0.24',
'Data::UUID' => '1.202',
'Dist::CheckConflicts' => '0.02', # Help out a bit...
'Params::Util' => '1.00',
'Moose' => '2.0301',
'MooseX::Singleton' => '0.25',
'MooseX::Types' => '0.24',
'namespace::autoclean' => '0.08',
'Regexp::Common' => '2.122',
'Readonly' => '1.03',
},
recommends => {
'Readonly::XS' => '1.05',
},
meta_merge => {
resources => {
homepage => 'http://csjewell.comyr.com/',
bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=WiX3',
repository => 'http://hg.curtisjewell.name/WiX3',
},
},
add_to_cleanup => [ 'WiX3-*' ],
);
$builder->create_build_script();