1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
|
|
2 | |
|
|
3 | use 5.008002; |
2 | |
4 | |
3 | unless (-e "Coro/libcoro/coro.c") { |
5 | unless (-e "Coro/libcoro/coro.c") { |
4 | print <<EOF; |
6 | print <<EOF; |
5 | |
7 | |
6 | *** |
8 | *** |
… | |
… | |
80 | }, |
82 | }, |
81 | NAME => "Coro", |
83 | NAME => "Coro", |
82 | VERSION_FROM => "Coro.pm", |
84 | VERSION_FROM => "Coro.pm", |
83 | DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())], |
85 | DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())], |
84 | PREREQ_PM => { |
86 | PREREQ_PM => { |
|
|
87 | common::sense => 0, |
85 | Scalar::Util => 0.00, |
88 | Scalar::Util => 0.00, |
86 | AnyEvent => 4.800001, |
89 | AnyEvent => 4.81, |
87 | Storable => 2.15, |
90 | Storable => 2.15, |
88 | Time::HiRes => 0, |
91 | Time::HiRes => 0, |
89 | Guard => 0.5, |
92 | Guard => 0.5, |
90 | |
93 | |
91 | # for Coro::Event |
94 | # for Coro::Event |
… | |
… | |
104 | }, |
107 | }, |
105 | # neither configure_requires nor recommends can be used |
108 | # neither configure_requires nor recommends can be used |
106 | # for optional dependencies. whoever decided that a module needs |
109 | # for optional dependencies. whoever decided that a module needs |
107 | # to build properly without its dependencies installed |
110 | # to build properly without its dependencies installed |
108 | # needs his brain rearranged dramatically. |
111 | # needs his brain rearranged dramatically. |
109 | EXTRA_META => q{ |
112 | META_MERGE => { |
110 | recommends: |
113 | recommends => { |
111 | Event: 1.08 |
114 | Event => 1.08, |
112 | EV: 3.0 |
115 | EV => 3.0, |
113 | IO::AIO: 3.1 |
116 | IO::AIO => 3.1, |
114 | AnyEvent::AIO: 1.0 |
117 | AnyEvent::AIO => 1.0, |
115 | BDB: 0 |
118 | BDB => 0, |
116 | AnyEvent::BDB: 1.0 |
119 | AnyEvent::BDB => 1.0, |
|
|
120 | } |
117 | }, |
121 | }, |
118 | PM => { |
122 | PM => { |
119 | 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', |
123 | 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', |
120 | |
124 | |
121 | 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', |
125 | 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', |