last cleanup before 0.01 release
[gitmo/MooseX-Daemonize.git] / Makefile.PL
index bdfdcb3..883ee82 100644 (file)
@@ -1,18 +1,19 @@
+# Load the Module::Install bundled in ./inc/
 use inc::Module::Install;
-WriteMakefile(
-    NAME          => 'MooseX::Daemonize',
-    AUTHOR        => 'Chris Prather <perigrin@cpan.org>',
-    VERSION_FROM  => 'lib/MooseX/Daemonize.pm',
-    ABSTRACT_FROM => 'lib/MooseX/Daemonize.pm',
-    PL_FILES      => {},
-    PREREQ_PM     => {
-        'Test::More'   => 0,
-        'Proc::Daemon' => 0,
-        'Carp'         => 0,
-        'File::Flock'  => 0,
-        'File::Slurp'  => 0,
-        'Moose'        => 0.20,
-    },
-    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
-    clean => { FILES    => 'MooseX-Daemonize-*' },
-);
+
+# Define metadata
+name 'MooseX-Daemonize';
+all_from 'lib/MooseX/Daemonize.pm';
+
+# Specific dependencies
+build_requires 'Test::More' => 0;
+requires 'Proc::Daemon'     => 0;
+requires 'Carp'             => 0;
+requires 'File::Flock'      => 0;
+requires 'File::Slurp'      => 0;
+requires 'Moose'            => 0.20;
+
+no_index 'directory' => 'examples';
+
+auto_install;
+WriteAll;