-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathBuild.PL
105 lines (93 loc) · 3.33 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
100
101
102
103
104
use 5.014000;
use strict;
use warnings FATAL => 'all';
use FindBin;
use lib("$FindBin::Bin/lib");
use Ado::Build;
#unset temporarily $ENV{TEST_AUTHOR}
#to generate fewer dependencies dynamically
#see http://localhost:3000/perldoc/CPAN/Meta/Spec#dynamic_config
my $author = {
build_requires => {
#Modules for QA - while developping
'Perl::Tidy' => '20140711',
'Test::Output' => '1.03',
'Perl::Critic' => '1.124',
'Test::Perl::Critic' => '1.02',
'Test::CheckManifest' => '1.28',
'Test::Pod::Coverage' => '1.10',
'Test::Pod' => '1.48',
'Lingua::Ispell' => '0',
'Test::Pod::Spelling' => '0.4',
'Devel::Cover' => '1.15',
'Test::Exception' => '0.32',
'Test::Differences' => '0.62',
'Pod::Markdown' => '2.002',
},
configure_requires => {},
requires => {
#To develop and test advanced functionality
#This should go as "recommends" for regular users
#when we have functionality depending on these
'IO::Socket::SSL' => '2.039',
'EV' => '4.22',
'IO::Socket::IP' => '0.37',
#'DBD::mysql' => '4.025',
},
};
my $builder = Ado::Build->new(
module_name => 'Ado',
license => 'lgpl_3_0',
$ENV{TEST_AUTHOR} ? (create_readme => 1) : (),
dist_author => q{Красимир Беров <[email protected]>},
#release_status => 'unstable',
configure_requires => {
'Module::Build' => '0.42',
$ENV{TEST_AUTHOR} ? (%{$$author{configure_requires}}) : (),
},
build_requires => {
'Module::Build' => '0.42',
'Test::More' => '0',
$ENV{TEST_AUTHOR} ? (%{$$author{build_requires}}) : (),
},
requires => {
'perl' => '5.14.0',
'Mojolicious' => '7.43',
'Mojolicious::Plugin::DSC' => '1.005',
'Mojolicious::Plugin::SemanticUI' => '0.17',
'Mojolicious::Plugin::OAuth2' => '1.52',
'DBIx::Simple::Class' => '1.009',
'Email::Address' => '1.905',
'Locale::Maketext' => '1.25',
$ENV{TEST_AUTHOR} ? (%{$$author{requires}}) : (),
#Default markdown renderer
'Text::MultiMarkdown' => '1.000035',
},
recommends => {
'DBD::SQLite' => '1.52',
'SQL::Abstract' => '1.78',
# Either
'Plack' => '1.0030',
'FCGI' => '0.74',
'FCGI::ProcManager' => '0.24',
'Apache::LogFormat::Compiler' => '0',
# or
'Mojo::Server::FastCGI' => '0.41',
},
recursive_test_files => 1,
meta_merge => {
resources => {
repository => "https://github.com/kberov/Ado",
bugtracker => "https://github.com/kberov/Ado/issues",
},
keywords => [qw/Ado Mojolicious realtime web ERP REST CMS enterprise/],
no_index => {namespace => ['Ado::Model'],}
},
script_files => 'bin',
add_to_cleanup => [
'Ado-*', '*.bak',
'public/doc/**/*.html', 'public/articles/*.html',
'public/articles/**/*.html', 't/ado/etc/ado.sqlite'
],
);
$builder->create_build_script();