[Catalyst-commits] r6339 - in trunk/Catalyst-Plugin-Browser: . lib/Catalyst/Plugin

marcus at dev.catalyst.perl.org marcus at dev.catalyst.perl.org
Sun Apr 29 01:36:01 GMT 2007


Author: marcus
Date: 2007-04-29 01:35:37 +0100 (Sun, 29 Apr 2007)
New Revision: 6339

Removed:
   trunk/Catalyst-Plugin-Browser/Build.PL
Modified:
   trunk/Catalyst-Plugin-Browser/Changes
   trunk/Catalyst-Plugin-Browser/MANIFEST
   trunk/Catalyst-Plugin-Browser/Makefile.PL
   trunk/Catalyst-Plugin-Browser/lib/Catalyst/Plugin/Browser.pm
Log:
Switch Browser Plugin to Module-Install

Deleted: trunk/Catalyst-Plugin-Browser/Build.PL
===================================================================
--- trunk/Catalyst-Plugin-Browser/Build.PL	2007-04-29 00:13:46 UTC (rev 6338)
+++ trunk/Catalyst-Plugin-Browser/Build.PL	2007-04-29 00:35:37 UTC (rev 6339)
@@ -1,17 +0,0 @@
-use strict;
-use Module::Build;
-
-my $build = Module::Build->new(
-    create_makefile_pl => 'passthrough',
-    license            => 'perl',
-    module_name        => 'Catalyst::Plugin::Browser',
-    requires           => {
-         'HTTP::BrowserDetect' => 0 
-    },
-    create_makefile_pl => 'passthrough',
-    test_files   => [
-        glob('t/*.t') 
-    ],
-    create_readme => 1,
-);
-$build->create_build_script;

Modified: trunk/Catalyst-Plugin-Browser/Changes
===================================================================
--- trunk/Catalyst-Plugin-Browser/Changes	2007-04-29 00:13:46 UTC (rev 6338)
+++ trunk/Catalyst-Plugin-Browser/Changes	2007-04-29 00:35:37 UTC (rev 6339)
@@ -1,6 +1,9 @@
 Revision history for Perl extension Catalyst::Plugin::Browser
 
-0.03  Xxx Xxx 00 00:00:00 2005
+0.04  2007-04-29 01:52:00
+		- Switch to Module::Install
+
+0.03  2005-05-03 13:43:00
         - HTTP::BrowserDetect object is now deferred until first method call.
 
 0.02  Sat Apr 30 23:07:00 2005

Modified: trunk/Catalyst-Plugin-Browser/MANIFEST
===================================================================
--- trunk/Catalyst-Plugin-Browser/MANIFEST	2007-04-29 00:13:46 UTC (rev 6338)
+++ trunk/Catalyst-Plugin-Browser/MANIFEST	2007-04-29 00:35:37 UTC (rev 6339)
@@ -1,4 +1,3 @@
-Build.PL
 Changes
 lib/Catalyst/Plugin/Browser.pm
 Makefile.PL

Modified: trunk/Catalyst-Plugin-Browser/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-Browser/Makefile.PL	2007-04-29 00:13:46 UTC (rev 6338)
+++ trunk/Catalyst-Plugin-Browser/Makefile.PL	2007-04-29 00:35:37 UTC (rev 6339)
@@ -1,31 +1,12 @@
-# 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: $!";
-    }
-    eval "use Module::Build::Compat 0.02; 1" or die $@;
-    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 0.65;
+
+name 'Catalyst-Plugin-Browser';
+all_from 'lib/Catalyst/Plugin/Browser.pm';
+
+requires 'Catalyst::Runtime' => '5.7006';
+requires 'HTTP::BrowserDetect';
+
+auto_install;
+WriteAll;

Modified: trunk/Catalyst-Plugin-Browser/lib/Catalyst/Plugin/Browser.pm
===================================================================
--- trunk/Catalyst-Plugin-Browser/lib/Catalyst/Plugin/Browser.pm	2007-04-29 00:13:46 UTC (rev 6338)
+++ trunk/Catalyst-Plugin-Browser/lib/Catalyst/Plugin/Browser.pm	2007-04-29 00:35:37 UTC (rev 6339)
@@ -4,7 +4,7 @@
 use Catalyst::Request;
 use HTTP::BrowserDetect;
 
-our $VERSION = '0.03';
+our $VERSION = '0.04';
 
 {
     package Catalyst::Request;




More information about the Catalyst-commits mailing list