--- cvsroot/Coro/Makefile.PL 2001/07/24 19:52:55 1.5 +++ cvsroot/Coro/Makefile.PL 2001/08/25 15:35:56 1.9 @@ -17,6 +17,8 @@ EOF } +$EVENT = eval { require Event }; + WriteMakefile( dist => { PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -25,10 +27,13 @@ }, NAME => "Coro", VERSION_FROM => "Coro.pm", - DIR => ['Coro'], - PM_PREREQ => { - Event => 0.84, # yes, 0.83 and below have serious bugs + DIR => ['Coro', ($EVENT ? 'Event' : ())], + PREREQ_PM => { + Event => 0.83, # still, 0.83 and below have serious bugs(!) }, + PM => { + 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', + }, ); sub MY::postamble {