1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | |
2 | |
3 | use 5.008001; # 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 | |
5 | |
5 | eval 'use Canary::Stability AnyEvent => 1'; |
6 | our %PREREQ_PM; |
6 | |
7 | |
7 | print <<EOF; |
8 | print <<EOF; |
8 | |
9 | |
9 | *** |
10 | *** |
10 | *** The EV module is recommended for even better performance, unless you |
11 | *** The EV module is recommended for even better performance, unless you |
… | |
… | |
21 | *** and performant, even without any of the optional modules. |
22 | *** and performant, even without any of the optional modules. |
22 | *** |
23 | *** |
23 | |
24 | |
24 | EOF |
25 | EOF |
25 | |
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 | |
26 | do "constants.pl.PL" |
40 | do "./constants.pl.PL" |
27 | or die "cannot execute constants.pl.PL: $@"; |
41 | or die "cannot execute constants.pl.PL: $@"; |
28 | |
42 | |
29 | WriteMakefile( |
43 | WriteMakefile( |
30 | dist => { |
44 | dist => { |
31 | PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
45 | PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
… | |
… | |
34 | }, |
48 | }, |
35 | test => { TESTS => "t/*.t t/handle/*.t" }, |
49 | test => { TESTS => "t/*.t t/handle/*.t" }, |
36 | NAME => "AnyEvent", |
50 | NAME => "AnyEvent", |
37 | VERSION_FROM => "lib/AnyEvent.pm", |
51 | VERSION_FROM => "lib/AnyEvent.pm", |
38 | PMLIBDIRS => ["lib"], |
52 | PMLIBDIRS => ["lib"], |
39 | # PREREQ_PM => { |
53 | PREREQ_PM => { |
40 | # Task::Weaken => 0, |
54 | %PREREQ_PM, |
41 | # }, |
55 | }, |
42 | CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 0 }, |
56 | CONFIGURE_REQUIRES => { "ExtUtils::MakeMaker" => 6.52, "Canary::Stability" => 0 }, |
43 | META_MERGE => { |
57 | META_MERGE => { |
44 | recommends => { |
58 | recommends => { |
45 | "Task::Weaken" => 0, |
59 | "Task::Weaken" => 0, |
46 | "Net::SSLeay" => 1.33, |
60 | "Net::SSLeay" => 1.33, |
47 | "JSON" => 2.09, |
61 | "JSON" => 2.09, |