[Catalyst-commits] r6759 - trunk/Catalyst-View-Mason

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Tue Aug 28 16:59:01 GMT 2007


Author: rafl
Date: 2007-08-28 16:59:00 +0100 (Tue, 28 Aug 2007)
New Revision: 6759

Removed:
   trunk/Catalyst-View-Mason/Build.PL
Modified:
   trunk/Catalyst-View-Mason/Makefile.PL
Log:
Use Module::Install instead of Module::Build.


Deleted: trunk/Catalyst-View-Mason/Build.PL
===================================================================
--- trunk/Catalyst-View-Mason/Build.PL	2007-08-28 15:58:56 UTC (rev 6758)
+++ trunk/Catalyst-View-Mason/Build.PL	2007-08-28 15:59:00 UTC (rev 6759)
@@ -1,12 +0,0 @@
-use strict;
-use Module::Build;
-
-my $build = Module::Build->new(
-    create_makefile_pl => 'passthrough',
-    license            => 'perl',
-    module_name        => 'Catalyst::View::Mason',
-    requires           => { Catalyst => 5, 'HTML::Mason' => 0 },
-    create_makefile_pl => 'passthrough',
-    test_files         => [ glob('t/*.t') ]
-);
-$build->create_build_script;

Modified: trunk/Catalyst-View-Mason/Makefile.PL
===================================================================
--- trunk/Catalyst-View-Mason/Makefile.PL	2007-08-28 15:58:56 UTC (rev 6758)
+++ trunk/Catalyst-View-Mason/Makefile.PL	2007-08-28 15:59:00 UTC (rev 6759)
@@ -1,31 +1,13 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.03
-    
-    unless (eval "use Module::Build::Compat 0.02; 1" ) {
-      print "This module requires Module::Build to install itself.\n";
-      
-      require ExtUtils::MakeMaker;
-      my $yn = ExtUtils::MakeMaker::prompt
-	('  Install Module::Build now from CPAN?', 'y');
-      
-      unless ($yn =~ /^y/i) {
-	die " *** Cannot install without Module::Build.  Exiting ...\n";
-      }
-      
-      require Cwd;
-      require File::Spec;
-      require CPAN;
-      
-      # Save this 'cause CPAN will chdir all over the place.
-      my $cwd = Cwd::cwd();
-      my $makefile = File::Spec->rel2abs($0);
-      
-      CPAN::Shell->install('Module::Build::Compat')
-	or die " *** Cannot install without Module::Build.  Exiting ...\n";
-      
-      chdir $cwd or die "Cannot chdir() back to $cwd: $!";
-      exec $^X, $makefile, @ARGV;  # Redo now that we have Module::Build
-    }
-    use lib '_build/lib';
-    Module::Build::Compat->run_build_pl(args => \@ARGV);
-    require Module::Build;
-    Module::Build::Compat->write_makefile(build_class => 'Module::Build');
+use strict;
+use warnings;
+use inc::Module::Install;
+
+name 'Catalyst-View-Mason';
+all_from 'lib/Catalyst/View/Mason.pm';
+
+requires 'Catalyst' => '5.50';
+requires 'HTML::Mason' => 0;
+requires 'Scalar::Util' => 0;
+
+auto_install;
+WriteAll;




More information about the Catalyst-commits mailing list