-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
66 lines (56 loc) · 1.59 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
use 5.006;
use strict;
use warnings;
use Module::Build;
# Use Build.PL for author dist-tools
# - use Makefile.PL to install
#
# perl Build.PL
# ./Build # builds README
# ./Build manifest # updates MANIFEST
# ./Build dist # generates new tarball
#
my $class = Module::Build->subclass(
class => 'My::Builder',
code => q{
sub ACTION_dist {
use Pod::Readme;
use Pod::Select;
my $self = shift;
podselect({ -output => 'README.pod' }, 'lib/Mojolicious/Command/generate/dbicdump.pm');
my $parser = Pod::Readme->new();
$parser->parse_from_file('README.pod', 'README');
unlink 'README.pod';
$self->log_info("Creating README from pod\n");
return $self->SUPER::ACTION_dist;
}
}
);
my $builder = $class->new(
module_name => 'Mojolicious::Command::generate::dbicdump',
license => 'perl',
dist_author => q{Alister West <[email protected]>},
dist_version_from => 'lib/Mojolicious/Command/generate/dbicdump.pm',
build_requires => {
'Test::More' => 0,
},
configure_requires => {
'Module::Build' => 0,
},
recommends => {
'Pod::Readme' => 0,
'Pod::Select' => 0,
},
requires => {
'perl' => 5.006,
'DBIx::Class::Schema::Loader' => 0,
},
add_to_cleanup => [qw/
Mojolicious-Command-generate-dbicdump-*
blib
MYMETA.*
MANIFEST.*
/],
create_makefile_pl => 'traditional',
);
$builder->create_build_script();