/
Build.PL
executable file
·51 lines (47 loc) · 2.21 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
use strict;
use Module::Build;
my $build_class = 'Module::Build';
$build_class = $build_class->subclass(code => q{
sub process_install_files {
system("mkdir -p blib/lib/auto/OurCal");
system("cp -r templates images index.cgi blib/lib/auto/OurCal");
}
},
);
my $build = $build_class
->new( module_name => "OurCal",
license => 'perl',
version_from => 'lib/OurCal.pm',
script => [ ],
requires => {
'CGI' => 0,
'CGI::Carp' => 0,
'Carp' => 0,
'Config::INI::Reader' => 0,
'DBI' => 0,
'Data::ICal::DateTime' => 0,
'Data::ICal::Entry::Event' => 0,
'DateTime' => 0,
'DateTime::Span' => 0,
'Digest::MD5' => 0,
'File::Path' => 0,
'File::ShareDir' => 0,
'File::Spec' => 0,
'HTTP::Date' => 0,
'LWP::Simple' => 0,
'Lingua::EN::Numbers::Ordinate' => 0,
'Module::Pluggable' => 0,
'Storable' => 0,
'Template' => 0,
'Template::Plugin::Class' => 0,
'Template::Plugin::Chump' => 0,
'Test::More' => '0.62',
'Text::Chump' => 0,
'UNIVERSAL::require' => 0,
'URI::Find::Simple' => 0,
},
create_makefile_pl => 'passthrough',
);
#$build->{config}{__extras_from} = [ 'templates', 'images', 'index.cgi' ];
$build->add_build_element('install');
$build->create_build_script;