ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Makefile.PL
(Generate patch)

Comparing Coro/Makefile.PL (file contents):
Revision 1.38 by root, Sun Nov 25 13:53:48 2007 UTC vs.
Revision 1.43 by root, Sat May 10 22:32:40 2008 UTC

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
55if (eval { require EV }) { 55if (eval { require EV }) {
56 if ($EV::VERSION < 2.0) {
57 print <<EOF
58
59***
60*** WARNING: Event version $EV::VERSION found, NOT building EV support.
61***
62*** This version is ABI-incompatible with Coro, please upgrade to 2.0.
63***
64
65EOF
66 } else {
56 $EV = 1; 67 $EV = 1;
57 $DEFINE .= " -DHAVE_EV=1"; 68 $DEFINE .= " -DHAVE_EV=1";
58 print "\nEV version $EV::VERSION found, building EV support.\n\n"; 69 print "\nEV version $EV::VERSION found, building EV support.\n\n";
70 }
59} else { 71} else {
60 print "\n*** EV not found, not build EV support.\n\n"; 72 print "\n*** EV not found, not build EV support.\n\n";
61} 73}
62 74
63WriteMakefile( 75WriteMakefile(
69 NAME => "Coro", 81 NAME => "Coro",
70 VERSION_FROM => "Coro.pm", 82 VERSION_FROM => "Coro.pm",
71 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())], 83 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
72 PREREQ_PM => { 84 PREREQ_PM => {
73 Scalar::Util => 0.00, 85 Scalar::Util => 0.00,
74 AnyEvent => 2.7, 86 AnyEvent => 3.4,
87 AnyEvent::AIO => 1.0,
88 AnyEvent::BDB => 1.0,
75 Storable => 2.15, 89 Storable => 2.15,
76 Time::HiRes => 0, 90 Time::HiRes => 0,
77 91
78 # for Coro::Event 92 # for Coro::Event
79 Event => 1.06, 93 Event => 1.06,
80 94
81 # for Coro::EV 95 # for Coro::EV
82 EV => 1.3, 96 EV => 3.0,
83 97
84 # for Coro::AIO 98 # for Coro::AIO
85 IO::AIO => 2.3, 99 #IO::AIO => 2.3,
86 }, 100 },
87 EXTRA_META => q{ 101 EXTRA_META => q{
88configure_requires: 102configure_requires:
89 Event: 1.06 103 Event: 1.06
90 EV: 1.3 104 EV: 3.0
91 }, 105 },
92 PM => { 106 PM => {
93 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 107 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
94 108
95 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 109 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
113 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm', 127 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
114 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm', 128 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
115 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm', 129 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
116 130
117 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm', 131 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
132 'Coro/BDB.pm' => '$(INST_LIBDIR)/Coro/BDB.pm',
118 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm', 133 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
119 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm', 134 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
135 'Coro/AnyEvent.pm' => '$(INST_LIBDIR)/Coro/AnyEvent.pm',
120 }, 136 },
121); 137);
122 138
123sub MY::postamble { 139sub MY::postamble {
124 <<EOF; 140 <<EOF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines