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

Comparing Coro/Makefile.PL (file contents):
Revision 1.47 by root, Sun May 25 03:15:27 2008 UTC vs.
Revision 1.59 by root, Tue Jul 14 00:55:10 2009 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;
80 }, 80 },
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 common::sense => 0,
85 Scalar::Util => 0.00, 86 Scalar::Util => 0.00,
86 AnyEvent => 4.03, 87 AnyEvent => 4.800001,
87 Storable => 2.15, 88 Storable => 2.15,
88 Time::HiRes => 0, 89 Time::HiRes => 0,
90 Guard => 0.5,
89 91
90 # for Coro::Event 92 # for Coro::Event
91 #Event => 1.06, 93 #Event => 1.06,
92 94
93 # for Coro::EV 95 # for Coro::EV
94 #EV => 3.0, 96 #EV => 3.3,
95 97
96 # for Coro::AIO 98 # for Coro::AIO
97 #IO::AIO => 2.3, 99 #IO::AIO => 2.3,
98 #AnyEvent::AIO => 1.0, 100 #AnyEvent::AIO => 1.0,
99 101
102 #AnyEvent::BDB => 1.0, 104 #AnyEvent::BDB => 1.0,
103 }, 105 },
104 # neither configure_requires nor recommends can be used 106 # neither configure_requires nor recommends can be used
105 # for optional dependencies. whoever decided that a module needs 107 # for optional dependencies. whoever decided that a module needs
106 # to build properly without its dependencies installed 108 # to build properly without its dependencies installed
107 # needs his brian rearranged dramatically. 109 # needs his brain rearranged dramatically.
108 EXTRA_META => q{ 110 META_MERGE => {
109recommends: 111 recommends => {
110 Event: 1.08 112 Event => 1.08,
111 EV: 3.0 113 EV => 3.0,
112 IO::AIO: 0 114 IO::AIO => 3.1,
113 AnyEvent::AIO: 1.0 115 AnyEvent::AIO => 1.0,
114 BDB: 0 116 BDB => 0,
115 AnyEvent::BDB: 1.0 117 AnyEvent::BDB => 1.0,
118 }
116 }, 119 },
117 PM => { 120 PM => {
118 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 121 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
119 122
120 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 123 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
150sub MY::postamble { 153sub MY::postamble {
151 <<EOF; 154 <<EOF;
152 155
153# set \$VERSION in all modules 156# set \$VERSION in all modules
154setver: 157setver:
155 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm 158 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm EV/*.pm Event/*.pm
156 159
157EOF 160EOF
158} 161}
159 162
160 163

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines