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