Actually weaken Converter->sqla_instance ref
[dbsrgits/SQL-Abstract.git] / Makefile.PL
1 use inc::Module::Install 1.06;
2 use strict;
3 use warnings;
4
5 use 5.006002;
6
7 ##
8 ## TEMPORARY (and non-portable)
9 ## Get the dq stuff
10 ##
11 my $target_libdir;
12 BEGIN {
13   $target_libdir = 'lib/SQL/Abstract/_TempExtlib';
14
15   if ($Module::Install::AUTHOR or $ENV{TRAVIS}) {
16
17     `rm -rf $target_libdir`;
18     `mkdir $target_libdir`;
19     for (
20       [ 'Data-Query' => 'master' ],
21     ) {
22       my $tdir = "/tmp/dqlib/$_->[0]/";
23
24       `rm -rf $tdir`;
25
26       `GIT_SSH=maint/careless_ssh.bash git clone --bare --quiet --branch=$_->[1] --depth=1 git://git.shadowcat.co.uk/dbsrgits/$_->[0] $tdir`;
27       printf "\nIncluding %s git rev %s\n",
28         $_->[0],
29         scalar `GIT_DIR=$tdir git rev-parse $_->[1]`,
30       ;
31       `git archive --format=tar --remote=file://$tdir $_->[1] lib/ | tar --strip-components=1 -xC $target_libdir`;
32
33       #`rm -rf $tdir`;
34     }
35   }
36 }
37
38 use lib $target_libdir;
39
40
41 perl_version '5.006002';
42 name 'SQL-Abstract';
43 author 'Nathan Wiger <nate@wiger.org>';
44 resources 'license'     => 'http://dev.perl.org/licenses/';
45 resources 'repository'  => 'git://git.shadowcat.co.uk/dbsrgits/SQL-Abstract.git';
46 resources 'bugtracker'  => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=SQL-Abstract';
47
48 all_from 'lib/SQL/Abstract.pm';
49
50 dynamic_config 0;
51
52 # deps for Data::Query
53 requires 'SQL::ReservedWords' => '0.8',
54 requires 'Safe::Isa' => '1.000003',
55
56 requires 'List::Util'   => 0;
57 requires 'Scalar::Util' => 0;
58 requires 'Getopt::Long::Descriptive' => 0.091;
59 requires 'Hash::Merge' => 0.12;
60 requires 'Moo' => '0.009014';
61 requires 'namespace::clean' => '0.24';
62
63 test_requires "Test::More"      => 0.92;
64 test_requires "Test::Exception" => 0;
65 test_requires "Test::Warn"      => 0;
66 test_requires "Test::Deep"      => '0.101';
67 test_requires "Storable"        => 0;   # for cloning in tests
68
69 no_index package => 'DBIx::Class::Storage::Debug::PrettyPrint';
70 no_index directory => 'examples';
71 no_index package => 'SQL::Abstract::_TempExtlib';
72 no_index directory => 'lib/SQL/Abstract/_TempExtlib';
73
74 install_script 'format-sql';
75
76 tests_recursive 't';
77
78 auto_install();
79
80 WriteAll();