ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/Makefile.PL
(Generate patch)

Comparing AnyEvent/Makefile.PL (file contents):
Revision 1.23 by root, Sat Jul 18 05:47:44 2009 UTC vs.
Revision 1.27 by root, Sun Feb 21 09:28:18 2010 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use 5.008; # AnyEvent perl event loop seems to work with 5.6, other modules not 3use 5.008001; # AnyEvent perl event loop seems to work with 5.6, other modules not
4 4
5print <<EOF; 5print <<EOF;
6 6
7*** 7***
8*** The EV module is recommended for even better performance, unless you 8*** The EV module is recommended for even better performance, unless you
28 SUFFIX => '.gz', 28 SUFFIX => '.gz',
29 }, 29 },
30 test => { TESTS => "t/*.t t/handle/*.t" }, 30 test => { TESTS => "t/*.t t/handle/*.t" },
31 NAME => "AnyEvent", 31 NAME => "AnyEvent",
32 VERSION_FROM => "lib/AnyEvent.pm", 32 VERSION_FROM => "lib/AnyEvent.pm",
33 PL_FILES => { "constants.pl.PL" => "constants.pl" },
34 clean => { FILES => "constans.pl.pm" },
35 PMLIBDIRS => ["lib"],
33 META_MERGE => { 36 META_MERGE => {
34 recommends => { 37 recommends => {
35 "Net::SSLeay" => 1.33, 38 "Net::SSLeay" => 1.33,
36 "JSON" => 2.09, 39 "JSON" => 2.09,
37 "JSON::XS" => 2.2, 40 "JSON::XS" => 2.2,
38 "EV" => 3.05, 41 "EV" => 3.05,
39 "Guard" => 1.02, 42 "Guard" => 1.02,
40 "Async::Interrupt" => 0.6, 43 "Async::Interrupt" => 1.0,
41 } 44 }
42 }, 45 },
43); 46);
44 47
45sub MY::postamble { 48package MY;
46 <<EOF;
47 49
48# set \$VERSION in all modules 50sub init_PM {
49setver: 51 my ($self) = @_;
50 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' \$(TO_INST_PM)
51 52
52EOF 53 $self->SUPER::init_PM;
54 $self->{PM}{"constants.pl"} = '$(INST_LIB)/AnyEvent/constants.pl';
53} 55}
54 56
57

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines