use
vars
qw{$VERSION $ISCORE @ISA}
;
BEGIN {
$VERSION
=
'0.91'
;
$ISCORE
= 1;
@ISA
=
qw{Module::Install::Base}
;
}
sub
requires_external_cc {
my
$self
=
shift
;
unless
(
$self
->can_cc ) {
print
"Unresolvable missing external dependency.\n"
;
print
"This package requires a C compiler.\n"
;
print
STDERR
"NA: Unable to build distribution on this platform.\n"
;
exit
(0);
}
1;
}
sub
requires_external_bin {
my
(
$self
,
$bin
,
$version
) =
@_
;
if
(
$version
) {
die
"requires_external_bin does not support versions yet"
;
}
$self
->load(
'can_run'
);
print
"Locating required external dependency bin:$bin..."
;
my
$found_bin
=
$self
->can_run(
$bin
);
if
(
$found_bin
) {
print
" found at $found_bin.\n"
;
}
else
{
print
" missing.\n"
;
print
"Unresolvable missing external dependency.\n"
;
print
"Please install '$bin' seperately and try again.\n"
;
print
STDERR
"NA: Unable to build distribution on this platform.\n"
;
exit
(0);
}
1;
}
1;