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

Comparing Coro/Makefile.PL (file contents):
Revision 1.61 by root, Thu Jul 23 01:35:18 2009 UTC vs.
Revision 1.71 by root, Sat Nov 2 19:48:50 2013 UTC

15 exit 1; 15 exit 1;
16} 16}
17 17
18print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n"; 18print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n";
19 19
20if ($] < 5.006) {
21 print <<EOF;
22
23***
24*** WARNING: This module is quite low-level and uses undocumented perl
25*** internals to do it's job. While it seems to work fine with perl-5.[6-10]
26*** it has not been tested with older versions. If it compiles and passes the
27*** testsuite, it should work. Otherwise you should either upgrade or fix it ;)
28***
29*** Marc Lehmann <schmorp\@schmorp.de>
30***
31
32EOF
33}
34
35if (eval { require Event }) { 20if (eval { require Event }) {
36 if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) { 21 if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) {
37 print <<EOF 22 print <<EOF
38 23
39*** 24***
40*** WARNING: Event version $Event::VERSION found, NOT building Event support. 25*** WARNING: Event version $Event::VERSION found, NOT building Event support.
41*** 26***
42*** This version of Event is broken. The only currently known non-broken 27*** This version of Event is broken. The only currently known non-broken
43*** versions of Event are 0.87 and 0.89+. Please install one of those 28*** versions of Event are 0.87 and 0.89+. Please install one of those
44*** versions. 29*** versions.
49 $EVENT = 1; 34 $EVENT = 1;
50 $DEFINE .= " -DHAVE_EVENT=1"; 35 $DEFINE .= " -DHAVE_EVENT=1";
51 print "\nEvent version $Event::VERSION found, building Event support.\n\n"; 36 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
52 } 37 }
53} else { 38} else {
54 print "\n*** Event not found, not build Event support.\n\n"; 39 print "\n*** Event not found, not building Event support.\n\n";
55} 40}
56 41
57if (eval { require EV }) { 42if (eval { require EV }) {
58 if ($EV::VERSION < 3.3) { 43 if ($EV::VERSION < 4.0) {
59 print <<EOF 44 print <<EOF
60 45
61***
62*** WARNING: Event version $EV::VERSION found, NOT building EV support.
63*** 46***
47*** WARNING: EV version $EV::VERSION found, NOT building EV support.
48***
64*** This version is ABI-incompatible with Coro, please upgrade to at least 3.3. 49*** This version is ABI-incompatible with Coro, please upgrade to at least 4.0.
65*** 50***
66 51
67EOF 52EOF
68 } else { 53 } else {
69 $EV = 1; 54 $EV = 1;
70 $DEFINE .= " -DHAVE_EV=1"; 55 $DEFINE .= " -DHAVE_EV=1";
71 print "\nEV version $EV::VERSION found, building EV support.\n\n"; 56 print "\nEV version $EV::VERSION found, building EV support.\n\n";
72 } 57 }
73} else { 58} else {
74 print "\n*** EV not found, not build EV support.\n\n"; 59 print "\n*** EV not found, not building EV support.\n\n";
75} 60}
76 61
77WriteMakefile( 62WriteMakefile(
78 dist => { 63 dist => {
79 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 64 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
84 VERSION_FROM => "Coro.pm", 69 VERSION_FROM => "Coro.pm",
85 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())], 70 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
86 PREREQ_PM => { 71 PREREQ_PM => {
87 common::sense => 0, 72 common::sense => 0,
88 Scalar::Util => 0.00, 73 Scalar::Util => 0.00,
89 AnyEvent => 4.81, 74 AnyEvent => 5.0,
90 Storable => 2.15, 75 Storable => 2.15,
91 Time::HiRes => 0,
92 Guard => 0.5, 76 Guard => 0.5,
93 77
94 # for Coro::Event 78 # for Coro::Event
95 #Event => 1.06, 79 #Event => 1.06,
96 80
97 # for Coro::EV 81 # for Coro::EV
98 #EV => 3.3, 82 #EV => 4.0,
99 83
100 # for Coro::AIO 84 # for Coro::AIO
101 #IO::AIO => 2.3, 85 #IO::AIO => 2.3,
102 #AnyEvent::AIO => 1.0, 86 #AnyEvent::AIO => 1.1,
103 87
104 # for Coro::BDB 88 # for Coro::BDB
105 #BDB => 1.5, 89 #BDB => 1.5,
106 #AnyEvent::BDB => 1.0, 90 #AnyEvent::BDB => 1.0,
107 }, 91 },
110 # to build properly without its dependencies installed 94 # to build properly without its dependencies installed
111 # needs his brain rearranged dramatically. 95 # needs his brain rearranged dramatically.
112 META_MERGE => { 96 META_MERGE => {
113 recommends => { 97 recommends => {
114 Event => 1.08, 98 Event => 1.08,
115 EV => 3.0, 99 EV => 4.0,
116 IO::AIO => 3.1, 100 IO::AIO => 3.1,
101 BDB => 0,
102 AnyEvent => 7.0,
117 AnyEvent::AIO => 1.0, 103 AnyEvent::AIO => 1.0,
118 BDB => 0,
119 AnyEvent::BDB => 1.0, 104 AnyEvent::BDB => 1.0,
120 } 105 }
121 }, 106 },
122 PM => { 107 PM => {
123 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 108 'Coro.pm' => '$(INST_LIB)/Coro.pm',
124 109
125 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 110 'Coro/State.pm' => '$(INST_LIB)/Coro/State.pm',
111 'Coro/jit-amd64-unix.pl' => '$(INST_LIB)/Coro/jit-amd64-unix.pl',
112 'Coro/jit-x86-unix.pl' => '$(INST_LIB)/Coro/jit-x86-unix.pl',
126 113
127 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', 114 'Coro/MakeMaker.pm' => '$(INST_LIB)/Coro/MakeMaker.pm',
128 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', 115 'Coro/CoroAPI.h' => '$(INST_LIB)/Coro/CoroAPI.h',
129 116
130# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', 117# 'Coro/Cont.pm' => '$(INST_LIB)/Coro/Cont.pm',
131 118
132 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', 119 'Coro/Specific.pm' => '$(INST_LIB)/Coro/Specific.pm',
133 120
134 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', 121 'Coro/Timer.pm' => '$(INST_LIB)/Coro/Timer.pm',
135 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', 122 'Coro/Signal.pm' => '$(INST_LIB)/Coro/Signal.pm',
136 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', 123 'Coro/Channel.pm' => '$(INST_LIB)/Coro/Channel.pm',
137 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', 124 'Coro/Semaphore.pm' => '$(INST_LIB)/Coro/Semaphore.pm',
138 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', 125 'Coro/SemaphoreSet.pm'=> '$(INST_LIB)/Coro/SemaphoreSet.pm',
139 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', 126 'Coro/RWLock.pm' => '$(INST_LIB)/Coro/RWLock.pm',
140 127
141 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm', 128 'Coro/Debug.pm' => '$(INST_LIB)/Coro/Debug.pm',
142 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm', 129 'Coro/Util.pm' => '$(INST_LIB)/Coro/Util.pm',
143 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm', 130 'Coro/Select.pm' => '$(INST_LIB)/Coro/Select.pm',
144 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm', 131 'Coro/Handle.pm' => '$(INST_LIB)/Coro/Handle.pm',
145 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm', 132 'Coro/Socket.pm' => '$(INST_LIB)/Coro/Socket.pm',
146 133
147 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm', 134 'Coro/AIO.pm' => '$(INST_LIB)/Coro/AIO.pm',
148 'Coro/BDB.pm' => '$(INST_LIBDIR)/Coro/BDB.pm', 135 'Coro/BDB.pm' => '$(INST_LIB)/Coro/BDB.pm',
149 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm', 136 'Coro/LWP.pm' => '$(INST_LIB)/Coro/LWP.pm',
150 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm', 137 'Coro/Storable.pm' => '$(INST_LIB)/Coro/Storable.pm',
151 'Coro/AnyEvent.pm' => '$(INST_LIBDIR)/Coro/AnyEvent.pm', 138 'Coro/AnyEvent.pm' => '$(INST_LIB)/Coro/AnyEvent.pm',
152 }, 139 },
153); 140);
154 141
155sub MY::postamble { 142sub MY::postamble {
156 <<EOF; 143 <<EOF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines