-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
48 lines (41 loc) · 1.08 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
#!perl
use strict;
use inc::Module::Install;
if (eval { require DateTime::Util::Calc } && $DateTime::Util::Calc::VERSION < 0.12) {
print "WARNING:\n",
" Because of some incompatible changes, this version of\n",
" DateTime::Util::Calc may possibly break other modules that depend on\n",
" it, such as DateTime::Calendar::Chinese\n",
"\n",
"Proceed ? [n] "
;
my $y_n = <STDIN>;
chomp($y_n);
exit 1 if $y_n !~ /^y(?:es)?$/i;
}
name("DateTime-Util-Calc");
license("perl");
perl_version("5.6.1");
all_from("lib/DateTime/Util/Calc.pm");
requires "DateTime";
requires "Math::BigInt";
requires "Math::BigFloat";
requires "Math::Trig";
build_requires("Test::More");
features(
'Fast BigInt Support (FastCalc)' => [
-default => 0,
recommends('Math::BigInt::FastCalc')
],
'Fast BigInt Support (GMP)' => [
-default => 0,
recommends('Math::BigInt::GMP')
],
'Fast BigInt Support (Pari)' => [
-default => 0,
recommends('Math::BigInt::Pari')
],
);
auto_install;
WriteAll;
1;