--- AnyEvent/Makefile.PL 2009/08/09 16:05:11 1.26 +++ 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,3 +45,13 @@ }, ); +package MY; + +sub init_PM { + my ($self) = @_; + + $self->SUPER::init_PM; + $self->{PM}{"constants.pl"} = '$(INST_LIB)/AnyEvent/constants.pl'; +} + +