1 package Catalyst::Build;
5 use base 'Module::Build';
10 qw/Build Build.PL Changes MANIFEST META.yml Makefile.PL Makefile README
11 _build blib lib script t/;
14 our $ignore = '^(' . join( '|', @ignore ) . ')$';
18 Catalyst::Build - Module::Build extension for Catalyst
26 L<Module::Build> extension for Catalyst.
36 $self->SUPER::ACTION_install;
37 $self->ACTION_install_extras;
40 =head2 ACTION_fakeinstall
44 sub ACTION_fakeinstall {
46 $self->SUPER::ACTION_fakeinstall;
48 $self->ACTION_install_extras;
51 =head2 ACTION_install_extras
55 sub ACTION_install_extras {
57 my $prefix = $self->{properties}{destdir} || undef;
58 my $sitelib = $self->install_destination('lib');
59 my @path = defined $prefix ? ( $prefix, $sitelib ) : ($sitelib);
60 my $path = dir( @path, split( '::', $self->{properties}{module_name} ) );
61 my @files = $self->_find_extras;
62 print "Installing extras to $path\n";
65 ? print "$_ -> $path (FAKE)\n"
66 : $self->copy_if_modified( $_, $path );
75 next if $file =~ /$ignore/;
80 push @files, $File::Find::name;
85 else { push @files, $file }
92 Sebastian Riedel, C<sri@oook.de>
96 This library is free software, you can redistribute it and/or modify it under
97 the same terms as Perl itself.