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.30 by root, Sat Aug 18 17:32:07 2007 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use 5.006; 3if ($] < 5.006) {
4 print <<EOF;
5
6***
7*** 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]
9*** 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 ;)
11***
12*** Marc Lehmann <schmorp\@schmorp.de>
13***
14
15EOF
16}
17
18if (eval { require Event }) {
19 if ($Event::VERSION < 0.86 or $Event::VERSION == 0.88) {
20 print <<EOF
21
22***
23*** WARNING: Event version $Event::VERSION found, NOT building Event support.
24***
25*** This version of Event is broken. The only currently known non-broken
26*** versions of Event are 0.87 and 0.89+. Please install one of those
27*** versions.
28***
29
30EOF
31 } else {
32 $EVENT = 1;
33 $DEFINE .= " -DHAVE_EVENT=1";
34 print "\nEvent version $Event::VERSION found, building Event support.\n\n";
35 }
36 print "\n";
37} else {
38 print "\n*** Event not found, not build Event support.\n\n";
39}
4 40
5WriteMakefile( 41WriteMakefile(
6 dist => { 42 dist => {
7 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 43 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
8 COMPRESS => 'gzip -9v', 44 COMPRESS => 'gzip -9v',
9 SUFFIX => '.gz', 45 SUFFIX => '.gz',
10 }, 46 },
11 NAME => "Coro", 47 NAME => "Coro",
12 VERSION_FROM => "Coro.pm", 48 VERSION_FROM => "Coro.pm",
13 DIR => ['Coro'], 49 DIR => ['Coro', ($EVENT ? 'Event' : ())],
50 PREREQ_PM => {
51 Scalar::Util => 0.00,
52
53 # for Coro::Event
54 Event => 1.06,
55 Time::HiRes => 0,
56
57 # for Coro::AIO, Coro::Util
58 IO::AIO => 2.3,
59 AnyEvent => 2.51,
60 },
61 PM => {
62 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
63
64 'Coro/State.pm' => '$(INST_LIBDIR)/Coro/State.pm',
65
66 'Coro/MakeMaker.pm' => '$(INST_LIBDIR)/Coro/MakeMaker.pm',
67 'Coro/CoroAPI.h' => '$(INST_LIBDIR)/Coro/CoroAPI.h',
68
69# 'Coro/Cont.pm' => '$(INST_LIBDIR)/Coro/Cont.pm',
70
71 'Coro/Specific.pm' => '$(INST_LIBDIR)/Coro/Specific.pm',
72
73 'Coro/Timer.pm' => '$(INST_LIBDIR)/Coro/Timer.pm',
74 'Coro/Signal.pm' => '$(INST_LIBDIR)/Coro/Signal.pm',
75 'Coro/Channel.pm' => '$(INST_LIBDIR)/Coro/Channel.pm',
76 'Coro/Semaphore.pm' => '$(INST_LIBDIR)/Coro/Semaphore.pm',
77 'Coro/SemaphoreSet.pm'=> '$(INST_LIBDIR)/Coro/SemaphoreSet.pm',
78 'Coro/RWLock.pm' => '$(INST_LIBDIR)/Coro/RWLock.pm',
79
80 'Coro/Util.pm' => '$(INST_LIBDIR)/Coro/Util.pm',
81 'Coro/Select.pm' => '$(INST_LIBDIR)/Coro/Select.pm',
82 'Coro/Handle.pm' => '$(INST_LIBDIR)/Coro/Handle.pm',
83 'Coro/Socket.pm' => '$(INST_LIBDIR)/Coro/Socket.pm',
84
85 'Coro/AIO.pm' => '$(INST_LIBDIR)/Coro/AIO.pm',
86 'Coro/LWP.pm' => '$(INST_LIBDIR)/Coro/LWP.pm',
87 'Coro/Storable.pm' => '$(INST_LIBDIR)/Coro/Storable.pm',
88 },
14); 89);
15 90
16sub MY::postamble { 91sub MY::postamble {
17 <<EOF; 92 <<EOF;
18 93
19# set \$VERSION in all modules 94# set \$VERSION in all modules
20setver: 95setver:
21 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm 96 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm
22 97
23EOF 98EOF
24} 99}
25 100
26 101

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines