fixed Changes
[catagits/Catalyst-Plugin-Static-Simple.git] / Makefile.PL
index 51d31fd..57096f1 100644 (file)
@@ -1,31 +1,39 @@
-# 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: $!";
+use strict;
+use warnings;
+use inc::Module::Install 0.91;
+use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
+
+name 'Catalyst-Plugin-Static-Simple';
+all_from 'lib/Catalyst/Plugin/Static/Simple.pm';
+
+requires 'Catalyst::Runtime' => '5.80008';
+requires 'MIME::Types' => '1.25';
+requires 'Test::More';
+requires 'Moose';
+requires 'MooseX::Types';
+requires 'namespace::autoclean';
+
+test_requires 'Test::More';
+
+author_requires 'Test::NoTabs';
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::Pod::Coverage' => '1.04';
+
+author_tests 't/author';
+
+if( can_use 'Catalyst::Plugin::SubRequest' ) {
+    unless( can_use 'Catalyst::Plugin::SubRequest' => '0.08' ) {
+        print "** WARNING **\n"
+            . "You appear to have a version of Catalyst::Plugin::SubRequest "
+            . "older than 0.08.\n"
+            . "You must upgrade to SubRequest 0.08 or later if you use it "
+            . "in any applications with Static::Simple.\n";
+        requires 'Catalyst::Plugin::SubRequest' => '0.08';
     }
-    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');
+}
+
+auto_install;
+resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Plugin-Static-Simple/trunk/';
+
+WriteAll;