-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
76 lines (68 loc) · 1.57 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
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
my @requires = qw(
Apache2::CmdParms
Apache2::Connection
Apache2::Const
Apache2::Cookie
Apache2::Directive
Apache2::Module
Apache2::Request
Apache2::RequestIO
Apache2::RequestRec
Apache2::RequestUtil
Apache::Session
Apache::Session::File
DateTime
Digest::SHA
English
Exception::Class
ExtUtils::MakeMaker
File::Spec
File::Temp
FindBin
HTTP::Status
List::MoreUtils
Log::Dispatch
Log::Log4perl
Net::OpenID::Consumer
Readonly
Scalar::Util
Template
Test::More
URI
YAML::Syck
version
);
my @build_requires = qw(
Apache::TestMM
Apache::TestRequest
Apache::TestRunPerl
Apache::TestUtil
Net::OpenID::Server
HTTP::Server::Simple::CGI
Math::BigInt::GMP
URI::Escape
LWP
HTTP::Cookies
);
my @recommends = qw(
LWPx::ParanoidAgent
IPC::Open3
);
use Module::Build;
eval 'require Apache::TestMB';
my $build_pkg = $@ ? 'Module::Build' : 'Apache::TestMB';
my $build = $build_pkg->new(
module_name => 'Apache2::Controller',
license => 'perl',
build_requires => {
'Apache::Test' => '1.12',
(map {($_ => 0)} @build_requires)
},
requires => { map {($_ => 0)} @requires },
recommends => { map {($_ => 0)} @recommends },
create_makefile_pl => 'passthrough',
dist_author => 'Mark Hedges <[email protected]>',
dist_version_from => 'lib/Apache2/Controller.pm',
add_to_cleanup => [qw( t/TEST )],
);
$build->create_build_script;