--- AnyEvent/Makefile.PL 2010/02/21 09:28:18 1.27 +++ AnyEvent/Makefile.PL 2010/11/22 06:32:18 1.31 @@ -21,6 +21,9 @@ EOF +do "constants.pl.PL" + or die "cannot execute constants.pl.PL: $@"; + WriteMakefile( dist => { PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', @@ -30,28 +33,16 @@ test => { TESTS => "t/*.t t/handle/*.t" }, NAME => "AnyEvent", VERSION_FROM => "lib/AnyEvent.pm", - PL_FILES => { "constants.pl.PL" => "constants.pl" }, - clean => { FILES => "constans.pl.pm" }, PMLIBDIRS => ["lib"], META_MERGE => { recommends => { "Net::SSLeay" => 1.33, "JSON" => 2.09, "JSON::XS" => 2.2, - "EV" => 3.05, + "EV" => 4.00, "Guard" => 1.02, "Async::Interrupt" => 1.0, } }, ); -package MY; - -sub init_PM { - my ($self) = @_; - - $self->SUPER::init_PM; - $self->{PM}{"constants.pl"} = '$(INST_LIB)/AnyEvent/constants.pl'; -} - -