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

Comparing Coro/Makefile.PL (file contents):
Revision 1.17 by root, Sun May 30 19:26:39 2004 UTC vs.
Revision 1.66 by root, Sat Jun 11 15:30:21 2011 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3if ($] < 5.006) { 3use 5.008002;
4
5unless (-e "Coro/libcoro/coro.c") {
4 print <<EOF; 6 print <<EOF;
5 7
6*** 8***
7*** WARNING: This module is quite low-level and uses undocumented perl 9*** ERROR: Coro/libcoro is missing or damaged. If you used a CVS check-out
8*** internals to do it's job. While it seems to work fine with perl-5.8, 10*** of Coro, you also have to check-out the "libcoro" module from the same CVS
9*** 5.7 and 5.6, it has not been tested with older versions. If it 11*** repository in the Coro subdirectory (i.e. Coro/Coro/libcoro from outside).
10*** compiles and passes the testsuite, it should work. Otherwise you
11*** should either upgrade or fix it ;)
12***
13*** Marc Lehmann <pcg\@goof.com>
14*** 12***
15 13
16EOF 14EOF
15 exit 1;
17} 16}
17
18print "*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\n\n";
18 19
19if (eval { require Event }) { 20if (eval { require Event }) {
20 if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) { 21 if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) {
21 print <<EOF 22 print <<EOF
22 23
23*** 24***
24*** WARNING: Event version $Event::VERSION found, NOT building Event support. 25*** WARNING: Event version $Event::VERSION found, NOT building Event support.
25*** 26***
26*** This version of Event is broken. The only currently known non-broken 27*** This version of Event is broken. The only currently known non-broken
27*** versions of Event are 0.87 and 0.89+. Please install one of these 28*** versions of Event are 0.87 and 0.89+. Please install one of those
28*** versions. 29*** versions.
29*** 30***
30 31
31EOF 32EOF
32 } else { 33 } else {
33 $EVENT = 1; 34 $EVENT = 1;
34 $DEFINE .= " -DHAVE_EVENT=1"; 35 $DEFINE .= " -DHAVE_EVENT=1";
35 print "\nEvent version $Event::VERSION found, building Event support.\n\n"; 36 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
36 } 37 }
37 print "\n";
38} else { 38} else {
39 print "\n*** Event not found, not build Event support.\n\n"; 39 print "\n*** Event not found, not building Event support.\n\n";
40}
41
42if (eval { require EV }) {
43 if ($EV::VERSION < 3.3) {
44 print <<EOF
45
46***
47*** WARNING: EV version $EV::VERSION found, NOT building EV support.
48***
49*** This version is ABI-incompatible with Coro, please upgrade to at least 3.3.
50***
51
52EOF
53 } else {
54 $EV = 1;
55 $DEFINE .= " -DHAVE_EV=1";
56 print "\nEV version $EV::VERSION found, building EV support.\n\n";
57 }
58} else {
59 print "\n*** EV not found, not building EV support.\n\n";
40} 60}
41 61
42WriteMakefile( 62WriteMakefile(
43 dist => { 63 dist => {
44 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 64 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
45 COMPRESS => 'gzip -9v', 65 COMPRESS => 'gzip -9v',
46 SUFFIX => '.gz', 66 SUFFIX => '.gz',
47 }, 67 },
48 NAME => "Coro", 68 NAME => "Coro",
49 VERSION_FROM => "Coro.pm", 69 VERSION_FROM => "Coro.pm",
50 DIR => ['Coro', ($EVENT ? 'Event' : ())], 70 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
51 PREREQ_PM => { 71 PREREQ_PM => {
52 Event => 0.86, 72 common::sense => 0,
53 Scalar::Util => 0.00, 73 Scalar::Util => 0.00,
74 AnyEvent => 5.0,
75 Storable => 2.15,
76 Time::HiRes => 0,
77 Guard => 0.5,
78
79 # for Coro::Event
80 #Event => 1.06,
81
82 # for Coro::EV
83 #EV => 3.3,
84
85 # for Coro::AIO
86 #IO::AIO => 2.3,
87 #AnyEvent::AIO => 1.1,
88
89 # for Coro::BDB
90 #BDB => 1.5,
91 #AnyEvent::BDB => 1.0,
92 },
93 # neither configure_requires nor recommends can be used
94 # for optional dependencies. whoever decided that a module needs
95 # to build properly without its dependencies installed
96 # needs his brain rearranged dramatically.
97 META_MERGE => {
98 recommends => {
99 Event => 1.08,
100 EV => 3.0,
101 IO::AIO => 3.1,
102 AnyEvent::AIO => 1.0,
103 BDB => 0,
104 AnyEvent::BDB => 1.0,
105 }
54 }, 106 },
55 PM => { 107 PM => {
56 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm', 108 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
57 109
58 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm', 110 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
111 'Coro/jit-amd64-unix.pl' => '$(INST_LIBDIR)/Coro/jit-amd64-unix.pl',
112 'Coro/jit-x86-unix.pl' => '$(INST_LIBDIR)/Coro/jit-x86-unix.pl',
59 113
60 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm', 114 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm',
61 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h', 115 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h',
62 116
63 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm', 117# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm',
64 118
65 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm', 119 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm',
66 120
67 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm', 121 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm',
68 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm', 122 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm',
69 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm', 123 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm',
70 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm', 124 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm',
71 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm', 125 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm',
72 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm', 126 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm',
127
128 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm',
129 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm',
130 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
131 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
132 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
133
134 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
135 'Coro/BDB.pm' => '$(INST_LIBDIR)/Coro/BDB.pm',
136 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
137 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
138 'Coro/AnyEvent.pm' => '$(INST_LIBDIR)/Coro/AnyEvent.pm',
73 }, 139 },
74); 140);
75 141
76sub MY::postamble { 142sub MY::postamble {
77 <<EOF; 143 <<EOF;
78 144
79# set \$VERSION in all modules 145# set \$VERSION in all modules
80setver: 146setver:
81 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm 147 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm EV/*.pm Event/*.pm
82 148
83EOF 149EOF
84} 150}
85 151
86 152

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines