forked from stepanov/IMDB-Film
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
38 lines (31 loc) · 1.48 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
use ExtUtils::MakeMaker;
use strict;
my $online_tests = ExtUtils::MakeMaker::prompt('Do you want to perform online tests during "make test" phase?', 'no') =~ /^\s*(y)/i;
my $tests = join ' ', glob ($online_tests ? 't/0*.t t/m*.t' : 't/0*.t');
if($online_tests) {
my $person_test = ExtUtils::MakeMaker::prompt('Do you want to perform online tests for IMDB persons during "make test" phase?', 'no') =~ /^\s*(y)/i;
$tests .= ' ' . join ' ', glob 't/p*.t' if $person_test;
my $extra_test = ExtUtils::MakeMaker::prompt('Do you want to perform extra online tests during "make test" phase?', 'no') =~ /^\s*(y)/i;
$tests .= ' ' . join ' ', glob 't/n*.t' if $extra_test;
my $pod_test = ExtUtils::MakeMaker::prompt('Do you want to perform POD checking during "make test" phase?', 'no') =~ /^\s*(y)/i;
$tests .= ' ' . join ' ', glob 't/y*.t' if $pod_test;
}
WriteMakefile(
NAME => 'IMDB::Film',
VERSION_FROM => 'lib/IMDB/BaseClass.pm',
PREREQ_PM => {
'HTML::TokeParser' => 2.28,
'LWP::Simple' => 1.41,
'Cache::FileCache' => 0,
'Carp' => 0,
'Error' => 0,
'Digest::SHA1' => 0,
'Pod::Checker' => 0,
'HTML::Entities' => 0,
'Text::Unidecode' => 0,
},
test => {TESTS => $tests},
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/IMDB/Film.pm',
AUTHOR => 'Michael Stepanov <[email protected]>') : ()),
);