ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/AnyEvent-MCP/Makefile.PL
Revision: 1.25
Committed: Sat Nov 7 20:37:02 2026 UTC (2 days, 16 hours ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +4 -0 lines
Log Message:
*** empty log message ***

File Contents

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