forked from silug/cpanspec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
50 lines (45 loc) · 1.49 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
use strict;
use warnings;
use Module::Build;
my $class = Module::Build->subclass(
class => 'CpanSpec::Build',
code => q{
use File::Basename qw(dirname);
use FindBin;
sub ACTION_build {
my $self = shift;
$self->SUPER::ACTION_build(@_);
symlink("cpanspec", "$FindBin::Bin/blib/script/cpanget");
symlink("cpanspec.1p", "$FindBin::Bin/blib/bindoc/cpanget.1p");
}
}
);
my $builder = $class->new(
dist_name => 'cpanspec',
license => 'perl',
dist_author => 'Steven Pritchard <[email protected]>',
dist_version_from => 'cpanspec',
requires => {
'Archive::Tar' => 0,
'Archive::Zip' => 0,
'IO::Uncompress::Bunzip2' => 0,
'File::Basename' => 0,
'FileHandle' => 0,
'Getopt::Long' => 0,
'locale' => 0,
'LWP::UserAgent' => 0,
'Module::CoreList' => 0,
'Module::ExtractUse' => 0,
'POSIX' => 0,
'Parse::CPAN::Packages' => 0,
'Pod::Simple::TextContent' => 0,
'Pod::Usage' => 0,
'Text::Autoformat' => 0,
'YAML' => 0,
},
script_files => [
'cpanspec',
],
);
$builder->create_build_script();
# vi: set ai et: