--- Coro/Makefile.PL 2005/11/29 12:36:18 1.19 +++ Coro/Makefile.PL 2008/05/10 22:32:40 1.43 @@ -1,14 +1,28 @@ use ExtUtils::MakeMaker; +unless (-e "Coro/libcoro/coro.c") { + print < *** @@ -24,7 +38,7 @@ *** WARNING: Event version $Event::VERSION found, NOT building Event support. *** *** This version of Event is broken. The only currently known non-broken -*** versions of Event are 0.87 and 0.89+. Please install one of these +*** versions of Event are 0.87 and 0.89+. Please install one of those *** versions. *** @@ -34,11 +48,30 @@ $DEFINE .= " -DHAVE_EVENT=1"; print "\nEvent version $Event::VERSION found, building Event support.\n\n"; } - print "\n"; } else { print "\n*** Event not found, not build Event support.\n\n"; } +if (eval { require EV }) { + if ($EV::VERSION < 2.0) { + print < { PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -47,10 +80,28 @@ }, NAME => "Coro", VERSION_FROM => "Coro.pm", - DIR => ['Coro', ($EVENT ? 'Event' : ())], + DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())], PREREQ_PM => { - Event => 0.86, Scalar::Util => 0.00, + AnyEvent => 3.4, + AnyEvent::AIO => 1.0, + AnyEvent::BDB => 1.0, + Storable => 2.15, + Time::HiRes => 0, + + # for Coro::Event + Event => 1.06, + + # for Coro::EV + EV => 3.0, + + # for Coro::AIO + #IO::AIO => 2.3, + }, + EXTRA_META => q{ +configure_requires: + Event: 1.06 + EV: 3.0 }, PM => { 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', @@ -60,7 +111,7 @@ 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', - 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', +# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', @@ -70,6 +121,18 @@ 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', + + 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm', + 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm', + 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm', + 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm', + 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm', + + 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm', + 'Coro/BDB.pm' => '$(INST_LIBDIR)/Coro/BDB.pm', + 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm', + 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm', + 'Coro/AnyEvent.pm' => '$(INST_LIBDIR)/Coro/AnyEvent.pm', }, );