[Module-build-general] M::B novice seeks advice re updating Build.PL from v0.17 to v0.18_02
Status: Beta
Brought to you by:
kwilliams
|
From: <ajs...@ya...> - 2003-06-09 08:00:06
|
This is my current Build.PL, the idea being to essentially to treat
files with a '.eye' suffix the same as those with a '.pm' suffix.
use Module::Build;
my $class = Module::Build->subclass(
class => 'My::Builder',
code => q{
sub find_pm_files {
my $self = shift;
$self->{properties}{pm_files} ||
$self->rscan_dir('lib', qr{\.(?:eye|pm)$});
}
}
);
my $m = $class->new(
module_name => 'Acme::EyeDrops',
license => 'perl',
requires => { perl => '5.005' },
build_requires => { 'Module::Build' => 0.17 }
);
$m->create_build_script;
This no longer works in M::B v0.18_02, failing on "Perl Build" with:
Can't coerce array into hash at G:\Perl\site\lib/Module/Build/Base.pm
line 894.
Should I update the find_pm_files function above or use the new
pm_files attribute?
Is this correct use of the pm_files attribute?
pm_files => { 'lib/Acme/EyeDrops.pm' => 'lib/Acme/EyeDrops.pm',
'lib/Acme/camel.eye' => 'lib/Acme/camel.eye',
# ... and so on
}
Do I have to explicitly list every file or is there some shorthand
to say "treat .eye files the same as .pm files"?
/-\
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.
|