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

Comparing Coro/Makefile.PL (file contents):
Revision 1.55 by root, Sat Dec 13 19:18:36 2008 UTC vs.
Revision 1.72 by root, Thu Jun 4 22:58:28 2015 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines