Added quote-field-names, quote-table-names options
[dbsrgits/SQL-Translator.git] / Build.PL
1 # $Id: Build.PL,v 1.11 2006-03-06 13:08:42 grommit Exp $
2
3 use strict;
4 use lib './lib';
5 use Module::Build;
6
7 my $builder = Module::Build->new(
8     create_readme     => 0,
9     dist_abstract     => 'SQL DDL transformations and more',
10     dist_author       => 'Ken Y. Clark <kclark@cpan.org>',
11     dist_version_from => 'lib/SQL/Translator.pm',
12     license           => 'gpl',
13     module_name       => 'SQL::Translator',
14     sign              => 1,
15     script_files      => [
16         'bin/sqlt-diagram',
17         'bin/sqlt-diff',
18         'bin/sqlt-dumper',
19         'bin/sqlt-graph',
20         'bin/sqlt',
21     ],
22     requires          => {
23         'Class::Base'              => 0,
24         'Class::Data::Inheritable' => 0.02,
25         'Class::MakeMethods'       => 0,
26         'IO::Dir'                  => 0,
27         'Log::Log4perl'            => 0,
28         'Template'                 => 2.10,
29         'Parse::RecDescent'        => 1.94,
30         'Pod::Usage'               => 0,
31     },
32     recommends        => {
33         'GD'                      => 0,
34         'GraphViz'                => 0,
35         'IO::File'                => 0,
36         'IO::Scalar'              => 0,
37         'Spreadsheet::ParseExcel' => 0.2602,
38         'Text::ParseWords'        => 0,
39         'Text::RecordParser'      => 0.02,
40         'XML::Writer'             => 0.500,
41         'XML::XPath'              => 1.13,
42     },
43     build_requires    => {
44         'File::Basename'          => 0,
45         'File::Spec'              => 0,
46         'Test::More'              => 0.6,
47         'Test::Exception'         => 0,
48         'Test::Differences'       => 0,
49         'YAML'                    => 0.39,
50     },
51     get_options => {
52         # Where to store additional files such as templates.
53         # TODO: Should be OS dependant. See Module::Build::os_type()
54         install_dir => { type=>'=s', default=>'/usr/local/share/sqlfairy' },
55     },
56 );
57
58 # Copy .tt2 files in lib into blib/lib
59 $builder->add_build_element('tt2');
60
61 $builder->create_build_script;
62 print "Now run './Build', './Build test', and './Build install'\n";