… | |
… | |
51 | } else { |
51 | } else { |
52 | print "\n*** Event not found, not build Event support.\n\n"; |
52 | print "\n*** Event not found, not build Event support.\n\n"; |
53 | } |
53 | } |
54 | |
54 | |
55 | if (eval { require EV }) { |
55 | if (eval { require EV }) { |
56 | if ($EV::VERSION < 2.0) { |
56 | if ($EV::VERSION < 3.3) { |
57 | print <<EOF |
57 | print <<EOF |
58 | |
58 | |
59 | *** |
59 | *** |
60 | *** WARNING: Event version $EV::VERSION found, NOT building EV support. |
60 | *** WARNING: Event version $EV::VERSION found, NOT building EV support. |
61 | *** |
61 | *** |
62 | *** This version is ABI-incompatible with Coro, please upgrade to 2.0. |
62 | *** This version is ABI-incompatible with Coro, please upgrade to at least 3.3. |
63 | *** |
63 | *** |
64 | |
64 | |
65 | EOF |
65 | EOF |
66 | } else { |
66 | } else { |
67 | $EV = 1; |
67 | $EV = 1; |
… | |
… | |
89 | |
89 | |
90 | # for Coro::Event |
90 | # for Coro::Event |
91 | #Event => 1.06, |
91 | #Event => 1.06, |
92 | |
92 | |
93 | # for Coro::EV |
93 | # for Coro::EV |
94 | #EV => 3.0, |
94 | #EV => 3.3, |
95 | |
95 | |
96 | # for Coro::AIO |
96 | # for Coro::AIO |
97 | #IO::AIO => 2.3, |
97 | #IO::AIO => 2.3, |
98 | #AnyEvent::AIO => 1.0, |
98 | #AnyEvent::AIO => 1.0, |
99 | |
99 | |
… | |
… | |
102 | #AnyEvent::BDB => 1.0, |
102 | #AnyEvent::BDB => 1.0, |
103 | }, |
103 | }, |
104 | # neither configure_requires nor recommends can be used |
104 | # neither configure_requires nor recommends can be used |
105 | # for optional dependencies. whoever decided that a module needs |
105 | # for optional dependencies. whoever decided that a module needs |
106 | # to build properly without its dependencies installed |
106 | # to build properly without its dependencies installed |
107 | # needs his brian rearranged dramatically. |
107 | # needs his brain rearranged dramatically. |
108 | EXTRA_META => q{ |
108 | EXTRA_META => q{ |
109 | recommends: |
109 | recommends: |
110 | Event: 1.08 |
110 | Event: 1.08 |
111 | EV: 3.0 |
111 | EV: 3.0 |
112 | IO::AIO: 0 |
112 | IO::AIO: 0 |
… | |
… | |
150 | sub MY::postamble { |
150 | sub MY::postamble { |
151 | <<EOF; |
151 | <<EOF; |
152 | |
152 | |
153 | # set \$VERSION in all modules |
153 | # set \$VERSION in all modules |
154 | setver: |
154 | setver: |
155 | \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' \$(TO_INST_PM) |
155 | \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm EV/*.pm Event/*.pm |
156 | |
156 | |
157 | EOF |
157 | EOF |
158 | } |
158 | } |
159 | |
159 | |
160 | |
160 | |