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

Comparing Coro/Makefile.PL (file contents):
Revision 1.3 by root, Thu Jul 19 02:45:09 2001 UTC vs.
Revision 1.38 by root, Sun Nov 25 13:53:48 2007 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use 5.006; 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";
17
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 }) {
34 if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) {
35 print <<EOF
36
37***
38*** WARNING: Event version $Event::VERSION found, NOT building Event support.
39***
40*** 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
42*** versions.
43***
44
45EOF
46 } else {
47 $EVENT = 1;
48 $DEFINE .= " -DHAVE_EVENT=1";
49 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
50 }
51} else {
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";
61}
4 62
5WriteMakefile( 63WriteMakefile(
6 dist => { 64 dist => {
7 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 . ;',
8 COMPRESS => 'gzip -9v', 66 COMPRESS => 'gzip -9v',
9 SUFFIX => '.gz', 67 SUFFIX => '.gz',
10 }, 68 },
11 NAME => "Coro", 69 NAME => "Coro",
12 VERSION_FROM => "Coro.pm", 70 VERSION_FROM => "Coro.pm",
13 DIR => ['Coro'], 71 DIR => ['Coro', ($EVENT ? 'Event' : ()), ($EV ? "EV" : ())],
72 PREREQ_PM => {
73 Scalar::Util => 0.00,
74 AnyEvent => 2.7,
75 Storable => 2.15,
76 Time::HiRes => 0,
77
78 # for Coro::Event
79 Event => 1.06,
80
81 # for Coro::EV
82 EV => 1.3,
83
84 # for Coro::AIO
85 IO::AIO => 2.3,
86 },
87 EXTRA_META => q{
88configure_requires:
89 Event: 1.06
90 EV: 1.3
91 },
92 PM => {
93 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
94
95 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
96
97 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm',
98 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h',
99
100# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm',
101
102 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm',
103
104 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm',
105 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm',
106 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm',
107 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm',
108 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm',
109 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm',
110
111 'Coro/Debug.pm' => '$(INST_LIBDIR)/Coro/Debug.pm',
112 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm',
113 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
114 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
115 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
116
117 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
118 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
119 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
120 },
14); 121);
15 122
16sub MY::postamble { 123sub MY::postamble {
17 <<EOF; 124 <<EOF;
18 125
19# set \$VERSION in all modules 126# set \$VERSION in all modules
20setver: 127setver:
21 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm 128 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm
22 129
23EOF 130EOF
24} 131}
25 132
26 133

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines