ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MCP/Makefile.PL
Revision: 1.26
Committed: Tue Nov 10 21:05:58 2026 UTC (35 hours, 46 minutes ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +2 -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-sctl",
23 "bin/mcp-ask-user",
24 "bin/mcp-imap",
25 "bin/mcp-http",
26 ],
27 PREREQ_PM => {
28 AnyEvent => 5.33,
29 AnyEvent::HTTP => 0,
30 common::sense => 3.3,
31 parent => 0,
32 JSON::XS => 3,
33 Digest::SHA => 0,
34 Scalar::Util => 0,
35 MIME::Base64 => 0,
36 Encode => 0,
37 },
38 META_MERGE => {
39 'meta-spec' => { version => 2 },
40 prereqs => {
41 runtime => { recommends => {
42 AnyEvent::WebSocket::Server => 0,
43 AnyEvent::WebSocket::Message => 0,
44 Crypt::AuthEnc::GCM => 0,
45 AnyEvent::Fork::RPC => 2.0,
46 Mail::IMAPTalk => 4.07,
47 Authen::SASL => 2.1800,
48 IO::Socket::SSL => 0,
49 HTML::Parser => 0,
50 Term::ReadKey => 0,
51 HTTP::Tiny => 0,
52 XML::LibXML => 0,
53 }, suggests => {
54 Encode::HanExtra => 0,
55 Encode::JIS2K => 0,
56 Encode::EUCJPASCII => 0,
57 } },
58 test => { recommends => {
59 Protocol::WebSocket::Frame => 0,
60 } },
61 },
62 },
63 TEST_REQUIRES => {
64 Test::More => 0.88,
65 Pod::Checker => 0,
66 },
67 });
68
69 $mm->flush;
70
71 package MY;
72 sub test_via_harness {
73 my ($self, $perl, $tests) = @_;
74
75 # Keep errors visible, but not expected warnings or routine MCP activity.
76 # An explicit PERL_ANYEVENT_LOG still takes precedence.
77 # Use MakeMaker's built scripts, not installed programs or source shebangs.
78 $self->SUPER::test_via_harness (
79 'PATH="`pwd`/$(INST_SCRIPT):$$PATH" '
80 . 'PERL_ANYEVENT_LOG="$${PERL_ANYEVENT_LOG:-filter=error log=error}" ' . $perl,
81 $tests,
82 )
83 }
84
85 package main;
86
87 sub MY::postamble {
88 <<'MAKE'
89 dist: publish
90
91 publish: publish_vim_plugin publish_webbrowser_userscript
92
93 publish_vim_plugin:
94 rsync -p --chmod=F644 vim/plugin/mcp-vim.vim dist.schmorp.de:/var/www/dist.schmorp.de/mcp-vim/1/.
95
96 publish_webbrowser_userscript:
97 rsync -p --chmod=F644 webbrowser/mcp-webbrowser.user.js dist.schmorp.de:/var/www/dist.schmorp.de/mcp-webbrowser/1/.
98
99 MAKE
100 }
101