ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MCP/Makefile.PL
Revision: 1.23
Committed: Thu Nov 5 01:04:03 2026 UTC (22 hours, 26 minutes ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-0_81, rel-0_8, HEAD
Changes since 1.22: +4 -2 lines
Log Message:
0.8

File Contents

# User Rev Content
1 root 1.1 use ExtUtils::MakeMaker;
2    
3     my $mm = MM->new({
4     dist => {
5 root 1.23 PREOP => 'pod2text lib/AnyEvent/MCP/Intro.pod | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX $(DISTVNAME) ;',
6     COMPRESS => 'pigz -11',
7 root 1.1 SUFFIX => '.gz',
8     },
9 root 1.14 NAME => "AnyEvent::MCP",
10 root 1.21 LICENSE => "perl_5",
11 root 1.23 ABSTRACT_FROM => "lib/AnyEvent/MCP.pm",
12     AUTHOR => "Marc Lehmann",
13 root 1.1 VERSION_FROM => "lib/AnyEvent/MCP.pm",
14 root 1.5 EXE_FILES => [
15     "bin/anyevent-mcp",
16     "bin/anyevent-mcp-askpermission",
17 root 1.11 "bin/anyevent-mcp-form-elicitation",
18 root 1.5 "bin/mcp-multibroker",
19     "bin/mcp-fs",
20     "bin/mcp-vim",
21 root 1.12 "bin/mcp-webbrowser",
22 root 1.10 "bin/mcp-ask-user",
23 root 1.19 "bin/mcp-imap",
24 root 1.20 "bin/mcp-http",
25 root 1.5 ],
26 root 1.1 PREREQ_PM => {
27 root 1.11 AnyEvent => 5.33,
28     AnyEvent::HTTP => 0,
29     common::sense => 3.3,
30     parent => 0,
31     JSON::XS => 3,
32     Digest::SHA => 0,
33     Scalar::Util => 0,
34     MIME::Base64 => 0,
35     Encode => 0,
36     },
37 root 1.18 META_MERGE => {
38     'meta-spec' => { version => 2 },
39     prereqs => {
40     runtime => { recommends => {
41     AnyEvent::WebSocket::Server => 0,
42     AnyEvent::WebSocket::Message => 0,
43 root 1.19 AnyEvent::Fork::RPC => 2.0,
44     Mail::IMAPTalk => 4.07,
45 root 1.22 Authen::SASL => 2.1800,
46 root 1.19 IO::Socket::SSL => 0,
47     Term::ReadKey => 0,
48 root 1.22 HTTP::Tiny => 0,
49     XML::LibXML => 0,
50 root 1.18 } },
51     test => { recommends => {
52     Protocol::WebSocket::Frame => 0,
53     } },
54     },
55     },
56 root 1.11 TEST_REQUIRES => {
57     Test::More => 0.88,
58     Pod::Checker => 0,
59 root 1.1 },
60     });
61    
62     $mm->flush;
63    
64 root 1.15 package MY;
65     sub test_via_harness {
66     my ($self, $perl, $tests) = @_;
67    
68 root 1.16 # Keep errors visible, but not expected warnings or routine MCP activity.
69 root 1.15 # An explicit PERL_ANYEVENT_LOG still takes precedence.
70 root 1.17 # Use MakeMaker's built scripts, not installed programs or source shebangs.
71 root 1.15 $self->SUPER::test_via_harness (
72 root 1.17 'PATH="`pwd`/$(INST_SCRIPT):$$PATH" '
73     . 'PERL_ANYEVENT_LOG="$${PERL_ANYEVENT_LOG:-filter=error log=error}" ' . $perl,
74 root 1.15 $tests,
75     )
76     }
77    
78     package main;
79    
80 root 1.13 sub MY::postamble {
81     <<'MAKE'
82     dist: publish
83    
84     publish: publish_vim_plugin publish_webbrowser_userscript
85    
86     publish_vim_plugin:
87     rsync -p --chmod=F644 vim/plugin/mcp-vim.vim dist.schmorp.de:/var/www/dist.schmorp.de/mcp-vim/1/.
88    
89     publish_webbrowser_userscript:
90     rsync -p --chmod=F644 webbrowser/mcp-webbrowser.user.js dist.schmorp.de:/var/www/dist.schmorp.de/mcp-webbrowser/1/.
91    
92     MAKE
93     }
94