f2469e9f99baf76844db6a489b1b4abf3bf6a80f
[dbsrgits/SQL-Translator.git] / Makefile.PL
1 package SQL::Translator;
2
3 use strict;
4 use ExtUtils::MakeMaker;
5
6 my @SIGN;
7 if ($ExtUtils::MakeMaker::VERSION >= 6.18) {
8     @SIGN = (SIGN => 1);
9 }
10
11 WriteMakefile(
12     'NAME'         => __PACKAGE__,
13     @SIGN,
14     'VERSION_FROM' => 'lib/SQL/Translator.pm',
15     'EXE_FILES'    => [
16         'bin/sqlt-diagram',
17         'bin/sqlt-diff',
18         'bin/sqlt-dumper',
19         'bin/sqlt-graph',
20         'bin/sqlt',
21     ],
22     'PREREQ_PM'    => {
23         'Class::Base'             => 0,
24         'Class::MakeMethods'      => 0,
25         'File::Basename'          => 0,
26         'File::Spec'              => 0,
27         'GD'                      => 0,
28         'GraphViz'                => 0,
29         'IO::Dir'                 => 0,
30         'IO::File'                => 0,
31         'IO::Scalar'              => 0,
32         'Parse::RecDescent'       => 1.94,
33         'Pod::Usage'              => 0,
34         'Spreadsheet::ParseExcel' => 0.2602,
35         'Template'                => 2.10,
36         'Test::More'              => 0,
37         'Test::Exception'         => 0,
38         'Test::Differences'       => 0,
39         'Text::ParseWords'        => 0,
40         'Text::RecordParser'      => 0.02,
41         'XML::Writer'             => 0.500,
42         'XML::XPath'              => 1.13,
43         'YAML'                    => 0,
44     },
45     'clean'        => {
46         FILES => '$(DISTVNAME).tar$(SUFFIX)',
47     },
48 );
49
50 package MY;
51 use File::Basename qw(basename);
52
53 sub libscan {
54     my ($self, $file) = @_;
55     my $bfile = basename($file);
56
57     return if $bfile =~ /^\.(?:cvs)?ignore$/;
58     return if $bfile =~ /\.swp$/;
59
60     return $self->SUPER::libscan($file);
61 }