… | |
… | |
3 | if ($] < 5.006) { |
3 | if ($] < 5.006) { |
4 | print <<EOF; |
4 | print <<EOF; |
5 | |
5 | |
6 | *** |
6 | *** |
7 | *** WARNING: This module is quite low-level and uses undocumented perl |
7 | *** WARNING: This module is quite low-level and uses undocumented perl |
8 | *** internals to do it's job. While it seems to work fine with perl-5.8, |
8 | *** internals to do it's job. While it seems to work fine with perl-5.[6-9] |
9 | *** 5.7 and 5.6, it has not been tested with older versions. If it |
9 | *** it has not been tested with older versions. If it compiles and passes the |
10 | *** compiles and passes the testsuite, it should work. Otherwise you |
10 | *** testsuite, it should work. Otherwise you should either upgrade or fix it ;) |
11 | *** should either upgrade or fix it ;) |
|
|
12 | *** |
11 | *** |
13 | *** Marc Lehmann <pcg\@goof.com> |
12 | *** Marc Lehmann <schmorp\@schmorp.de> |
14 | *** |
13 | *** |
15 | |
14 | |
16 | EOF |
15 | EOF |
17 | } |
16 | } |
18 | |
17 | |
19 | if (eval { require Event }) { |
18 | if (eval { require Event }) { |
20 | if ($Event::VERSION < 0.86) { |
19 | if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) { |
21 | print "*** Please read the INSTALL file, you need a patched Event.\n"; |
|
|
22 | } elsif ($Event::VERSION == 0.88) { |
|
|
23 | print <<EOF |
20 | print <<EOF |
24 | |
21 | |
25 | *** |
22 | *** |
26 | *** WARNING: Event version $Event::VERSION found, NOT building Event support. |
23 | *** WARNING: Event version $Event::VERSION found, NOT building Event support. |
27 | *** |
24 | *** |
28 | *** This version of Event is broken. The only currently known non-broken |
25 | *** This version of Event is broken. The only currently known non-broken |
29 | *** version of Event is 0.87. Please install this version, or try with a |
26 | *** versions of Event are 0.87 and 0.89+. Please install one of those |
30 | *** newer version that hopefully has the bug fixed. |
27 | *** versions. |
31 | *** |
28 | *** |
32 | |
29 | |
33 | EOF |
30 | EOF |
34 | } else { |
31 | } else { |
35 | $EVENT = 1; |
32 | $EVENT = 1; |
36 | $DEFINE .= " -DHAVE_EVENT=1"; |
33 | $DEFINE .= " -DHAVE_EVENT=1"; |
… | |
… | |
49 | }, |
46 | }, |
50 | NAME => "Coro", |
47 | NAME => "Coro", |
51 | VERSION_FROM => "Coro.pm", |
48 | VERSION_FROM => "Coro.pm", |
52 | DIR => ['Coro', ($EVENT ? 'Event' : ())], |
49 | DIR => ['Coro', ($EVENT ? 'Event' : ())], |
53 | PREREQ_PM => { |
50 | PREREQ_PM => { |
54 | Event => 0.86, |
|
|
55 | Scalar::Util => 0.00, |
51 | Scalar::Util => 0.00, |
|
|
52 | |
|
|
53 | # for Coro::Event |
|
|
54 | Event => 1.06, |
|
|
55 | Time::HiRes => 0, |
|
|
56 | |
|
|
57 | # for Coro::AIO, Coro::Util |
|
|
58 | IO::AIO => 2.3, |
|
|
59 | AnyEvent => 2.51, |
56 | }, |
60 | }, |
57 | PM => { |
61 | PM => { |
58 | 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', |
62 | 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', |
59 | |
63 | |
60 | 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', |
64 | 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', |
61 | |
65 | |
62 | 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', |
66 | 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', |
63 | 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', |
67 | 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', |
64 | |
68 | |
65 | 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', |
69 | # 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', |
66 | |
70 | |
67 | 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', |
71 | 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', |
68 | |
72 | |
69 | 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', |
73 | 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', |
70 | 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', |
74 | 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', |
71 | 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', |
75 | 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', |
72 | 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', |
76 | 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', |
73 | 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', |
77 | 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', |
74 | 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', |
78 | 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', |
|
|
79 | |
|
|
80 | 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm', |
|
|
81 | 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm', |
|
|
82 | 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm', |
|
|
83 | 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm', |
|
|
84 | |
|
|
85 | 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm', |
|
|
86 | 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm', |
|
|
87 | 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm', |
75 | }, |
88 | }, |
76 | ); |
89 | ); |
77 | |
90 | |
78 | sub MY::postamble { |
91 | sub MY::postamble { |
79 | <<EOF; |
92 | <<EOF; |
80 | |
93 | |
81 | # set \$VERSION in all modules |
94 | # set \$VERSION in all modules |
82 | setver: |
95 | setver: |
83 | \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm |
96 | \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm |
84 | |
97 | |
85 | EOF |
98 | EOF |
86 | } |
99 | } |
87 | |
100 | |
88 | |
101 | |