-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
66 lines (57 loc) · 2.13 KB
/
Makefile.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
use strict;
use warnings;
use ExtUtils::MakeMaker qw(WriteMakefile prompt);
require 't/_test_util_config.pl';
mkdir 'blib' unless -d 'blib';
print <<EOT;
==
== Live testing requires that you enter your
== cloud.scorm.com AppId and SecretKey.
==
EOT
my $answer = prompt('== Do you want to run the live tests?', 'no');
if ($answer =~ /^y/i)
{
createTestConfigInfo(skip_live_tests => 0);
}
else
{
print "Live tests will be skipped.\n";
createTestConfigInfo(skip_live_tests => 1);
}
sub license
{
my $license = shift;
local $^W = 0; # silence warning about non-numeric version
return unless $ExtUtils::MakeMaker::VERSION >= 6.3002;
return (LICENSE => $license);
}
WriteMakefile(
NAME => 'WebService::ScormCloud',
AUTHOR => q{Larry Leszczynski <[email protected]>},
VERSION_FROM => 'lib/WebService/ScormCloud.pm',
ABSTRACT_FROM => 'lib/WebService/ScormCloud.pm',
license('perl'),
PL_FILES => {},
PREREQ_PM => {
'Carp' => 0,
'Data::Dump' => 0,
'Digest::MD5' => 0,
'File::Spec' => 0,
'HTTP::Request::Common' => 0,
'LWP::UserAgent' => 0,
'Moose::Role' => 0,
'Moose::Util::TypeConstraints' => 0,
'Moose' => 0,
'POSIX' => 0,
'Readonly' => 0,
'Test::Exception' => 0,
'Test::More' => 0,
'Time::Local' => 0,
'Try::Tiny' => 0,
'URI' => 0,
'XML::Simple' => 0,
},
dist => {COMPRESS => 'gzip -9f', SUFFIX => 'gz'},
clean => {FILES => 'ScormCloud-*'},
);