1 | use ExtUtils::MakeMaker; |
1 | use ExtUtils::MakeMaker; |
2 | |
2 | |
3 | use 5.008; |
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 | *** You *need* one or more of the following modules to make use of this module: |
10 | *** The EV module is recommended for even better performance, unless you |
9 | *** Coro, Event, Glib, Tk |
11 | *** have to use one of the other adaptors (Event, Glib, Tk, etc.). |
|
|
12 | *** The Async::Interrupt module is highly recommended to efficiently avoid |
|
|
13 | *** race conditions in/with other event loops. |
10 | *** |
14 | *** |
11 | *** The Makefile.PL depends on Event, but you can ignore this dependency if |
15 | *** This module does not have ANY dependencies, even if it might look |
12 | *** any of the other modules are installed. |
16 | *** otherwise. If you are building a distribution package or have |
|
|
17 | *** difficulties installing this package due to dependencies, report this |
|
|
18 | *** to the packager as a bug. |
|
|
19 | *** |
|
|
20 | *** This module is guaranteed to stay 100% pure-perl, full-featured |
|
|
21 | *** and performant, even without any of the optional modules. |
13 | *** |
22 | *** |
14 | |
23 | |
15 | EOF |
24 | EOF |
|
|
25 | |
|
|
26 | do "constants.pl.PL" |
|
|
27 | or die "cannot execute constants.pl.PL: $@"; |
16 | |
28 | |
17 | WriteMakefile( |
29 | WriteMakefile( |
18 | dist => { |
30 | dist => { |
19 | 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 . ;', |
20 | COMPRESS => 'gzip -9v', |
32 | COMPRESS => 'gzip -9v', |
21 | SUFFIX => '.gz', |
33 | SUFFIX => '.gz', |
22 | }, |
34 | }, |
|
|
35 | test => { TESTS => "t/*.t t/handle/*.t" }, |
23 | NAME => "AnyEvent", |
36 | NAME => "AnyEvent", |
24 | VERSION_FROM => "lib/AnyEvent.pm", |
37 | VERSION_FROM => "lib/AnyEvent.pm", |
|
|
38 | PMLIBDIRS => ["lib"], |
25 | PREREQ_PM => { |
39 | # PREREQ_PM => { |
26 | Event => 0.86, |
40 | # Task::Weaken => 0, |
|
|
41 | # }, |
|
|
42 | CONFIGURE_REQUIRES => { ExtUtils::MakeMaker => 6.52, Canary::Stability => 0 }, |
|
|
43 | META_MERGE => { |
|
|
44 | recommends => { |
|
|
45 | "Task::Weaken" => 0, |
|
|
46 | "Net::SSLeay" => 1.33, |
|
|
47 | "JSON" => 2.09, |
|
|
48 | "JSON::XS" => 2.2, |
|
|
49 | "EV" => 4.00, |
|
|
50 | "Guard" => 1.02, |
|
|
51 | "Async::Interrupt" => 1.0, |
|
|
52 | } |
|
|
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', |
27 | }, |
87 | }, |
28 | ); |
88 | ); |
29 | |
89 | |