ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/AnyEvent-MCP/Makefile.PL
Revision: 1.18
Committed: Sat Oct 24 09:22:21 2026 UTC (6 days ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.17: +12 -3 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.5 ],
21 root 1.1 PREREQ_PM => {
22 root 1.11 AnyEvent => 5.33,
23     AnyEvent::HTTP => 0,
24     common::sense => 3.3,
25     parent => 0,
26     JSON::XS => 3,
27     Digest::SHA => 0,
28     Scalar::Util => 0,
29     MIME::Base64 => 0,
30     Encode => 0,
31     },
32 root 1.18 META_MERGE => {
33     'meta-spec' => { version => 2 },
34     prereqs => {
35     runtime => { recommends => {
36     AnyEvent::WebSocket::Server => 0,
37     AnyEvent::WebSocket::Message => 0,
38     } },
39     test => { recommends => {
40     Protocol::WebSocket::Frame => 0,
41     } },
42     },
43     },
44 root 1.11 TEST_REQUIRES => {
45     Test::More => 0.88,
46     Pod::Checker => 0,
47 root 1.1 },
48     });
49    
50     $mm->flush;
51    
52 root 1.15 package MY;
53     sub test_via_harness {
54     my ($self, $perl, $tests) = @_;
55    
56 root 1.16 # Keep errors visible, but not expected warnings or routine MCP activity.
57 root 1.15 # An explicit PERL_ANYEVENT_LOG still takes precedence.
58 root 1.17 # Use MakeMaker's built scripts, not installed programs or source shebangs.
59 root 1.15 $self->SUPER::test_via_harness (
60 root 1.17 'PATH="`pwd`/$(INST_SCRIPT):$$PATH" '
61     . 'PERL_ANYEVENT_LOG="$${PERL_ANYEVENT_LOG:-filter=error log=error}" ' . $perl,
62 root 1.15 $tests,
63     )
64     }
65    
66     package main;
67    
68 root 1.13 sub MY::postamble {
69     <<'MAKE'
70     dist: publish
71    
72     publish: publish_vim_plugin publish_webbrowser_userscript
73    
74     publish_vim_plugin:
75     rsync -p --chmod=F644 vim/plugin/mcp-vim.vim dist.schmorp.de:/var/www/dist.schmorp.de/mcp-vim/1/.
76    
77     publish_webbrowser_userscript:
78     rsync -p --chmod=F644 webbrowser/mcp-webbrowser.user.js dist.schmorp.de:/var/www/dist.schmorp.de/mcp-webbrowser/1/.
79    
80     MAKE
81     }
82