--- AnyEvent/Makefile.PL 2009/07/23 00:42:52 1.24 +++ AnyEvent/Makefile.PL 2010/03/12 23:30:06 1.28 @@ -30,6 +30,9 @@ test => { TESTS => "t/*.t t/handle/*.t" }, NAME => "AnyEvent", VERSION_FROM => "lib/AnyEvent.pm", + PL_FILES => { "constants.pl.PL" => "constants.pl" }, + clean => { FILES => "constants.pl" }, + PMLIBDIRS => ["lib"], META_MERGE => { recommends => { "Net::SSLeay" => 1.33, @@ -37,18 +40,18 @@ "JSON::XS" => 2.2, "EV" => 3.05, "Guard" => 1.02, - "Async::Interrupt" => 0.6, + "Async::Interrupt" => 1.0, } }, ); -sub MY::postamble { - <SUPER::init_PM; + $self->{PM}{"constants.pl"} = '$(INST_LIB)/AnyEvent/constants.pl'; } +