1 package Catalyst::Build;
9 eval "require Module::Build";
10 die "Please install Module::Build\n" if $@;
11 push @ISA, 'Module::Build';
14 qw/Build Build.PL Changes MANIFEST META.yml Makefile.PL Makefile README
15 _build blib lib script t/;
18 our $ignore = '^(' . join( '|', @ignore ) . ')$';
22 Catalyst::Build - Module::Build extension for Catalyst
30 L<Module::Build> extension for Catalyst.
32 =head1 DEPRECATION NOTICE
34 This module is deprecated in favor of L<Module::Install::Catalyst>.
46 my $self = $class->SUPER::new(@_);
48 my $app_name = $self->{properties}{module_name};
53 The use of Build.PL for building and distributing Catalyst
54 applications is deprecated in Catalyst 5.58.
56 We recommend using the new Module::Install-based Makefile
57 system. You can generate a new Makefile.PL for your application
60 catalyst.pl -force -makefile $app_name
69 $self->SUPER::ACTION_install;
70 $self->ACTION_install_extras;
73 =item ACTION_fakeinstall
77 sub ACTION_fakeinstall {
79 $self->SUPER::ACTION_fakeinstall;
81 $self->ACTION_install_extras;
84 =item ACTION_install_extras
88 sub ACTION_install_extras {
90 my $prefix = $self->{properties}{destdir} || undef;
91 my $sitelib = $self->install_destination('lib');
92 my @path = defined $prefix ? ( $prefix, $sitelib ) : ($sitelib);
93 my $path = dir( @path, split( '::', $self->{properties}{module_name} ) );
94 my @files = $self->_find_extras;
95 print "Installing extras to $path\n";
98 ? print "$_ -> $path (FAKE)\n"
99 : $self->copy_if_modified( $_, $path );
107 for my $file (@all) {
108 next if $file =~ /$ignore/;
113 push @files, $File::Find::name;
118 else { push @files, $file }
127 Sebastian Riedel, C<sri@oook.de>
131 This library is free software, you can redistribute it and/or modify it under
132 the same terms as Perl itself.