migrate to git \o/
[catagits/Catalyst-Authentication-Credential-OpenID.git] / Makefile.PL
index e13ee97..5397fb4 100644 (file)
@@ -1,35 +1,65 @@
-use inc::Module::Install;
-
-name            "Catalyst-Authentication-Credential-OpenID";
-all_from        "lib/Catalyst/Authentication/Credential/OpenID.pm";
-author          "Ashley Pond V <ashley@cpan.org>";
-
-requires  "parent"                => "0.2";
-requires  "Class::Accessor::Fast" => undef;
-requires  "HTML::Parser"          => "3";
-requires  "LWP::UserAgent"        => undef;
-requires  "Catalyst"              => "5.7";
-requires  "Catalyst::Devel"       => "1";
-requires  "Crypt::DH"             => "0.05"; # IIRC OpenID stuff forgets to prereq this
-requires  "Net::OpenID::Consumer" => "0.14";
-requires  "Catalyst::Authentication::User::Hash" => undef;
-requires  "Cache::FastMmap"       => "1.28";
-requires  "Catalyst::Plugin::Session::Store::FastMmap" => "0.05";
-requires  "Catalyst::Plugin::Session::State::Cookie" => "0.08";
-requires  "Catalyst::Engine::HTTP" => undef;
+use inc::Module::Install 0.87;
+use strict;
+use warnings;
+use Module::Install::AuthorTests;
+
+name      "Catalyst-Authentication-Credential-OpenID";
+all_from  "lib/Catalyst/Authentication/Credential/OpenID.pm";
+author    "Ashley Pond V <ashley\@cpan.org>";
+
+requires "Class::Accessor::Fast" => undef;
+requires "HTML::Parser"     => "3";
+requires "LWP::UserAgent"    => undef;
+requires "Cache::FastMmap"    => "1.28";
+requires "Catalyst"       => "5.7";
+requires "Catalyst::Devel"    => "1";
+requires "Net::OpenID::Consumer" => "1.03";
+requires "Catalyst::Plugin::Authentication";
+requires "Catalyst::Plugin::Session::Store::FastMmap" => "0.05";
+requires "Catalyst::Plugin::Session::State::Cookie" => "0.08";
 
 recommends "Config::General"     => "2";
 recommends "YAML"                => "0.6";
-recommends "LWPx::ParanoidAgent" => "1.03";
 recommends "Math::BigInt"        => undef;
+recommends "LWPx::ParanoidAgent" => "1.03";
+
+test_requires "Catalyst::Engine::HTTP";
+
+test_requires "Test::More"      => "0.42";
+# test_requires "Test::WWW::Mechanize" => "1.20";
+# test_requires "Net::OpenID::Server" => "1.02";
+# test_requires "Net::DNS"       => undef;
+# test_requires "IO::Socket::INET"   => undef;
+
+author_tests 't/author';
+author_requires(
+   'Test::WWW::Mechanize' => undef,
+   'Catalyst::Runtime' => undef,
+   'Catalyst::Devel' => undef,
+   'Cache::FastMmap' => undef,
+   'Catalyst::Plugin::Session::State::Cookie' => undef,
+   'Catalyst::Plugin::Session::Store::FastMmap' => undef,
+   'Class::Accessor::Fast' => undef,
+   'Crypt::DH' => undef,
+   'ExtUtils::MakeMaker' => undef,
+   'HTML::Parser' => 3,
+   'LWP::UserAgent' => undef,
+   'Net::OpenID::Consumer' => undef,
+   'Net::OpenID::Server' => undef,
+   'Test::WWW::Mechanize' => undef,
+   'Net::DNS' => undef,
+   'IO::Socket::INET' => undef,
+);
+
+
+if ( $Module::Install::AUTHOR )
+{
+    system("pod2text lib/Catalyst/Authentication/Credential/OpenID.pm > README") == 0
+        or die "Couldn't update the README";
+}
 
-build_requires  "Test::More"           => "0.42";
-build_requires  "Net::OpenID::Server"  => undef;
-build_requires  "Test::WWW::Mechanize" => "1.20";
-build_requires  "Net::DNS"             => undef;
-build_requires  "IO::Socket::INET"     => undef;
+resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-Authentication-Credential-OpenID.git';
 
-auto_install;
 WriteAll;
 
 __END__