require
5.6.2;
name
'Math-BigInt'
;
all_from
'lib/Math/BigInt.pm'
;
requires
'perl'
=> 5.006002;
my
@checks
;
check_minimum_version (
'Math::BigInt::FastCalc'
=> 0.14);
check_minimum_version (
'Math::BigInt::GMP'
=> 1.21);
check_minimum_version (
'Math::BigInt::Pari'
=> 1.12);
check_minimum_version (
'Math::BigRat'
=> 0.19);
check_minimum_version (
'bignum'
=> 0.21);
if
(
@checks
> 0)
{
print
(
"\n"
.
'*'
x 70 .
"\n Attention: After installing this package, you also need to update:\n\n"
);
for
my
$need
(
@checks
)
{
my
$name
=
$need
->[0];
while
(
length
(
$name
) < 24) {
$name
.=
' '
; }
print
" $name to at least v$need->[1]\t (you have v$need->[2])\n"
;
}
print
"\n"
;
sleep
(5);
};
build_requires
'Test::More'
=> 0.62;
install_as_core();
license
'perl'
;
author
'Tels <nospam-abuse@bloodgate.com>'
;
no_index
directory
=>
'examples'
;
WriteAll;
1;
sub
check_minimum_version
{
my
(
$module
,
$version
) =
@_
;
my
$v
;
eval
" require $module; \$v = \$${module}::VERSION;"
;
recommends
$module
,
$version
;
if
(
defined
$v
&&
$v
<
$version
)
{
push
@checks
, [
$module
,
$version
,
$v
];
}
}