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.13 by root, Thu Nov 21 13:08:05 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",
13 DIR => ['Coro'], 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 },
14); 37);
15 38
16sub MY::postamble { 39sub MY::postamble {
17 <<EOF; 40 <<EOF;
18 41
19# set \$VERSION in all modules 42# set \$VERSION in all modules
20setver: 43setver:
21 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm 44 \$(PERL) -pi -e 's/^(\\s*\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' *.pm Coro/*.pm Event/*.pm
22 45
23EOF 46EOF
24} 47}
25 48
26 49

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines