use strict; use warnings; use Module::Build; my $class = Module::Build->subclass( class => 'My::Builder', code => q{ sub ACTION_code { use File::Spec::Functions; my $self = shift; $self->SUPER::ACTION_code(@_); # Copy the test scripts and then set the shebang line and make # sure that they're executable. my $to_dir = $self->localize_file_path("t/scripts"); my $from = $self->localize_file_path("t/bin/mysql"); my $to = $self->localize_file_path("$to_dir/mysql"); $self->copy_if_modified( from => $from, to_dir => $to_dir, flatten => 1, ); $self->fix_shebang_line($to); $self->make_executable($to); $self->add_to_cleanup($to_dir); } }, ); $class->new( module_name => 'TAP::Parser::SourceHandler::MyTAP', license => 'perl', configure_requires => { 'Module::Build' => '0.30', }, build_requires => { 'Module::Build' => '0.30', 'Test::More' => '0.88', }, requires => { 'TAP::Parser::SourceHandler' => 0, 'perl' => 5.006000, }, recommends => { 'Test::Pod' => '1.41', 'Test::Pod::Coverage' => '1.06', }, meta_merge => { resources => { homepage => 'http://search.cpan.org/dist/Tap-Parser-Sourcehandler-MyTAP/', bugtracker => 'http://github.com/theory/tap-parser-sourcehandler-mytap/issues/', repository => 'http://github.com/theory/tap-parser-sourcehandler-mytap/tree/', } }, )->create_build_script;