X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Build.PL;h=5102d043cecf0d8b20f23176dafb8ce155f752db;hb=13243123e82dd7a002d3560f23f3ed1602022c67;hp=16b1b080f49ca230328c9fa1d88b7ee353de8d38;hpb=2d283c7512567f884cc034181c12f602fd0a77b4;p=dbsrgits%2FSQL-Translator.git diff --git a/Build.PL b/Build.PL index 16b1b08..5102d04 100644 --- a/Build.PL +++ b/Build.PL @@ -1,10 +1,10 @@ -# $Id: Build.PL,v 1.10 2006-01-31 03:28:07 kycl4rk Exp $ +# $Id: Build.PL,v 1.13 2007-10-24 10:55:44 schiffbruechige Exp $ use strict; use lib './lib'; -use SQL::Translator::Module::Build; +use Module::Build; -my $builder = SQL::Translator::Module::Build->new( +my $builder = Module::Build->new( create_readme => 0, dist_abstract => 'SQL DDL transformations and more', dist_author => 'Ken Y. Clark ', @@ -15,6 +15,7 @@ my $builder = SQL::Translator::Module::Build->new( script_files => [ 'bin/sqlt-diagram', 'bin/sqlt-diff', + 'bin/sqlt-diff-old', 'bin/sqlt-dumper', 'bin/sqlt-graph', 'bin/sqlt', @@ -25,13 +26,16 @@ my $builder = SQL::Translator::Module::Build->new( 'Class::MakeMethods' => 0, 'IO::Dir' => 0, 'Log::Log4perl' => 0, - 'Template' => 2.10, 'Parse::RecDescent' => 1.94, 'Pod::Usage' => 0, + 'Class::Accessor::Fast' => 0, + 'DBI' => 0, }, recommends => { + 'Template' => 2.10, 'GD' => 0, 'GraphViz' => 0, + 'Graph::Directed' => 0, 'IO::File' => 0, 'IO::Scalar' => 0, 'Spreadsheet::ParseExcel' => 0.2602, @@ -44,6 +48,7 @@ my $builder = SQL::Translator::Module::Build->new( 'File::Basename' => 0, 'File::Spec' => 0, 'Test::More' => 0.6, + 'Test::Differences' => 0, 'Test::Exception' => 0, 'Test::Differences' => 0, 'YAML' => 0.39, @@ -55,23 +60,8 @@ my $builder = SQL::Translator::Module::Build->new( }, ); -my $install_dir = $builder->args('install_dir'); -print "SqlFairy needs to install some additional files such as templates.\n"; -$install_dir = $builder->prompt( "Where should they go?", $install_dir ); -print "\n"; - -# Add the install (and template) dir to the config data. They will then be -# available via the (Module::Build) generated SQL::Translator::ConfigData. -# During build time they are availiable from $builder->config_data( NAME ) -my $template_dir = "$install_dir/template"; -$builder->config_data( install_dir => $install_dir ); -$builder->config_data( template_dir => $template_dir ); - -# Add build element for templates, these are processed by -# SQL::Translator::Module::Build::process_template_files -$builder->add_build_element('template'); -$builder->install_path->{template} = $template_dir; - +# Copy .tt2 files in lib into blib/lib +$builder->add_build_element('tt2'); $builder->create_build_script; print "Now run './Build', './Build test', and './Build install'\n";