Remove all expansion $XX tags (isolated commit, easily revertable)
[dbsrgits/SQL-Translator.git] / Build.PL
1 use strict;
2 use lib './lib';
3 use Module::Build;
4
5 my $builder = Module::Build->new(
6   module_name           => 'SQL::Translator',
7   dist_author           => 'Ken Y. Clark <kclark@cpan.org>',
8   dist_version_from     => 'lib/SQL/Translator.pm',
9   dist_abstract         => 'SQL DDL transformations and more',
10   license               => 'gpl',
11   dynamic_config        => 0,
12   create_readme         => 0,
13   recursive_test_files  => 1,
14   sign                  => 1,
15   create_packlist       => 1,
16   sign                  => 1,
17   recursive_test_files  => 1,
18   create_makefile_pl    => 'passthrough',
19
20   requires => {
21     'Class::Base'              => 0,
22     'Class::Data::Inheritable' => 0.02,
23     'Class::MakeMethods'       => 0,
24     'Digest::SHA1'             => 2.00,
25     'IO::Dir'                  => 0,
26     'Log::Log4perl'            => 0,
27     'Parse::RecDescent'        => 1.94,
28     'Pod::Usage'               => 0,
29     'Class::Accessor::Fast'    => 0,
30     'DBI'                      => 0,
31   },
32   recommends => {
33     'Template'                => 2.10,
34     'GD'                      => 0,
35     'GraphViz'                => 0,
36     'Graph::Directed'         => 0,
37     'IO::File'                => 0,
38     'IO::Scalar'              => 0,
39     'Spreadsheet::ParseExcel' => '>= 0.2602, != 0.33',
40     'Text::ParseWords'        => 0,
41     'Text::RecordParser'      => 0.02,
42     'XML::Writer'             => 0.500,
43     'XML::XPath'              => 1.13,
44   },
45   build_requires => {
46     'File::Basename'          => 0,
47     'File::Spec'              => 0,
48     'Test::More'              => 0.6,
49     'Test::Differences'       => 0,
50     'Test::Exception'         => 0,
51     'Test::Differences'       => 0,
52     'YAML'                    => 0.39,
53   },
54
55   add_to_cleanup => [ 'SQL-Translator-*' ],
56   script_files => [
57     'bin/sqlt-diagram',
58     'bin/sqlt-diff',
59     'bin/sqlt-diff-old',
60     'bin/sqlt-dumper',
61     'bin/sqlt-graph',
62     'bin/sqlt',
63   ],
64
65   get_options => {
66     # Where to store additional files such as templates.
67     # TODO: Should be OS dependant. See Module::Build::os_type()
68     install_dir => { type=>'=s', default=>'/usr/local/share/sqlfairy' },
69   },
70   meta_merge => {
71     resources => {
72       # Custom resources (must begin with an uppercase letter)
73       Ratings      => 'http://cpanratings.perl.org/d/SQL-Translator',
74
75       # Official keys (homepage, license, bugtracker)
76       repository   => 'https://sqlfairy.svn.sourceforge.net/svnroot/sqlfairy',
77       bugtracker   => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=SQL-Translator',
78       license      => 'http://fsf.org/licensing/licenses/gpl.html',
79     },
80   },
81 );
82
83 # Copy .tt2 files in lib into blib/lib
84 $builder->add_build_element('tt2');
85
86 $builder->create_build_script;
87 print "Now run './Build', './Build test', and './Build install'\n";