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

Comparing Coro/Makefile.PL (file contents):
Revision 1.43 by root, Sat May 10 22:32:40 2008 UTC vs.
Revision 1.55 by root, Sat Dec 13 19:18:36 2008 UTC

51} else { 51} else {
52 print "\n*** Event not found, not build Event support.\n\n"; 52 print "\n*** Event not found, not build Event support.\n\n";
53} 53}
54 54
55if (eval { require EV }) { 55if (eval { require EV }) {
56 if ($EV::VERSION < 2.0) { 56 if ($EV::VERSION < 3.3) {
57 print <<EOF 57 print <<EOF
58 58
59*** 59***
60*** WARNING: Event version $EV::VERSION found, NOT building EV support. 60*** WARNING: Event version $EV::VERSION found, NOT building EV support.
61*** 61***
62*** This version is ABI-incompatible with Coro, please upgrade to 2.0. 62*** This version is ABI-incompatible with Coro, please upgrade to at least 3.3.
63*** 63***
64 64
65EOF 65EOF
66 } else { 66 } else {
67 $EV = 1; 67 $EV = 1;
81 NAME => "Coro", 81 NAME => "Coro",
82 VERSION_FROM => "Coro.pm", 82 VERSION_FROM => "Coro.pm",
83 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())], 83 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
84 PREREQ_PM => { 84 PREREQ_PM => {
85 Scalar::Util => 0.00, 85 Scalar::Util => 0.00,
86 AnyEvent => 3.4, 86 AnyEvent => 4.1,
87 AnyEvent::AIO => 1.0,
88 AnyEvent::BDB => 1.0,
89 Storable => 2.15, 87 Storable => 2.15,
90 Time::HiRes => 0, 88 Time::HiRes => 0,
89 Guard => 0.5,
91 90
92 # for Coro::Event 91 # for Coro::Event
93 Event => 1.06, 92 #Event => 1.06,
94 93
95 # for Coro::EV 94 # for Coro::EV
96 EV => 3.0, 95 #EV => 3.3,
97 96
98 # for Coro::AIO 97 # for Coro::AIO
99 #IO::AIO => 2.3, 98 #IO::AIO => 2.3,
99 #AnyEvent::AIO => 1.0,
100
101 # for Coro::BDB
102 #BDB => 1.5,
103 #AnyEvent::BDB => 1.0,
100 }, 104 },
105 # neither configure_requires nor recommends can be used
106 # for optional dependencies. whoever decided that a module needs
107 # to build properly without its dependencies installed
108 # needs his brain rearranged dramatically.
101 EXTRA_META => q{ 109 EXTRA_META => q{
102configure_requires: 110recommends:
103 Event: 1.06 111 Event: 1.08
104 EV: 3.0 112 EV: 3.0
113 IO::AIO: 3.1
114 AnyEvent::AIO: 1.0
115 BDB: 0
116 AnyEvent::BDB: 1.0
105 }, 117 },
106 PM => { 118 PM => {
107 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 119 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
108 120
109 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 121 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
139sub MY::postamble { 151sub MY::postamble {
140 <<EOF; 152 <<EOF;
141 153
142# set \$VERSION in all modules 154# set \$VERSION in all modules
143setver: 155setver:
144 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm 156 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm EV/*.pm Event/*.pm
145 157
146EOF 158EOF
147} 159}
148 160
149 161

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines