forked from cosimo/Net-OAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuild.PL
41 lines (37 loc) · 1.19 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
use strict;
use warnings;
use Module::Build;
shift(@ARGV) if defined $ARGV[0] and $ARGV[0] eq 'Build'; # accomodate with CPAN autoinstall
my $builder = Module::Build->new(
module_name => 'Net::OAuth',
license => 'perl',
dist_author => 'Keith Grennan <[email protected]>',
dist_version_from => 'lib/Net/OAuth.pm',
dist_abstract => 'An implementation of the OAuth protocol',
build_requires => {
'Test::More' => '0.66',
'Test::Warn' => '0.21',
},
requires => {
'Digest::HMAC_SHA1' => '1.01',
'URI::Escape' => '3.28',
'Class::Accessor' => '0.31',
'Class::Data::Inheritable' => '0.06',
'Digest::SHA1' => '2.12',
'Encode' => '2.35',
'LWP::UserAgent' => '1',
},
add_to_cleanup => [ 'Net-OAuth-*' ],
create_makefile_pl => 'passthrough',
);
$builder->create_build_script();
__END__
# handy lister of installed dependency versions
use Data::Dumper;
my $requires = $builder->build_requires;
for my $mod (keys %$requires) {
eval "require $mod";
$requires->{$mod} = eval "\$$mod\::VERSION";
}
print "Current dependency versions:\n";
print Dumper $requires;