1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
package inc::MyModuleBuild;
use strict;
use warnings;
use Moose;
extends 'Dist::Zilla::Plugin::ModuleBuild';
around module_build_args => sub {
my $orig = shift;
my $self = shift;
my $args = $self->$orig(@_);
$args->{auto_features} = {
Inotify => {
description => 'Inotify support',
requires => { 'Linux::Inotify2' => '1.2' },
},
KQueue => {
description => 'KQueue support',
requires => { 'IO::KQueue' => '0' },
}
};
return $args;
};
__PACKAGE__->meta()->make_immutable();
1;
|