-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
47 lines (38 loc) · 1.11 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
use 5.006;
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 => 'XTerm::Conf',
VERSION_FROM => 'lib/XTerm/Conf.pm',
LICENSE => 'perl_5',
EXE_FILES => ['xterm-conf'],
PREREQ_PM => {
'Getopt::Long' => 2.24,
'Term::ReadKey' => 0,
},
AUTHOR => 'Slaven Rezic <srezic@cpan.org>',
ABSTRACT_FROM => 'lib/XTerm/Conf.pm',
($eumm_recent_enough ?
(META_ADD => { resources => { repository => 'git://github.com/eserte/xterm-conf.git' } }) : ()),
($ExtUtils::MakeMaker::VERSION >= 6.48 ?
(MIN_PERL_VERSION => 5.006) : ()),
);
sub MY::postamble {
my $postamble = '';
if ($is_devel_host) {
$postamble .= <<'EOF';
.include "../../perl.release.mk"
.include "../../perl.git.mk"
EOF
}
$postamble;
}