1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | |
2 | |
3 | # AnyEvent perl event loop seems to work with 5.6, other modules not |
3 | # AnyEvent perl event loop seems to work with 5.6, other modules not |
4 | eval 'use Canary::Stability AnyEvent => 1, 5.008001'; |
4 | eval 'use Canary::Stability AnyEvent => 1, 5.008001'; |
|
|
5 | |
|
|
6 | our %PREREQ_PM; |
5 | |
7 | |
6 | print <<EOF; |
8 | print <<EOF; |
7 | |
9 | |
8 | *** |
10 | *** |
9 | *** The EV module is recommended for even better performance, unless you |
11 | *** The EV module is recommended for even better performance, unless you |
… | |
… | |
20 | *** and performant, even without any of the optional modules. |
22 | *** and performant, even without any of the optional modules. |
21 | *** |
23 | *** |
22 | |
24 | |
23 | EOF |
25 | EOF |
24 | |
26 | |
|
|
27 | if (eval { require Coro; $Coro::VERSION < 6.57 }) { |
|
|
28 | print <<EOF; |
|
|
29 | |
|
|
30 | *** |
|
|
31 | *** Adding a dependency on Coro, as your version of Coro is too old |
|
|
32 | *** for this version of AnyEvent. |
|
|
33 | *** |
|
|
34 | |
|
|
35 | EOF |
|
|
36 | |
|
|
37 | $PREREQ_PM{Coro} = 6.57; |
|
|
38 | } |
|
|
39 | |
25 | do "./constants.pl.PL" |
40 | do "./constants.pl.PL" |
26 | or die "cannot execute constants.pl.PL: $@"; |
41 | or die "cannot execute constants.pl.PL: $@"; |
27 | |
42 | |
28 | WriteMakefile( |
43 | WriteMakefile( |
29 | dist => { |
44 | dist => { |
… | |
… | |
33 | }, |
48 | }, |
34 | test => { TESTS => "t/*.t t/handle/*.t" }, |
49 | test => { TESTS => "t/*.t t/handle/*.t" }, |
35 | NAME => "AnyEvent", |
50 | NAME => "AnyEvent", |
36 | VERSION_FROM => "lib/AnyEvent.pm", |
51 | VERSION_FROM => "lib/AnyEvent.pm", |
37 | PMLIBDIRS => ["lib"], |
52 | PMLIBDIRS => ["lib"], |
38 | # PREREQ_PM => { |
53 | PREREQ_PM => { |
39 | # Task::Weaken => 0, |
54 | %PREREQ_PM, |
40 | # }, |
55 | }, |
41 | CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.52, "Canary::Stability" => 0 }, |
56 | CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.52, "Canary::Stability" => 0 }, |
42 | META_MERGE => { |
57 | META_MERGE => { |
43 | recommends => { |
58 | recommends => { |
44 | "Task::Weaken" => 0, |
59 | "Task::Weaken" => 0, |
45 | "Net::SSLeay" => 1.33, |
60 | "Net::SSLeay" => 1.33, |