--- Coro/Makefile.PL 2001/07/21 18:21:45 1.4 +++ Coro/Makefile.PL 2002/11/21 13:08:05 1.13 @@ -8,8 +8,7 @@ *** 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 *** @@ -17,15 +16,24 @@ EOF } +$EVENT = eval { require Event }; + WriteMakefile( - dist => { - PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', - COMPRESS => 'gzip -9v', - SUFFIX => '.gz', - }, - NAME => "Coro", + dist => { + PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', + COMPRESS => 'gzip -9v', + SUFFIX => '.gz', + }, + NAME => "Coro", VERSION_FROM => "Coro.pm", - DIR => ['Coro'], + DIR => ['Coro', ($EVENT ? 'Event' : ())], + PREREQ_PM => { + Event => 0.85, + Scalar::Util => 0.00, + }, + PM => { + 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', + }, ); sub MY::postamble { @@ -33,7 +41,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*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm EOF }