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>. It's
35 only left here for compability with older applications.
47 my $self = $class->SUPER::new(@_);
49 my $app_name = $self->{properties}{module_name};
54 The use of Build.PL for building and distributing Catalyst
55 applications is deprecated in Catalyst 5.58.
57 We recommend using the new Module::Install-based Makefile
58 system. You can generate a new Makefile.PL for your application
61 catalyst.pl -force -makefile $app_name
74 $self->SUPER::ACTION_install;
75 $self->ACTION_install_extras;
78 =item ACTION_fakeinstall
82 sub ACTION_fakeinstall {
84 $self->SUPER::ACTION_fakeinstall;
86 $self->ACTION_install_extras;
89 =item ACTION_install_extras
93 sub ACTION_install_extras {
95 my $prefix = $self->{properties}{destdir} || undef;
96 my $sitelib = $self->install_destination('lib');
97 my @path = defined $prefix ? ( $prefix, $sitelib ) : ($sitelib);
98 my $path = dir( @path, split( '::', $self->{properties}{module_name} ) );
99 my @files = $self->_find_extras;
100 print "Installing extras to $path\n";
103 ? print "$_ -> $path (FAKE)\n"
104 : $self->copy_if_modified( $_, $path );
112 for my $file (@all) {
113 next if $file =~ /$ignore/;
118 push @files, $File::Find::name;
123 else { push @files, $file }
132 Sebastian Riedel, C<sri@oook.de>
136 This library is free software, you can redistribute it and/or modify it under
137 the same terms as Perl itself.