… | |
… | |
19 | *** and performant, even without any of the optional modules. |
19 | *** and performant, even without any of the optional modules. |
20 | *** |
20 | *** |
21 | |
21 | |
22 | EOF |
22 | EOF |
23 | |
23 | |
|
|
24 | do "constants.pl.PL" |
|
|
25 | or die "cannot execute constants.pl.PL"; |
|
|
26 | |
24 | WriteMakefile( |
27 | WriteMakefile( |
25 | dist => { |
28 | dist => { |
26 | PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
29 | PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
27 | COMPRESS => 'gzip -9v', |
30 | COMPRESS => 'gzip -9v', |
28 | SUFFIX => '.gz', |
31 | SUFFIX => '.gz', |
29 | }, |
32 | }, |
30 | test => { TESTS => "t/*.t t/handle/*.t" }, |
33 | test => { TESTS => "t/*.t t/handle/*.t" }, |
31 | NAME => "AnyEvent", |
34 | NAME => "AnyEvent", |
32 | VERSION_FROM => "lib/AnyEvent.pm", |
35 | VERSION_FROM => "lib/AnyEvent.pm", |
33 | PL_FILES => { "constants.pl.PL" => "constants.pl" }, |
|
|
34 | clean => { FILES => "constants.pl" }, |
|
|
35 | PMLIBDIRS => ["lib"], |
36 | PMLIBDIRS => ["lib"], |
36 | META_MERGE => { |
37 | META_MERGE => { |
37 | recommends => { |
38 | recommends => { |
38 | "Net::SSLeay" => 1.33, |
39 | "Net::SSLeay" => 1.33, |
39 | "JSON" => 2.09, |
40 | "JSON" => 2.09, |
… | |
… | |
43 | "Async::Interrupt" => 1.0, |
44 | "Async::Interrupt" => 1.0, |
44 | } |
45 | } |
45 | }, |
46 | }, |
46 | ); |
47 | ); |
47 | |
48 | |
48 | package MY; |
|
|
49 | |
|
|
50 | sub init_PM { |
|
|
51 | my ($self) = @_; |
|
|
52 | |
|
|
53 | $self->SUPER::init_PM; |
|
|
54 | $self->{PM}{"constants.pl"} = '$(INST_LIB)/AnyEvent/constants.pl'; |
|
|
55 | } |
|
|
56 | |
|
|
57 | |
|
|