… | |
… | |
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", |
|
|
36 | PMLIBDIRS => ["lib"], |
33 | META_MERGE => { |
37 | META_MERGE => { |
34 | recommends => { |
38 | recommends => { |
35 | "Net::SSLeay" => 1.33, |
39 | "Net::SSLeay" => 1.33, |
36 | "JSON" => 2.09, |
40 | "JSON" => 2.09, |
37 | "JSON::XS" => 2.2, |
41 | "JSON::XS" => 2.2, |
38 | "EV" => 3.05, |
42 | "EV" => 4.00, |
39 | "Guard" => 1.02, |
43 | "Guard" => 1.02, |
40 | "Async::Interrupt" => 0.6, |
44 | "Async::Interrupt" => 1.0, |
41 | } |
45 | } |
42 | }, |
46 | }, |
43 | ); |
47 | ); |
44 | |
48 | |
45 | sub MY::postamble { |
|
|
46 | <<EOF; |
|
|
47 | |
|
|
48 | # set \$VERSION in all modules |
|
|
49 | setver: |
|
|
50 | \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' \$(TO_INST_PM) |
|
|
51 | |
|
|
52 | EOF |
|
|
53 | } |
|
|
54 | |
|
|