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

Comparing AnyEvent/Makefile.PL (file contents):
Revision 1.23 by root, Sat Jul 18 05:47:44 2009 UTC vs.
Revision 1.32 by root, Tue Dec 28 20:56:36 2010 UTC

1use ExtUtils::MakeMaker; 1use ExtUtils::MakeMaker;
2 2
3use 5.008; # AnyEvent perl event loop seems to work with 5.6, other modules not 3use 5.008001; # AnyEvent perl event loop seems to work with 5.6, other modules not
4 4
5print <<EOF; 5print <<EOF;
6 6
7*** 7***
8*** The EV module is recommended for even better performance, unless you 8*** The EV module is recommended for even better performance, unless you
19*** and performant, even without any of the optional modules. 19*** and performant, even without any of the optional modules.
20*** 20***
21 21
22EOF 22EOF
23 23
24do "constants.pl.PL"
25 or die "cannot execute constants.pl.PL: $@";
26
24WriteMakefile( 27WriteMakefile(
25 dist => { 28 dist => {
26 PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;', 29 PREOP => 'pod2text lib/AnyEvent.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
27 COMPRESS => 'gzip -9v', 30 COMPRESS => 'gzip -9v',
28 SUFFIX => '.gz', 31 SUFFIX => '.gz',
29 }, 32 },
30 test => { TESTS => "t/*.t t/handle/*.t" }, 33 test => { TESTS => "t/*.t t/handle/*.t" },
31 NAME => "AnyEvent", 34 NAME => "AnyEvent",
32 VERSION_FROM => "lib/AnyEvent.pm", 35 VERSION_FROM => "lib/AnyEvent.pm",
36 PMLIBDIRS => ["lib"],
33 META_MERGE => { 37 META_MERGE => {
34 recommends => { 38 recommends => {
35 "Net::SSLeay" => 1.33, 39 "Net::SSLeay" => 1.33,
36 "JSON" => 2.09, 40 "JSON" => 2.09,
37 "JSON::XS" => 2.2, 41 "JSON::XS" => 2.2,
38 "EV" => 3.05, 42 "EV" => 4.00,
39 "Guard" => 1.02, 43 "Guard" => 1.02,
40 "Async::Interrupt" => 0.6, 44 "Async::Interrupt" => 1.0,
41 } 45 }
46 },
47 PM => {
48 'lib/AE.pm' => '$(INST_LIBDIR)/AE.pm',
49 'lib/AnyEvent.pm' => '$(INST_LIBDIR)/AnyEvent.pm',
50 'lib/AnyEvent/DNS.pm' => '$(INST_LIBDIR)/AnyEvent/DNS.pm',
51 'lib/AnyEvent/Debug.pm' => '$(INST_LIBDIR)/AnyEvent/Debug.pm',
52 'lib/AnyEvent/FAQ.pod' => '$(INST_LIBDIR)/AnyEvent/FAQ.pod',
53 'lib/AnyEvent/Handle.pm' => '$(INST_LIBDIR)/AnyEvent/Handle.pm',
54 'lib/AnyEvent/Impl/EV.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/EV.pm',
55 'lib/AnyEvent/Impl/Event.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/Event.pm',
56 'lib/AnyEvent/Impl/EventLib.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/EventLib.pm',
57 'lib/AnyEvent/Impl/Glib.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/Glib.pm',
58 'lib/AnyEvent/Impl/IOAsync.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/IOAsync.pm',
59 'lib/AnyEvent/Impl/Irssi.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/Irssi.pm',
60 'lib/AnyEvent/Impl/POE.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/POE.pm',
61 'lib/AnyEvent/Impl/Perl.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/Perl.pm',
62 'lib/AnyEvent/Impl/Qt.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/Qt.pm',
63 'lib/AnyEvent/Impl/Tk.pm' => '$(INST_LIBDIR)/AnyEvent/Impl/Tk.pm',
64 'lib/AnyEvent/Intro.pod' => '$(INST_LIBDIR)/AnyEvent/Intro.pod',
65 'lib/AnyEvent/Socket.pm' => '$(INST_LIBDIR)/AnyEvent/Socket.pm',
66 'lib/AnyEvent/Strict.pm' => '$(INST_LIBDIR)/AnyEvent/Strict.pm',
67 'lib/AnyEvent/TLS.pm' => '$(INST_LIBDIR)/AnyEvent/TLS.pm',
68 'lib/AnyEvent/Util.pm' => '$(INST_LIBDIR)/AnyEvent/Util.pm',
69 'lib/AnyEvent/Util/idna.pl' => '$(INST_LIBDIR)/AnyEvent/Util/idna.pl',
70 'lib/AnyEvent/Util/uts46data.pl' => '$(INST_LIBDIR)/AnyEvent/Util/uts46data.pl',
71 'lib/AnyEvent/constants.pl' => '$(INST_ARCHLIBDIR)/AnyEvent/constants.pl',
42 }, 72 },
43); 73);
44 74
45sub MY::postamble {
46 <<EOF;
47
48# set \$VERSION in all modules
49setver:
50 \$(PERL) -pi -e 's/^(\\s*(our\\s*)?\\\$\$VERSION\\s*=\\s*).*\$\$/\$\${1}\$(VERSION);/' \$(TO_INST_PM)
51
52EOF
53}
54

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines