5 my $builder = Module::Build->new(
6 module_name => 'SQL::Translator',
7 dist_author => 'Ken Youens-Clark <kclark@cpan.org>',
8 dist_version_from => 'lib/SQL/Translator.pm',
9 dist_abstract => 'SQL DDL transformations and more',
13 recursive_test_files => 1,
17 recursive_test_files => 1,
18 create_makefile_pl => 'passthrough',
22 'Class::Data::Inheritable' => 0.02,
23 'Class::MakeMethods' => 0,
24 'Digest::SHA1' => 2.00,
26 'Parse::RecDescent' => 1.95,
28 'Class::Accessor::Fast' => 0,
35 'Graph::Directed' => 0,
38 'Spreadsheet::ParseExcel' => '>= 0.2602, != 0.33',
39 'Text::ParseWords' => 0,
40 'Text::RecordParser' => 0.02,
41 'XML::Writer' => 0.500,
45 'File::Basename' => 0,
48 'Test::Differences' => 0,
49 'Test::Exception' => 0,
50 'Test::Differences' => 0,
54 add_to_cleanup => [ 'SQL-Translator-*' ],
65 # Where to store additional files such as templates.
66 # TODO: Should be OS dependant. See Module::Build::os_type()
67 install_dir => { type=>'=s', default=>'/usr/local/share/sqlfairy' },
71 # Custom resources (must begin with an uppercase letter)
72 Ratings => 'http://cpanratings.perl.org/d/SQL-Translator',
74 # Official keys (homepage, license, bugtracker)
75 repository => 'https://sqlfairy.svn.sourceforge.net/svnroot/sqlfairy',
76 bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=SQL-Translator',
77 license => 'http://fsf.org/licensing/licenses/gpl.html',
82 # Copy .tt2 files in lib into blib/lib
83 $builder->add_build_element('tt2');
85 $builder->create_build_script;
86 print "Now run './Build', './Build test', and './Build install'\n";