ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MCP/Makefile.PL
Revision: 1.19
Committed: Tue Oct 27 19:03:33 2026 UTC (4 weeks, 2 days ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.18: +5 -0 lines
Log Message:
*** empty log message ***

File Contents

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