use bare filehandles rather than IO::File (patch from leont)'
[p5sagit/Module-Metadata.git] / Makefile.PL
1 use strict;
2 use warnings FATAL => 'all';
3 use ExtUtils::MakeMaker;
4 use 5.006;
5
6 # TODO: convert to dzil and use [OnlyCorePrereqs], and possibly [DualLife]
7
8 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
9
10 WriteMakefile(
11   NAME => 'Module::Metadata',
12   VERSION_FROM => 'lib/Module/Metadata.pm',
13   ABSTRACT_FROM => 'lib/Module/Metadata.pm',
14   LICENSE => 'perl',
15   MIN_PERL_VERSION => '5.006',
16   PREREQ_PM => {
17     'Carp'        => 0,
18     'File::Find'  => 0,
19     'File::Spec'  => 0,
20     'strict'      => 0,
21     'warnings'    => 0,
22     'vars'        => 0,
23     'version'     => 0.87,
24     'warnings'    => 0,
25     $] < 5.008
26       ? ( 'IO::Scalar' => 0 )
27       : ()
28     ,
29   },
30   -f 'META.yml' ? () : (
31   META_MERGE => {
32     'meta-spec' => { version => 2 },
33     dynamic_config => 0,
34     resources => {
35       # r/w: p5sagit@git.shadowcat.co.uk:Module-Metadata.git
36       repository => {
37         url => 'git://git.shadowcat.co.uk/p5sagit/Module-Metadata.git',
38         web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Module-Metadata.git',
39         type => 'git',
40       },
41       bugtracker => {
42           mailto => 'bug-Module-Metadata@rt.cpan.org',
43           web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Module-Metadata',
44       },
45     },
46     prereqs => {
47       test => {
48         requires => {
49           'Test::More' => 0,
50           'Carp' => 0,
51           'Config' => 0,
52           'Cwd' => 0,
53           'Data::Dumper' => 0,
54           'Exporter' => 0,
55           'File::Basename' => 0,
56           'File::Find' => 0,
57           'File::Path' => 0,
58           'File::Spec' => 0,
59           'File::Temp' => 0,
60           'IO::File' => 0,
61         },
62       },
63     },
64   } ),
65 );