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

Comparing Coro/Makefile.PL (file contents):
Revision 1.1 by root, Tue Jul 3 02:53:34 2001 UTC vs.
Revision 1.12 by root, Mon Feb 18 21:25:00 2002 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.8,
9*** 5.7 and 5.6, it has not been tested with older versions. If it
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***
15
16EOF
17}
18
19$EVENT = eval { require Event };
4 20
5WriteMakefile( 21WriteMakefile(
6 dist => { 22 dist => {
7 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 23 PREOP => 'pod2text Coro.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
8 COMPRESS => 'gzip -9v', 24 COMPRESS => 'gzip -9v',
9 SUFFIX => '.gz', 25 SUFFIX => '.gz',
10 }, 26 },
11 NAME => "Coro", 27 NAME => "Coro",
12 VERSION_FROM => "Coro.pm", 28 VERSION_FROM => "Coro.pm",
29 DIR => ['Coro', ($EVENT ? 'Event' : ())],
30 PREREQ_PM => {
31 Event => 0.85,
32 Scalar::Util => 0.00,
33 },
34 PM => {
35 'Coro.pm' => '$(INST_LIBDIR)/Coro.pm',
36 },
13); 37);
14 38
39sub MY::postamble {
40 <<EOF;
41
42# set \$VERSION in all modules
43setver:
44 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm
45
46EOF
47}
48
49

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines