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

Comparing Coro/Makefile.PL (file contents):
Revision 1.31 by root, Wed Sep 19 21:39:15 2007 UTC vs.
Revision 1.41 by root, Fri May 9 22:04:37 2008 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2
3unless (-e "Coro/libcoro/coro.c") {
4 print <<EOF;
5
6***
7*** ERROR: Coro/libcoro is missing or damaged. If you used a CVS check-out
8*** of Coro, you also have to check-out the "libcoro" module from the same CVS
9*** repository in the Coro subdirectory (i.e. Coro/Coro/libcoro from outside).
10***
11
12EOF
13 exit 1;
14}
15
16print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n";
2 17
3if ($] < 5.006) { 18if ($] < 5.006) {
4 print <<EOF; 19 print <<EOF;
5 20
6*** 21***
7*** WARNING: This module is quite low-level and uses undocumented perl 22*** 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.[6-9] 23*** internals to do it's job. While it seems to work fine with perl-5.[6-10]
9*** it has not been tested with older versions. If it compiles and passes the 24*** it has not been tested with older versions. If it compiles and passes the
10*** testsuite, it should work. Otherwise you should either upgrade or fix it ;) 25*** testsuite, it should work. Otherwise you should either upgrade or fix it ;)
11*** 26***
12*** Marc Lehmann <schmorp\@schmorp.de> 27*** Marc Lehmann <schmorp\@schmorp.de>
13*** 28***
31 } else { 46 } else {
32 $EVENT = 1; 47 $EVENT = 1;
33 $DEFINE .= " -DHAVE_EVENT=1"; 48 $DEFINE .= " -DHAVE_EVENT=1";
34 print "\nEvent version $Event::VERSION found, building Event support.\n\n"; 49 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
35 } 50 }
36 print "\n";
37} else { 51} else {
38 print "\n*** Event not found, not build Event support.\n\n"; 52 print "\n*** Event not found, not build Event support.\n\n";
53}
54
55if (eval { require EV }) {
56 if ($EV::VERSION < 2.0) {
57 print <<EOF
58
59***
60*** WARNING: Event version $EV::VERSION found, NOT building EV support.
61***
62*** This version is ABI-incompatible with Coro, please upgrade to 2.0.
63***
64
65EOF
66 } else {
67 $EV = 1;
68 $DEFINE .= " -DHAVE_EV=1";
69 print "\nEV version $EV::VERSION found, building EV support.\n\n";
70 }
71} else {
72 print "\n*** EV not found, not build EV support.\n\n";
39} 73}
40 74
41WriteMakefile( 75WriteMakefile(
42 dist => { 76 dist => {
43 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 77 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
44 COMPRESS => 'gzip -9v', 78 COMPRESS => 'gzip -9v',
45 SUFFIX => '.gz', 79 SUFFIX => '.gz',
46 }, 80 },
47 NAME => "Coro", 81 NAME => "Coro",
48 VERSION_FROM => "Coro.pm", 82 VERSION_FROM => "Coro.pm",
49 DIR => ['Coro', ($EVENT ? 'Event' : ())], 83 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
50 PREREQ_PM => { 84 PREREQ_PM => {
51 Scalar::Util => 0.00, 85 Scalar::Util => 0.00,
86 AnyEvent => 3.3,
87 Storable => 2.15,
88 Time::HiRes => 0,
52 89
53 # for Coro::Event 90 # for Coro::Event
54 Event => 1.06, 91 Event => 1.06,
55 Time::HiRes => 0,
56 92
93 # for Coro::EV
94 EV => 3.0,
95
57 # for Coro::AIO, Coro::Util 96 # for Coro::AIO
58 IO::AIO => 2.3, 97 IO::AIO => 2.3,
59 AnyEvent => 2.51, 98 },
99 EXTRA_META => q{
100configure_requires:
101 Event: 1.06
102 EV: 3.0
60 }, 103 },
61 PM => { 104 PM => {
62 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 105 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
63 106
64 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 107 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
82 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm', 125 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
83 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm', 126 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
84 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm', 127 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
85 128
86 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm', 129 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
130 'Coro/BDB.pm' => '$(INST_LIBDIR)/Coro/BDB.pm',
87 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm', 131 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
88 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm', 132 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
133 'Coro/AnyEvent.pm' => '$(INST_LIBDIR)/Coro/AnyEvent.pm',
89 }, 134 },
90); 135);
91 136
92sub MY::postamble { 137sub MY::postamble {
93 <<EOF; 138 <<EOF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines