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