-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.PL
48 lines (38 loc) · 1.19 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
use 5.000;
use ExtUtils::MakeMaker;
$is_devel_host = defined $ENV{USER} && $ENV{USER} eq 'eserte' && ($^O =~ /bsd/i || $ENV{PERL_RELEASE_READY}) && -f "../../perl.release.mk";
$eumm_recent_enough = $ExtUtils::MakeMaker::VERSION >= 6.54;
if (!$eumm_recent_enough) {
*MY::dist_core = sub {
<<'EOF';
dist :
$(NOECHO) $(ECHO) "Sorry, use a newer EUMM!"
EOF
};
}
WriteMakefile(
NAME => 'Kwalify',
VERSION_FROM => 'lib/Kwalify.pm',
PREREQ_PM => {
($] < 5.006 ? ('warnings::compat' => 0) : ()),
},
EXE_FILES => ['pkwalify'],
LICENSE => 'perl',
#NO_META => 1,
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Kwalify.pm', # retrieve abstract from module
AUTHOR => 'Slaven Rezic <[email protected]>') : ()),
($eumm_recent_enough ?
(META_ADD => { resources => { repository => 'git://github.com/eserte/p5-Kwalify.git' } }) : ()),
);
sub MY::postamble {
my $postamble = '';
if ($is_devel_host) {
$postamble .= <<'EOF';
PERL_TEST_DISTRIBUTION_OPTS=not podcover
.include "../../perl.release.mk"
.include "../../perl.git.mk"
EOF
}
$postamble;
}