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

Comparing Coro/Makefile.PL (file contents):
Revision 1.29 by root, Fri Apr 13 03:57:15 2007 UTC vs.
Revision 1.33 by root, Mon Oct 29 19:13:39 2007 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2
3print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n";
2 4
3if ($] < 5.006) { 5if ($] < 5.006) {
4 print <<EOF; 6 print <<EOF;
5 7
6*** 8***
7*** WARNING: This module is quite low-level and uses undocumented perl 9*** 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] 10*** 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 11*** 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 ;) 12*** testsuite, it should work. Otherwise you should either upgrade or fix it ;)
11*** 13***
12*** Marc Lehmann <schmorp\@schmorp.de> 14*** Marc Lehmann <schmorp\@schmorp.de>
13*** 15***
31 } else { 33 } else {
32 $EVENT = 1; 34 $EVENT = 1;
33 $DEFINE .= " -DHAVE_EVENT=1"; 35 $DEFINE .= " -DHAVE_EVENT=1";
34 print "\nEvent version $Event::VERSION found, building Event support.\n\n"; 36 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
35 } 37 }
36 print "\n";
37} else { 38} else {
38 print "\n*** Event not found, not build Event support.\n\n"; 39 print "\n*** Event not found, not build Event support.\n\n";
40}
41
42if (eval { require EV }) {
43 $EV = 1;
44 $DEFINE .= " -DHAVE_EV=1";
45 print "\nEV version $EV::VERSION found, building EV support.\n\n";
46} else {
47 print "\n*** EV not found, not build EV support.\n\n";
39} 48}
40 49
41WriteMakefile( 50WriteMakefile(
42 dist => { 51 dist => {
43 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 52 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
44 COMPRESS => 'gzip -9v', 53 COMPRESS => 'gzip -9v',
45 SUFFIX => '.gz', 54 SUFFIX => '.gz',
46 }, 55 },
47 NAME => "Coro", 56 NAME => "Coro",
48 VERSION_FROM => "Coro.pm", 57 VERSION_FROM => "Coro.pm",
49 DIR => ['Coro', ($EVENT ? 'Event' : ())], 58 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
50 PREREQ_PM => { 59 PREREQ_PM => {
51 Scalar::Util => 0.00, 60 Scalar::Util => 0.00,
61 AnyEvent => 2.51,
62 Storable => 2.15,
63 Time::HiRes => 0,
52 64
53 # for Coro::Event 65 # for Coro::Event
54 Event => 1.06, 66 Event => 1.06,
55 67
68 # for Coro::EV
69 EV => 0.03,
70
56 # for Coro::AIO, Coro::Util 71 # for Coro::AIO
57 IO::AIO => 2.3, 72 IO::AIO => 2.3,
58 AnyEvent => 2.51,
59 }, 73 },
60 PM => { 74 PM => {
61 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 75 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
62 76
63 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 77 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
74 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', 88 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm',
75 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', 89 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm',
76 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', 90 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm',
77 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', 91 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm',
78 92
93 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm',
79 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm', 94 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm',
80 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm', 95 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
81 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm', 96 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
82 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm', 97 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
83 98

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines