forked from StrawberryPerl/Perl-Dist-Strawberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
83 lines (79 loc) · 2.71 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
76
77
78
79
80
81
82
83
use strict;
use warnings;
use Module::Build;
warn "For MS Windows only\n" and exit 0 if $^O ne 'MSWin32';
my $class = Module::Build->subclass(
class => 'My::Builder',
code => <<'CODE',
sub ACTION_xtest {
my $self = shift;
$self->depends_on(qw[build manifest distmeta]);
$self->test_files(qw[t xt]);
$self->depends_on('test');
return;
}
CODE
);
my $builder = $class->new(
module_name => 'Perl::Dist::Strawberry',
license => 'perl',
dist_author => 'KMX <kmx@cpan.org>',
dist_version_from => 'lib/Perl/Dist/Strawberry.pm',
create_license => 1,
create_readme => 1,
share_dir => { dist => 'share' },
script_files => [ 'script/perldist_strawberry' ],
configure_requires => {
'Module::Build' => '0.38',
},
requires => {
'perl' => '5.012',
'Module::Build' => '0.38',
},
build_requires => {
'Test::More' => '0.86',
'Archive::Tar' => 0,
'Archive::Zip' => 0,
'Data::Dump' => 0,
'Data::UUID' => 0,
'Digest::SHA1' => 0,
'ExtUtils::MakeMaker' => 0,
'File::Basename' => 0,
'File::Copy' => 0,
'File::Copy::Recursive' => 0,
'File::Find::Rule' => 0,
'File::Glob' => 0,
'File::Path' => '2.04',
'File::ShareDir' => 0,
'File::Slurp' => 0,
'File::Spec' => '3.2701',
'File::pushd' => 0,
'Getopt::Long' => 0,
'HTML::Entities' => 0,
'IO::Capture' => 0,
'IPC::Run3' => 0,
'LWP::UserAgent' => 0,
'Pod::Usage' => 0,
'Portable::Dist' => '1.06',
'Storable' => 0,
'Template' => 0,
'Text::Diff' => 0,
'Text::Patch' => 0,
'URI::file' => 0,
'Win32::TieRegistry' => 0,
'Win32::File::Object' => 0,
},
meta_merge => {
resources => {
repository => 'https://github.com/StrawberryPerl/Perl-Dist-Strawberry',
homepage => 'http://strawberryperl.com/',
bugtracker => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Dist-Strawberry',
MailingList => "http://groups.google.com/group/perl.win32.vanilla",
IRC => "irc://irc.perl.org/#win32",
},
no_index => {
directory => [ 'share', 'HelperCA.dll_src' ],
}
},
);
$builder->create_build_script();