- Fixes for rt.cpan #17322 and #17331
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Build.pm
index 4db77e5..ab6ba53 100644 (file)
@@ -2,10 +2,14 @@ package Catalyst::Build;
 
 use strict;
 use Module::Build;
-use base 'Module::Build';
 use Path::Class;
 use File::Find 'find';
 
+our @ISA;
+eval "require Module::Build";
+die "Please install Module::Build\n" if $@;
+push @ISA, 'Module::Build';
+
 our @ignore =
   qw/Build Build.PL Changes MANIFEST META.yml Makefile.PL Makefile README
   _build blib lib script t/;
@@ -33,13 +37,13 @@ This module is deprecated in favor of L<Module::Install::Catalyst>.
 
 =over 4
 
-=item ACTION_install
+=item new
 
 =cut
 
 sub new {
     my $class = shift;
-    my $self = $class->SUPER::new(@_);
+    my $self  = $class->SUPER::new(@_);
 
     my $app_name = $self->{properties}{module_name};
     warn <<"EOF";
@@ -60,6 +64,10 @@ EOF
     return $self;
 }
 
+=item ACTION_install
+
+=cut
+
 sub ACTION_install {
     my $self = shift;
     $self->SUPER::ACTION_install;