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

# 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 root 1.24 HTML::Parser => 0,
48 root 1.19 Term::ReadKey => 0,
49 root 1.22 HTTP::Tiny => 0,
50     XML::LibXML => 0,
51 root 1.25 }, suggests => {
52     Encode::HanExtra => 0,
53     Encode::JIS2K => 0,
54     Encode::EUCJPASCII => 0,
55 root 1.18 } },
56     test => { recommends => {
57     Protocol::WebSocket::Frame => 0,
58     } },
59     },
60     },
61 root 1.11 TEST_REQUIRES => {
62     Test::More => 0.88,
63     Pod::Checker => 0,
64 root 1.1 },
65     });
66    
67     $mm->flush;
68    
69 root 1.15 package MY;
70     sub test_via_harness {
71     my ($self, $perl, $tests) = @_;
72    
73 root 1.16 # Keep errors visible, but not expected warnings or routine MCP activity.
74 root 1.15 # An explicit PERL_ANYEVENT_LOG still takes precedence.
75 root 1.17 # Use MakeMaker's built scripts, not installed programs or source shebangs.
76 root 1.15 $self->SUPER::test_via_harness (
77 root 1.17 'PATH="`pwd`/$(INST_SCRIPT):$$PATH" '
78     . 'PERL_ANYEVENT_LOG="$${PERL_ANYEVENT_LOG:-filter=error log=error}" ' . $perl,
79 root 1.15 $tests,
80     )
81     }
82    
83     package main;
84    
85 root 1.13 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