ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/Makefile.PL
Revision: 1.32
Committed: Wed Oct 3 01:48:06 2007 UTC (16 years, 7 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-4_0, rel-4_13, rel-4_11, rel-4_01, rel-4_03, rel-4_02, rel-4_1
Changes since 1.31: +3 -2 lines
Log Message:
temporary check-in, non-working version

File Contents

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