--- Coro/Makefile.PL 2001/07/25 04:14:37 1.6 +++ Coro/Makefile.PL 2005/12/12 20:43:45 1.20 @@ -8,15 +8,37 @@ *** internals to do it's job. While it seems to work fine with perl-5.8, *** 5.7 and 5.6, it has not been tested with older versions. If it *** compiles and passes the testsuite, it should work. Otherwise you -*** should either upgrade or contact the author, maybe it can be made to -*** work... +*** should either upgrade or fix it ;) *** -*** Marc Lehmann +*** Marc Lehmann *** EOF } +if (eval { require Event }) { + if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) { + print < { PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -25,10 +47,30 @@ }, NAME => "Coro", VERSION_FROM => "Coro.pm", - DIR => ['Coro'], + DIR => ['Coro', ($EVENT ? 'Event' : ())], PREREQ_PM => { - Event => 0.84, # yes, 0.83 and below have serious bugs + Event => 0.86, + Scalar::Util => 0.00, }, + PM => { + 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', + + 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', + + '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/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', + + 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', + 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', + 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', + 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', + 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', + 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', + }, ); sub MY::postamble { @@ -36,7 +78,7 @@ # set \$VERSION in all modules setver: - \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm + \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm EOF }