Updated for Module::Install 0.40 (autrijus still needs to fix something...)
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Helper.pm
index 421a69e..b148293 100644 (file)
@@ -555,6 +555,8 @@ Catalyst based application.
 
 =head1 METHODS
 
+=cut
+
 =head2 default
 
 =cut
@@ -598,21 +600,16 @@ it under the same terms as Perl itself.
 __makefile__
 use inc::Module::Install;
 
-name('[% dir %]');
-abstract('Catalyst Application');
-author('[% author %]');
-version_from('[% path %]');
-license('perl');
-
-include('ExtUtils::AutoInstall');
+name '[% dir %]';
+all_from '[% path %]';
 
-requires( Catalyst => '5.60' );
+requires Catalyst => '5.62';
 
-catalyst_files();
+catalyst_files;
 
-install_script( glob('script/*.pl') );
-auto_install();
-&WriteAll;
+install_script glob('script/*.pl');
+auto_install;
+WriteAll;
 __readme__
 Run script/[% appprefix %]_server.pl to test the application.
 __changes__
@@ -803,8 +800,8 @@ if ( $debug ) {
     $ENV{CATALYST_DEBUG} = 1;
 }
 
-# This is require instead of use so that the engine may be
-# changed above for Restarter support.
+# This is require instead of use so that the above environment
+# variables can be set at runtime.
 require [% name %];
 
 [% name %]->run( $port, $host, {