Fix a couple of tests and add forgotten dependency
[dbsrgits/SQL-Translator.git] / Makefile.PL
1 use inc::Module::Install 0.89;
2 use strict;
3 use warnings;
4
5 my $deps = {
6   requires => {
7     'Class::Base'              => 0,
8     'Class::Data::Inheritable' => 0.02,
9     'Class::MakeMethods'       => 0,
10     'Digest::SHA1'             => 2.00,
11     'Carp::Clan'               => 0,
12     'IO::Dir'                  => 0,
13     'IO::Scalar'               => 2.110,
14     'Parse::RecDescent'        => 1.096000,   # PBP ftw
15     'Pod::Usage'               => 0,
16     'Class::Accessor::Fast'    => 0,
17     'DBI'                      => 0,
18     'File::ShareDir'           => 1.0,
19     'File::Spec'               => 0,
20   },
21   recommends => {
22     'Template'                => 2.10,
23     'GD'                      => 0,
24     'GraphViz'                => 0,
25     'Graph::Directed'         => 0,
26     'IO::File'                => 0,
27     'IO::Scalar'              => 0,
28     'Spreadsheet::ParseExcel' => 0.41,
29     'Text::ParseWords'        => 0,
30     'Text::RecordParser'      => 0.02,
31     'XML::Writer'             => 0.500,
32     'XML::LibXML'             => 1.61,
33   },
34   test_requires => {
35     'File::Basename'          => 0,
36     'Test::More'              => 0.6,
37     'Test::Differences'       => 0,
38     'Test::Exception'         => 0,
39     'YAML'                    => 0.39,
40   },
41 };
42
43 perl_version '5.005';
44
45 name        'SQL-Translator';
46 author      'Ken Youens-Clark <kclark@cpan.org>';
47 abstract    'SQL DDL transformations and more';
48 license     'http://fsf.org/licensing/licenses/gpl.html';
49 repository  'https://sqlfairy.svn.sourceforge.net/svnroot/sqlfairy';
50 bugtracker  'http://rt.cpan.org/NoAuth/Bugs.html?Dist=SQL-Translator';
51
52 resources Ratings => 'http://cpanratings.perl.org/d/SQL-Translator';
53
54 all_from    'lib/SQL/Translator.pm';
55
56 for my $type (qw/requires recommends test_requires/) {
57   no strict qw/refs/;
58   my $f = \&$type;
59   for my $mod (keys %{$deps->{$type} || {} }) {
60     $f->($mod, $deps->{$type}{$mod});
61   }
62 }
63
64 tests_recursive ();
65
66 install_script (qw|
67   script/sqlt-diagram
68   script/sqlt-diff
69   script/sqlt-diff-old
70   script/sqlt-dumper
71   script/sqlt-graph
72   script/sqlt
73 |);
74
75 install_share();
76
77 auto_provides();
78
79 auto_install();
80
81 WriteAll();