Skip to content

Instantly share code, notes, and snippets.

@skaji
Last active December 16, 2015 06:19
Show Gist options
  • Save skaji/5390474 to your computer and use it in GitHub Desktop.
Save skaji/5390474 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Module::Build;
my $build = Module::Build->new(
module_name => 'Dummy::Module',
# test_requires from 0.4004 2013/03/29
# test_requires => {
# 'Test::More' => '1.98',
# },
configure_requires => {},
requires => { 'Test::More' => 2.00 },
script_files => [ glob("script/*") ],
);
$build->create_build_script;
use strict;
use warnings;
use ExtUtils::MakeMaker;
sub MY::libscan {
my ($self, $file) = @_;
$file eq 'README.pod' ? 0 : $file;
}
WriteMakefile(
NAME => 'Dummy::Module',
VERSION_FROM => 'lib/Dummy/Module.pm',
# TEST_REQUIRES from 6.63_03 2012/11/01
# perl-5.16.3 => 6.63_02
# TEST_REQUIRES => {
# 'Test::More' => '1.98',
# },
# perl-5.8.6 => EU::MM 6.17
# BUILD or CONFIGURE REQUIRES is not a known parameter
BUILD_REQUIRES => {},
CONFIGURE_REQUIRES => {},
PREREQ_PM => { 'Test::More' => '2.00' },
EXE_FILES => [glob("bin/*"), glob("script/*")],
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment