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

Comparing Coro/Makefile.PL (file contents):
Revision 1.44 by root, Tue May 20 15:07:03 2008 UTC vs.
Revision 1.61 by root, Thu Jul 23 01:35:18 2009 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines