--- IO-AIO/Makefile.PL 2010/11/01 22:03:43 1.22 +++ IO-AIO/Makefile.PL 2015/06/13 00:06:13 1.34 @@ -1,23 +1,45 @@ -use 5.008002; +use Canary::Stability IO::AIO => 1, 5.008002; use ExtUtils::MakeMaker; use Config; -if ($^O =~ /win32/i or $^O =~ /mswin/) { - +if ($^O eq "MSWin32") { # configuration on windows is hardcoded - as always - warn "your platform is not standards-compliant, you have to port this module first\n"; - warn "using some hardcoded config that will not work on your system\n"; + print STDERR <libeio/config.h" + or die "libeio/config.h: $!"; + print $fh < 'pod2text AIO.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', COMPRESS => 'gzip -9v', SUFFIX => '.gz', - }, + }, depend => { - "AIO.c" => "libeio/eio.h libeio/xthread.h libeio/eio.c libeio/config.h", + "AIO.c" => "schmorp.h libeio/eio.h libeio/xthread.h libeio/etp.c libeio/eio.c libeio/config.h", }, NAME => "IO::AIO", VERSION_FROM => "AIO.pm", @@ -86,8 +108,9 @@ LIBS => $LIBS, EXE_FILES => ["bin/treescan"], PM => { - 'AIO.pm' => '$(INST_LIBDIR)/AIO.pm', - }, + 'AIO.pm' => '$(INST_LIB)/IO/AIO.pm', + }, + CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 2001 }, PREREQ_PM => { "common::sense" => 0, },