1 #line 1 "inc/Module/Install/Build.pm - /Library/Perl/5.8.6/Module/Install/Build.pm"
2 package Module::Install::Build;
4 use Module::Install::Base;
5 @ISA = qw(Module::Install::Base);
15 die "Build->write() takes no arguments\n" if @_;
20 $args{dist_name} = $self->name || $self->determine_NAME($self->{args});
21 $args{license} = $self->license;
22 $args{test_files} = $self->tests;
23 $args{dist_version} = $self->version || $self->determine_VERSION($self->{args});
24 $args{dist_abstract} = $self->abstract;
25 $args{dist_author} = $self->author;
26 $args{sign} = $self->sign;
27 $args{no_index} = $self->no_index;
29 foreach my $key (qw(build_requires requires recommends conflicts)) {
30 my $val = eval "\$self->$key" or next;
31 $args{$key} = { map @$_, @$val };
34 %args = map {($_, $args{$_})} grep {defined($args{$_})} keys %args;
36 require Module::Build;
37 $build = Module::Build->new(%args);
38 $build->add_to_cleanup(split /\s+/, $self->clean_files);
39 $build->create_build_script;
44 die "XXX - Can't get this working yet";
46 warn "Removing inc\n";
52 die "XXX - Can't get this working yet";
55 # <ingy> DrMath: is there an OO way to add actions to Module::Build??
57 # <DrMath> ingy: package MyBuilder; use w(Module::Build; @ISA = qw(w(Module::Build); sub ACTION_ingy
59 # <DrMath> ingy: then my $build = new MyBuilder( ...parameters... );
60 # $build->write_build_script;