convert to Module::Install
Rafael Kitover [Mon, 1 Feb 2010 10:39:04 +0000 (10:39 +0000)]
Changes
MANIFEST.SKIP
Makefile.PL [new file with mode: 0644]
dist.ini [deleted file]

diff --git a/Changes b/Changes
index 89e0234..b584102 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,7 +1,9 @@
 Revision history for Perl extension Catalyst::View::Email.
 
-0.23  2010-01-30
-        -  removed Email::Send::Test from t/lib/* views
+        - converted to Module::Install
+
+0.23    2010-01-30
+        - removed Email::Send::Test from t/lib/* views
 
 0.22    2010-01-28
         - small fixes, version bumpage etc
index e4c11dd..4337b95 100644 (file)
@@ -1,7 +1,5 @@
-MANIFEST.SKIP
-dist.ini
-^\.
+# stolen from Devel::REPL
+^(?!script/|examples/|lib/|inc/|t/|Makefile.PL$|README$|MANIFEST$|Changes$|META.yml$)
 .svn/
 .git/
 .swp$
-.obj
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..b6e4285
--- /dev/null
@@ -0,0 +1,41 @@
+use inc::Module::Install 0.91;
+
+name     'Catalyst-View-Email';
+all_from 'lib/Catalyst/View/Email.pm';
+author   'J. Shirley <jshirley@gmail.com>';
+license  'perl';
+
+test_requires 'Test::More';
+
+requires 'MIME::Base64'          => '3.08';
+requires 'Authen::SASL'          => '2.13';
+requires 'Catalyst'              => '5.7';
+requires 'Moose'                 => '0.93';
+requires 'parent'                => '0.223';
+requires 'Email::Sender::Simple' => '0.100110';
+requires 'Email::MIME'           => '1.859';
+requires 'Email::MIME::Creator'  => '1.455';
+
+feature 'Template Toolkit support',
+    -default                => 0,
+    'Catalyst::View::TT'    => '0.31';
+
+feature 'HTML::Mason support',
+    -default                => 0,
+    'Catalyst::View::Mason' => '0.18';
+
+# Rebuild README for maintainers
+if ($Module::Install::AUTHOR) {
+    system("pod2text lib/Catalyst/View/Email.pm > README");
+}
+
+realclean_files 'README';
+
+resources 'IRC'         => 'irc://irc.perl.org/#catalyst';
+resources 'license'     => 'http://dev.perl.org/licenses/';
+resources 'repository'  => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-Email';
+resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst';
+
+auto_provides;
+auto_install;
+WriteAll;
diff --git a/dist.ini b/dist.ini
deleted file mode 100644 (file)
index 03e5d9a..0000000
--- a/dist.ini
+++ /dev/null
@@ -1,24 +0,0 @@
-name = Catalyst-View-Email
-author = J. Shirley <jshirley@gmail.com>
-version = 0.23
-license = Perl_5
-copyright_holder = J. Shirley
-
-[@Classic]
-
-[MetaResources]
-repository = http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-View-Email
-
-
-
-[Prereq]
-Catalyst::View::TT = 0.31
-Catalyst::View::Mason = 0.18
-MIME::Base64 = 3.08
-Authen::SASL = 2.13
-Catalyst = 5.7
-Moose    = 0.93
-parent   = 0.223
-Email::Sender::Simple = 0.100110
-Email::MIME = 1.859
-Email::MIME::Creator = 1.455