| 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 |
|
|
AnyEvent::WebSocket::Server => 0, |
| 25 |
|
|
AnyEvent::WebSocket::Message => 0, |
| 26 |
|
|
common::sense => 3.3, |
| 27 |
|
|
parent => 0, |
| 28 |
|
|
JSON::XS => 3, |
| 29 |
|
|
Digest::SHA => 0, |
| 30 |
|
|
Scalar::Util => 0, |
| 31 |
|
|
MIME::Base64 => 0, |
| 32 |
|
|
Encode => 0, |
| 33 |
|
|
}, |
| 34 |
|
|
TEST_REQUIRES => { |
| 35 |
|
|
Test::More => 0.88, |
| 36 |
|
|
Pod::Checker => 0, |
| 37 |
|
|
Protocol::WebSocket::Frame => 0, |
| 38 |
root |
1.1 |
}, |
| 39 |
|
|
}); |
| 40 |
|
|
|
| 41 |
|
|
$mm->flush; |
| 42 |
|
|
|
| 43 |
root |
1.15 |
package MY; |
| 44 |
|
|
sub test_via_harness { |
| 45 |
|
|
my ($self, $perl, $tests) = @_; |
| 46 |
|
|
|
| 47 |
|
|
# Keep warnings and errors visible, but not routine MCP activity. |
| 48 |
|
|
# An explicit PERL_ANYEVENT_LOG still takes precedence. |
| 49 |
|
|
$self->SUPER::test_via_harness ( |
| 50 |
|
|
'PERL_ANYEVENT_LOG="$${PERL_ANYEVENT_LOG:-filter=warn log=warn}" ' . $perl, |
| 51 |
|
|
$tests, |
| 52 |
|
|
) |
| 53 |
|
|
} |
| 54 |
|
|
|
| 55 |
|
|
package main; |
| 56 |
|
|
|
| 57 |
root |
1.13 |
sub MY::postamble { |
| 58 |
|
|
<<'MAKE' |
| 59 |
|
|
dist: publish |
| 60 |
|
|
|
| 61 |
|
|
publish: publish_vim_plugin publish_webbrowser_userscript |
| 62 |
|
|
|
| 63 |
|
|
publish_vim_plugin: |
| 64 |
|
|
rsync -p --chmod=F644 vim/plugin/mcp-vim.vim dist.schmorp.de:/var/www/dist.schmorp.de/mcp-vim/1/. |
| 65 |
|
|
|
| 66 |
|
|
publish_webbrowser_userscript: |
| 67 |
|
|
rsync -p --chmod=F644 webbrowser/mcp-webbrowser.user.js dist.schmorp.de:/var/www/dist.schmorp.de/mcp-webbrowser/1/. |
| 68 |
|
|
|
| 69 |
|
|
MAKE |
| 70 |
|
|
} |
| 71 |
|
|
|