forked from Perl-Critic/Perl-Critic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
99 lines (82 loc) · 2.63 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
use 5.006001;
use strict;
use warnings;
use Module::Build 0.4200;
# meta_merge->resources->license now takes an arrayref of URLs in 0.4200 (or
# thereabouts, but I can't tell for sure from the Changes file).
use lib 'inc';
use Perl::Critic::BuildUtilities qw<
required_module_versions
build_required_module_versions
emit_tar_warning_if_necessary
get_PL_files
>;
use Perl::Critic::Module::Build;
emit_tar_warning_if_necessary();
my $builder = Perl::Critic::Module::Build->new(
module_name => 'Perl::Critic',
dist_author => 'Jeffrey Thalhammer <[email protected]>',
dist_abstract => 'Critique Perl source code for best-practices.',
license => 'perl',
dynamic_config => 1,
create_readme => 1,
create_packlist => 1,
sign => 0,
requires => { required_module_versions() },
build_requires => { build_required_module_versions() },
# Don't require a developer version of Module::Build, even if the
# distribution tarball was created with one. (Oops.)
configure_requires => {
'Module::Build' => '0.4024',
},
PL_files => get_PL_files(),
script_files => ['bin/perlcritic'],
meta_merge => {
resources => {
bugtracker => 'https://github.com/Perl-Critic/Perl-Critic/issues',
homepage => 'http://perlcritic.com',
license => [ 'http://dev.perl.org/licenses' ],
MailingList => 'http://perlcritic.tigris.org/servlets/SummarizeList?listName=users',
repository => 'git://github.com/Perl-Critic/Perl-Critic.git',
},
no_index => {
file => [
qw<
TODO.pod
>
],
directory => [
qw<
doc
inc
tools
xt
>
],
},
x_authority => 'cpan:CRITICRE',
},
add_to_cleanup => [
qw<
Debian_CPANTS.txt
Makefile
Makefile.old
MANIFEST.bak
META.json
META.yml
pm_to_blib
README
>,
values %{ get_PL_files() },
],
);
$builder->create_build_script();
##############################################################################
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 78
# indent-tabs-mode: nil
# c-indentation-style: bsd
# End:
# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround :