-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
64 lines (52 loc) · 1.84 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
use 5.006;
use ExtUtils::MakeMaker;
@extras = ();
push(@extras,
CAPI => 'TRUE')
if ($PERL_VERSION >= 5.005 and $OSNAME eq 'MSWin32'
and $Config{archname} =~ /-object\b/i);
push(@extras,
ABSTRACT_FROM => 'lib/XML/RSS.pm',
AUTHOR => ' Ask Bjoern Hansen <[email protected]>')
if ($ExtUtils::MakeMaker::Version >= 5.4301);
if ($ExtUtils::MakeMaker::Version >= 6.36)
{
push(@extras,
LICENSE => "perl",
);
}
{
package MY;
sub test_via_harness {
my($self, $perl, $tests) = @_;
return qq|\t$perl "-MTest::Manifest" | .
qq|"-e" "run_t_manifest(\$(TEST_VERBOSE), '\$(INST_LIB)', | .
qq|'\$(INST_ARCHLIB)')"\n|;
}
}
sub MY::postamble {
return <<'MAKE_FRAG';
runtest: pure_all
$(PERLRUNINST) -Itestlib -MTest::Run::CmdLine::WithTestManifest -e "Test::Run::CmdLine::WithTestManifest::run_t_manifest($(TEST_VERBOSE), '$(INST_LIB)', '$(INST_ARCHLIB)', $(TEST_LEVEL));"
distruntest: distdir
cd $(DISTVNAME) && $(ABSPERLRUN) Makefile.PL
cd $(DISTVNAME) && $(MAKE) $(PASTHRU)
cd $(DISTVNAME) && $(MAKE) runtest $(PASTHRU)
MAKE_FRAG
}
WriteMakefile(
'NAME' => 'XML::RSS',
'VERSION_FROM' => 'lib/XML/RSS.pm', # finds $VERSION,
'PREREQ_PM' => {
'Test::Manifest' => '0.9',
'Test::More' => '0',
'XML::Parser' => '2.23',
'HTML::Entities' => 0,
'DateTime' => 0,
'DateTime::Format::Mail' => 0,
'DateTime::Format::W3CDTF' => 0,
},
'clean' => { FILES => 'XML-RSS-* t/generated/*.xml' },
'PL_FILES' => {},
@extras
);