1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | |
2 | |
3 | use 5.008001; # AnyEvent perl event loop seems to work with 5.6, other modules not |
3 | use 5.008001; # AnyEvent perl event loop seems to work with 5.6, other modules not |
|
|
4 | |
|
|
5 | eval 'use Canary::Stability AnyEvent => 1'; |
4 | |
6 | |
5 | print <<EOF; |
7 | print <<EOF; |
6 | |
8 | |
7 | *** |
9 | *** |
8 | *** The EV module is recommended for even better performance, unless you |
10 | *** The EV module is recommended for even better performance, unless you |
… | |
… | |
19 | *** and performant, even without any of the optional modules. |
21 | *** and performant, even without any of the optional modules. |
20 | *** |
22 | *** |
21 | |
23 | |
22 | EOF |
24 | EOF |
23 | |
25 | |
|
|
26 | do "constants.pl.PL" |
|
|
27 | or die "cannot execute constants.pl.PL: $@"; |
|
|
28 | |
24 | WriteMakefile( |
29 | WriteMakefile( |
25 | dist => { |
30 | dist => { |
26 | PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
31 | PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', |
27 | COMPRESS => 'gzip -9v', |
32 | COMPRESS => 'gzip -9v', |
28 | SUFFIX => '.gz', |
33 | SUFFIX => '.gz', |
29 | }, |
34 | }, |
30 | test => { TESTS => "t/*.t t/handle/*.t" }, |
35 | test => { TESTS => "t/*.t t/handle/*.t" }, |
31 | NAME => "AnyEvent", |
36 | NAME => "AnyEvent", |
32 | VERSION_FROM => "lib/AnyEvent.pm", |
37 | VERSION_FROM => "lib/AnyEvent.pm", |
33 | PL_FILES => { "constants.pl.PL" => "constants.pl" }, |
|
|
34 | clean => { FILES => "constants.pl" }, |
|
|
35 | PMLIBDIRS => ["lib"], |
38 | PMLIBDIRS => ["lib"], |
|
|
39 | # PREREQ_PM => { |
|
|
40 | # Task::Weaken => 0, |
|
|
41 | # }, |
|
|
42 | CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 0 }, |
36 | META_MERGE => { |
43 | META_MERGE => { |
37 | recommends => { |
44 | recommends => { |
|
|
45 | "Task::Weaken" => 0, |
38 | "Net::SSLeay" => 1.33, |
46 | "Net::SSLeay" => 1.33, |
39 | "JSON" => 2.09, |
47 | "JSON" => 2.09, |
40 | "JSON::XS" => 2.2, |
48 | "JSON::XS" => 2.2, |
41 | "EV" => 3.05, |
49 | "EV" => 4.00, |
42 | "Guard" => 1.02, |
50 | "Guard" => 1.02, |
43 | "Async::Interrupt" => 1.0, |
51 | "Async::Interrupt" => 1.0, |
44 | } |
52 | } |
45 | }, |
53 | }, |
|
|
54 | PM => { |
|
|
55 | 'lib/AE.pm' => '$(INST_LIB)/AE.pm', |
|
|
56 | 'lib/AnyEvent.pm' => '$(INST_LIB)/AnyEvent.pm', |
|
|
57 | 'lib/AnyEvent/DNS.pm' => '$(INST_LIB)/AnyEvent/DNS.pm', |
|
|
58 | 'lib/AnyEvent/Debug.pm' => '$(INST_LIB)/AnyEvent/Debug.pm', |
|
|
59 | 'lib/AnyEvent/FAQ.pod' => '$(INST_LIB)/AnyEvent/FAQ.pod', |
|
|
60 | 'lib/AnyEvent/Handle.pm' => '$(INST_LIB)/AnyEvent/Handle.pm', |
|
|
61 | 'lib/AnyEvent/Impl/Cocoa.pm' => '$(INST_LIB)/AnyEvent/Impl/Cocoa.pm', |
|
|
62 | 'lib/AnyEvent/Impl/EV.pm' => '$(INST_LIB)/AnyEvent/Impl/EV.pm', |
|
|
63 | 'lib/AnyEvent/Impl/Event.pm' => '$(INST_LIB)/AnyEvent/Impl/Event.pm', |
|
|
64 | 'lib/AnyEvent/Impl/EventLib.pm' => '$(INST_LIB)/AnyEvent/Impl/EventLib.pm', |
|
|
65 | 'lib/AnyEvent/Impl/FLTK.pm' => '$(INST_LIB)/AnyEvent/Impl/FLTK.pm', |
|
|
66 | 'lib/AnyEvent/Impl/Glib.pm' => '$(INST_LIB)/AnyEvent/Impl/Glib.pm', |
|
|
67 | 'lib/AnyEvent/Impl/IOAsync.pm' => '$(INST_LIB)/AnyEvent/Impl/IOAsync.pm', |
|
|
68 | 'lib/AnyEvent/Impl/Irssi.pm' => '$(INST_LIB)/AnyEvent/Impl/Irssi.pm', |
|
|
69 | 'lib/AnyEvent/Impl/POE.pm' => '$(INST_LIB)/AnyEvent/Impl/POE.pm', |
|
|
70 | 'lib/AnyEvent/Impl/Perl.pm' => '$(INST_LIB)/AnyEvent/Impl/Perl.pm', |
|
|
71 | 'lib/AnyEvent/Impl/Qt.pm' => '$(INST_LIB)/AnyEvent/Impl/Qt.pm', |
|
|
72 | 'lib/AnyEvent/Impl/Tk.pm' => '$(INST_LIB)/AnyEvent/Impl/Tk.pm', |
|
|
73 | 'lib/AnyEvent/Impl/UV.pm' => '$(INST_LIB)/AnyEvent/Impl/UV.pm', |
|
|
74 | 'lib/AnyEvent/IO.pm' => '$(INST_LIB)/AnyEvent/IO.pm', |
|
|
75 | 'lib/AnyEvent/IO/IOAIO.pm' => '$(INST_LIB)/AnyEvent/IO/IOAIO.pm', |
|
|
76 | 'lib/AnyEvent/IO/Perl.pm' => '$(INST_LIB)/AnyEvent/IO/Perl.pm', |
|
|
77 | 'lib/AnyEvent/Intro.pod' => '$(INST_LIB)/AnyEvent/Intro.pod', |
|
|
78 | 'lib/AnyEvent/Log.pm' => '$(INST_LIB)/AnyEvent/Log.pm', |
|
|
79 | 'lib/AnyEvent/Loop.pm' => '$(INST_LIB)/AnyEvent/Loop.pm', |
|
|
80 | 'lib/AnyEvent/Socket.pm' => '$(INST_LIB)/AnyEvent/Socket.pm', |
|
|
81 | 'lib/AnyEvent/Strict.pm' => '$(INST_LIB)/AnyEvent/Strict.pm', |
|
|
82 | 'lib/AnyEvent/TLS.pm' => '$(INST_LIB)/AnyEvent/TLS.pm', |
|
|
83 | 'lib/AnyEvent/Util.pm' => '$(INST_LIB)/AnyEvent/Util.pm', |
|
|
84 | 'lib/AnyEvent/Util/idna.pl' => '$(INST_LIB)/AnyEvent/Util/idna.pl', |
|
|
85 | 'lib/AnyEvent/Util/uts46data.pl' => '$(INST_LIB)/AnyEvent/Util/uts46data.pl', |
|
|
86 | 'lib/AnyEvent/constants.pl' => '$(INST_ARCHLIB)/AnyEvent/constants.pl', |
|
|
87 | }, |
46 | ); |
88 | ); |
47 | |
89 | |
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 | |
|
|