Patch from jgoulah for mysqls UNION (merge engine) option
[dbsrgits/SQL-Translator.git] / Build.PL
CommitLineData
da5a1bae 1# $Id: Build.PL,v 1.13 2007-10-24 10:55:44 schiffbruechige Exp $
5e14531f 2
3use strict;
50f63fb1 4use lib './lib';
8fbe040d 5use Module::Build;
5e14531f 6
8fbe040d 7my $builder = Module::Build->new(
5e14531f 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',
da5a1bae 18 'bin/sqlt-diff-old',
5e14531f 19 'bin/sqlt-dumper',
20 'bin/sqlt-graph',
21 'bin/sqlt',
22 ],
23 requires => {
9371be50 24 'Class::Base' => 0,
25 'Class::Data::Inheritable' => 0.02,
c88b5f28 26 'Class::MakeMethods' => 0,
f5405d47 27 'Digest::SHA1' => 2.00,
9371be50 28 'IO::Dir' => 0,
29 'Log::Log4perl' => 0,
9371be50 30 'Parse::RecDescent' => 1.94,
31 'Pod::Usage' => 0,
4d438549 32 'Class::Accessor::Fast' => 0,
5cf7104a 33 'DBI' => 0,
5e14531f 34 },
35 recommends => {
1a736ea3 36 'Template' => 2.10,
5e14531f 37 'GD' => 0,
38 'GraphViz' => 0,
da5a1bae 39 'Graph::Directed' => 0,
5e14531f 40 'IO::File' => 0,
41 'IO::Scalar' => 0,
42 'Spreadsheet::ParseExcel' => 0.2602,
43 'Text::ParseWords' => 0,
44 'Text::RecordParser' => 0.02,
45 'XML::Writer' => 0.500,
46 'XML::XPath' => 1.13,
5e14531f 47 },
48 build_requires => {
49 'File::Basename' => 0,
50 'File::Spec' => 0,
7f2b8f37 51 'Test::More' => 0.6,
4d438549 52 'Test::Differences' => 0,
5e14531f 53 'Test::Exception' => 0,
54 'Test::Differences' => 0,
2d283c75 55 'YAML' => 0.39,
50f63fb1 56 },
50f63fb1 57 get_options => {
58 # Where to store additional files such as templates.
59 # TODO: Should be OS dependant. See Module::Build::os_type()
60 install_dir => { type=>'=s', default=>'/usr/local/share/sqlfairy' },
61 },
5e14531f 62);
50f63fb1 63
8fbe040d 64# Copy .tt2 files in lib into blib/lib
65$builder->add_build_element('tt2');
50f63fb1 66
5e14531f 67$builder->create_build_script;
68print "Now run './Build', './Build test', and './Build install'\n";