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 (39 hours, 49 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

# 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.26 "bin/mcp-sctl",
23 root 1.10 "bin/mcp-ask-user",
24 root 1.19 "bin/mcp-imap",
25 root 1.20 "bin/mcp-http",
26 root 1.5 ],
27 root 1.1 PREREQ_PM => {
28 root 1.11 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 root 1.18 META_MERGE => {
39     'meta-spec' => { version => 2 },
40     prereqs => {
41     runtime => { recommends => {
42     AnyEvent::WebSocket::Server => 0,
43     AnyEvent::WebSocket::Message => 0,
44 root 1.26 Crypt::AuthEnc::GCM => 0,
45 root 1.19 AnyEvent::Fork::RPC => 2.0,
46     Mail::IMAPTalk => 4.07,
47 root 1.22 Authen::SASL => 2.1800,
48 root 1.19 IO::Socket::SSL => 0,
49 root 1.24 HTML::Parser => 0,
50 root 1.19 Term::ReadKey => 0,
51 root 1.22 HTTP::Tiny => 0,
52     XML::LibXML => 0,
53 root 1.25 }, suggests => {
54     Encode::HanExtra => 0,
55     Encode::JIS2K => 0,
56     Encode::EUCJPASCII => 0,
57 root 1.18 } },
58     test => { recommends => {
59     Protocol::WebSocket::Frame => 0,
60     } },
61     },
62     },
63 root 1.11 TEST_REQUIRES => {
64     Test::More => 0.88,
65     Pod::Checker => 0,
66 root 1.1 },
67     });
68    
69     $mm->flush;
70    
71 root 1.15 package MY;
72     sub test_via_harness {
73     my ($self, $perl, $tests) = @_;
74    
75 root 1.16 # Keep errors visible, but not expected warnings or routine MCP activity.
76 root 1.15 # An explicit PERL_ANYEVENT_LOG still takes precedence.
77 root 1.17 # Use MakeMaker's built scripts, not installed programs or source shebangs.
78 root 1.15 $self->SUPER::test_via_harness (
79 root 1.17 'PATH="`pwd`/$(INST_SCRIPT):$$PATH" '
80     . 'PERL_ANYEVENT_LOG="$${PERL_ANYEVENT_LOG:-filter=error log=error}" ' . $perl,
81 root 1.15 $tests,
82     )
83     }
84    
85     package main;
86    
87 root 1.13 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