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

Comparing Coro/Makefile.PL (file contents):
Revision 1.32 by root, Wed Oct 3 01:48:06 2007 UTC vs.
Revision 1.38 by root, Sun Nov 25 13:53:48 2007 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 $EV = 1;
57 $DEFINE .= " -DHAVE_EV=1";
58 print "\nEV version $EV::VERSION found, building EV support.\n\n";
59} else {
60 print "\n*** EV not found, not build EV support.\n\n";
39} 61}
40 62
41WriteMakefile( 63WriteMakefile(
42 dist => { 64 dist => {
43 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 65 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
44 COMPRESS => 'gzip -9v', 66 COMPRESS => 'gzip -9v',
45 SUFFIX => '.gz', 67 SUFFIX => '.gz',
46 }, 68 },
47 NAME => "Coro", 69 NAME => "Coro",
48 VERSION_FROM => "Coro.pm", 70 VERSION_FROM => "Coro.pm",
49 DIR => ['Coro', ($EVENT ? 'Event' : ())], 71 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
50 PREREQ_PM => { 72 PREREQ_PM => {
51 Scalar::Util => 0.00, 73 Scalar::Util => 0.00,
52 AnyEvent => 2.51, 74 AnyEvent => 2.7,
53 Storable => 2.15, 75 Storable => 2.15,
76 Time::HiRes => 0,
54 77
55 # for Coro::Event 78 # for Coro::Event
56 Event => 1.06, 79 Event => 1.06,
57 Time::HiRes => 0, 80
81 # for Coro::EV
82 EV => 1.3,
58 83
59 # for Coro::AIO 84 # for Coro::AIO
60 IO::AIO => 2.3, 85 IO::AIO => 2.3,
86 },
87 EXTRA_META => q{
88configure_requires:
89 Event: 1.06
90 EV: 1.3
61 }, 91 },
62 PM => { 92 PM => {
63 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 93 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
64 94
65 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 95 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines