-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
40 lines (36 loc) · 1.46 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
use ExtUtils::MakeMaker;
use strict;
use Getopt::Std;
my $opts = {};
getopts( 'b', $opts );
### promote IPC::Run on windows
if ( $^O eq 'MSWin32' and !(eval{require IPC::Run}) and !$opts->{'b'} ) {
warn "******************************************************************\n".
"***\n".
"*** IPC::Run is an optional requirement for Win32 systems to\n".
"*** capture buffers.\n" .
"*** If you would like to install IPC::Cmd with buffer support\n".
"*** on Win32, please rerun this Makefile.PL with the '-b' option\n".
"*** or install IPC::Run manually\n".
"***\n".
"******************************************************************\n";
}
my $prereqs = {
'Test::More' => 0,
'Params::Check' => '0.20',
'Module::Load::Conditional' => 0,
'Locale::Maketext::Simple' => 0,
'IPC::Run' => '0.55',
'File::Spec' => 0,
'ExtUtils::MakeMaker' => 0,
};
delete $prereqs->{'IPC::Run'} unless $opts->{'b'};
WriteMakefile (
NAME => 'IPC::Cmd',
VERSION_FROM => 'lib/IPC/Cmd.pm', # finds $VERSION
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
PREREQ_PM => $prereqs,
INSTALLDIRS => ( $] >= 5.009005 ? 'perl' : 'site' ),
AUTHOR => 'Jos Boumans <kane[at]cpan.org>',
ABSTRACT => 'A cross platform way of running (interactive) commandline programs.'
);