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.
38 $self->SUPER::ACTION_install;
39 $self->ACTION_install_extras;
42 =item ACTION_fakeinstall
46 sub ACTION_fakeinstall {
48 $self->SUPER::ACTION_fakeinstall;
50 $self->ACTION_install_extras;
53 =item ACTION_install_extras
57 sub ACTION_install_extras {
59 my $prefix = $self->{properties}{destdir} || undef;
60 my $sitelib = $self->install_destination('lib');
61 my @path = defined $prefix ? ( $prefix, $sitelib ) : ($sitelib);
62 my $path = dir( @path, split( '::', $self->{properties}{module_name} ) );
63 my @files = $self->_find_extras;
64 print "Installing extras to $path\n";
67 ? print "$_ -> $path (FAKE)\n"
68 : $self->copy_if_modified( $_, $path );
77 next if $file =~ /$ignore/;
82 push @files, $File::Find::name;
87 else { push @files, $file }
96 Sebastian Riedel, C<sri@oook.de>
100 This library is free software, you can redistribute it and/or modify it under
101 the same terms as Perl itself.