Add repository resource to all the MI Makefile.PLs
[catagits/Catalyst-Authentication-Store-DBIx-Class.git] / Makefile.PL
index 57df17c..7c22ea0 100644 (file)
@@ -1,16 +1,47 @@
-use strict;
-use warnings;
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
-    NAME                => 'Catalyst::Plugin::Authentication::Store::DBIx::Class',
-    AUTHOR              => 'Jay Kuri <bsdmac@gmail.com>',
-    VERSION_FROM        => 'lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm',
-    ABSTRACT_FROM       => 'lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm',
-    PL_FILES            => {},
-    PREREQ_PM => {
-        'Test::More' => 0,
-    },
-    dist                => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
-    clean               => { FILES => 'Catalyst-Plugin-Authentication-Store-DBIx-Class-*' },
-);
+use inc::Module::Install 0.87;
+
+if( -e 'MANIFEST.SKIP' ) {
+    system( 'pod2text lib/Catalyst/Authentication/Store/DBIx/Class.pm > README' );
+}
+
+## I'd love to use can_use - but I can't seem to test for success. :-/
+eval { require Catalyst::Plugin::Authentication::Store::DBIx::Class or die 'footy'; };
+
+if (!$@) {   #} can_use("Catalyst::Plugin::Authentication::Store::DBIx::Class") ) {
+    print STDERR <<EOM;
+*******************************************
+***  WARNING:  DEPRECATED MODULE FOUND  ***
+*******************************************
+
+You have the Catalyst::Plugin::Authentication::Store::DBIx::Class installed.
+The module you are installing supercedes it and it's presence has been known
+to cause conflicts.   We STRONGLY recommend you remove the old module before
+proceeding.  
+
+You have 5 seconds to abort this install to remove the old module.
+EOM
+    sleep 5;
+    print STDERR "Ok. Proceeding anyway...\n\nYou are entering a dimension not only of sight and sound, but of mind...\n\n";
+}
+
+
+name 'Catalyst-Authentication-Store-DBIx-Class';
+all_from 'lib/Catalyst/Authentication/Store/DBIx/Class.pm';
+
+perl_version '5.8.1';
+
+requires (  'Catalyst::Runtime'                 => 0,
+            'Catalyst::Plugin::Authentication'  => '0.10008',
+            'Catalyst::Model::DBIC::Schema'     => 0,
+            'DBIx::Class'                       => 0,
+                       'Catalyst::Model::DBIC::Schema'         => '0.18',
+         );
+
+
+test_requires 'Test::More';
+
+auto_install;
+resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Authentication-Store-DBIx-Class/';
+
+WriteAll;
+