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
|
use strict;
use warnings;
use inc::Module::Install;
use ExtUtils::Depends;
name 'B-Hooks-Parser';
all_from 'lib/B/Hooks/Parser.pm';
requires 'parent';
requires 'B::Hooks::OP::Check';
test_requires 'Test::Exception';
test_requires 'B::Hooks::EndOfScope';
build_requires 'B::Hooks::OP::Check';
configure_requires 'ExtUtils::Depends';
configure_requires 'B::Hooks::OP::Check';
my $pkg = ExtUtils::Depends->new('B::Hooks::Parser', 'B::Hooks::OP::Check');
$pkg->install('hook_parser.h');
$pkg->add_xs('Parser.xs');
$pkg->add_pm('lib/B/Hooks/Parser.pm' => '$(INST_LIB)/B/Hooks/Parser.pm');
mkdir 'build';
$pkg->save_config('build/IFiles.pm');
makemaker_args(
$pkg->get_makefile_vars,
dist => { preop => 'pod2text lib/B/Hooks/Parser.pm > README' },
);
extra_tests;
WriteAll;
|