--- EV/Makefile.PL 2007/12/21 04:41:12 1.28 +++ EV/Makefile.PL 2013/01/15 21:49:38 1.53 @@ -1,5 +1,6 @@ -use 5.006; +use 5.008002; +use strict qw(vars subs); use Config; use ExtUtils::MakeMaker; @@ -36,15 +37,16 @@ POSIX optionally offers support for a monotonic clock source. EV -can take advantage of this clock source to detect time jumps +can take advantage of this clock source to detect time jumps more reliably. Unfortunately, some systems are bound to be broken, so you can disable this here: you can completely disable the detection and use of the monotonic clock by answering 'n' here. Support for this clock type -will otherwise be autodetected at both compile- and runtime. +will otherwise be autodetected at both compile- and runtime. (this setting +currently affects the use of nanosleep over select as well). EOF -$DEFINE .= " -DEV_USE_MONOTONIC=" . (0 + (prompt ("Enable optional support for CLOCK_MONOTONIC (y/n)?", "y") =~ /[yY]/)); +my $DEFINE .= " -DEV_USE_MONOTONIC=" . (0 + (prompt ("Enable optional support for CLOCK_MONOTONIC (y/n)?", "y") =~ /[yY]/)); print < 2.6) : (); +my @anyevent = eval { require AnyEvent; $AnyEvent::VERSION < 5.29 } ? (AnyEvent => 5.29) : (); WriteMakefile( dist => { @@ -218,7 +282,7 @@ depend => { "EV.c" => "EV/EVAPI.h " . "libev/ev.c libev/ev.h libev/ev_epoll.c libev/ev_select.c libev/ev_kqueue.c libev/ev_poll.c " - . "libev/event.h libev/event.c libev/ev_vars.h libev/ev_wrap.h", + . "libev/ev_vars.h libev/ev_wrap.h", }, INC => "-Ilibev", DEFINE => "$DEFINE", @@ -226,6 +290,7 @@ LIBS => [$LIBS], PREREQ_PM => { @anyevent, + "common::sense" => 0, }, VERSION_FROM => "EV.pm", PM => { @@ -233,7 +298,13 @@ 'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h', 'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm', 'libev/ev.h' => '$(INST_LIBDIR)/EV/ev.h', + 'libev/ev.pod' => '$(INST_LIBDIR)/EV/libev.pod', }, + MAN3PODS => { + 'EV.pm' => '$(INST_MAN3DIR)/EV.$(MAN3EXT)', + 'EV/MakeMaker.pm' => '$(INST_MAN3DIR)/EV::MakeMaker.$(MAN3EXT)', + 'libev/ev.pod' => '$(INST_MAN3DIR)/EV::libev.$(MAN3EXT)', + }, );