X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FBuild.pm;h=944d9e8e1d46b4f4d07c6a6bbddb25b6dd32fc4d;hb=141459fa3fc9852fd6f05138caddb410bbe2949c;hp=7ecdba7852e589391b6764cda2717c7a9e7ad4ac;hpb=b5ecfcf07b8ffe7e9984f0279c8781ce51c6ac6a;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Build.pm b/lib/Catalyst/Build.pm index 7ecdba7..944d9e8 100644 --- a/lib/Catalyst/Build.pm +++ b/lib/Catalyst/Build.pm @@ -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/; @@ -25,9 +29,43 @@ See L L extension for Catalyst. +=head1 DEPRECATION NOTICE + +This module is deprecated in favor of L. It's +only left here for compability with older applications. + =head1 METHODS -=head2 ACTION_install +=over 4 + +=item new + +=cut + +sub new { + my $class = shift; + my $self = $class->SUPER::new(@_); + + my $app_name = $self->{properties}{module_name}; + warn <<"EOF"; + + Note: + + The use of Build.PL for building and distributing Catalyst + applications is deprecated in Catalyst 5.58. + + We recommend using the new Module::Install-based Makefile + system. You can generate a new Makefile.PL for your application + by running: + + catalyst.pl -force -makefile $app_name + +EOF + + return $self; +} + +=item ACTION_install =cut @@ -37,7 +75,7 @@ sub ACTION_install { $self->ACTION_install_extras; } -=head2 ACTION_fakeinstall +=item ACTION_fakeinstall =cut @@ -48,7 +86,7 @@ sub ACTION_fakeinstall { $self->ACTION_install_extras; } -=head2 ACTION_install_extras +=item ACTION_install_extras =cut @@ -87,6 +125,8 @@ sub _find_extras { return @files; } +=back + =head1 AUTHOR Sebastian Riedel, C