-
Notifications
You must be signed in to change notification settings - Fork 3
/
Build.PL
42 lines (40 loc) · 1.3 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
use strict;
BEGIN {
my @plugins = qw(Repository);
if (! -f "README.mkdn") {
push @plugins, "ReadmeMarkdownFromPod";
}
require Module::Build::Pluggable;
Module::Build::Pluggable->import(@plugins);
}
my $builder = Module::Build::Pluggable->new(
module_name => 'Geest',
license => 'artistic_2',
configure_requires => {
'Module::Build' => '0.40',
'Module::Build::Pluggable' => '0.05',
},
create_makefile_pl => 'small',
requires => {
'AnyEvent' => 0,
'AnyEvent::Socket' => 0,
'AnyEvent::HTTP' => 0,
'HTTP::Message::PSGI' => 0,
'HTTP::Request' => 0,
'HTTP::Response' => 0,
'Log::Minimal' => 0,
'Moo' => '1.000008',
'Plack::Request' => 0,
'Twiggy' => 0,
},
);
$builder->create_build_script;
if (-f "META.yml" && ! -f "MYMETA.yml") { # fallback if we don't have CPAN::Meta
require File::Copy;
File::Copy::copy("META.yml", "MYMETA.yml") or warn "Error: $!\n";
if ( -f 'MYMETA.yml' ) {
warn "Copied META.yml to MYMETA.yml for bootstrapping\n";
} else {
warn "Could not copy META.yml to MYMETA.yml. That's odd!\n";
}
}