--- AnyEvent/Makefile.PL 2009/07/28 12:56:17 1.25 +++ AnyEvent/Makefile.PL 2010/02/21 09:28:18 1.27 @@ -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 => "constans.pl.pm" }, + PMLIBDIRS => ["lib"], META_MERGE => { recommends => { "Net::SSLeay" => 1.33, @@ -42,13 +45,13 @@ }, ); -sub MY::postamble { - <SUPER::init_PM; + $self->{PM}{"constants.pl"} = '$(INST_LIB)/AnyEvent/constants.pl'; } +