--- cvsroot/Coro/Makefile.PL 2003/03/22 23:08:36 1.15 +++ cvsroot/Coro/Makefile.PL 2006/11/24 15:34:33 1.26 @@ -5,20 +5,29 @@ *** *** WARNING: This module is quite low-level and uses undocumented perl -*** 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 fix it ;) +*** internals to do it's job. While it seems to work fine with perl-5.[6-9] +*** it has not been tested with older versions. If it compiles and passes the +*** testsuite, it should work. Otherwise you should either upgrade or fix it ;) *** -*** Marc Lehmann +*** Marc Lehmann *** EOF } if (eval { require Event }) { - if ($Event::VERSION < 0.86) { - print "*** Please read the INSTALL file, you need a patched Event.\n"; + if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) { + print < "Coro.pm", DIR => ['Coro', ($EVENT ? 'Event' : ())], PREREQ_PM => { - Event => 0.86, Scalar::Util => 0.00, + + # for Coro::Event + Event => 0.86, + + # for Coro::AIO, Coro::Util + IO::AIO => 1.6, + AnyEvent => 2.1, }, PM => { 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', @@ -60,6 +75,14 @@ '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/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/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm', }, ); @@ -68,7 +91,7 @@ # set \$VERSION in all modules setver: - \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm + \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm EOF }