Commit | Line | Data |
06c1f5bb |
1 | use inc::Module::Install 1.06; |
d4705371 |
2 | use strict; |
3 | use warnings; |
4 | |
75151f36 |
5 | use 5.006002; |
d4705371 |
6 | |
39999edd |
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 | |
75151f36 |
41 | perl_version '5.006002'; |
d4705371 |
42 | name 'SQL-Abstract'; |
4f0516bc |
43 | author 'Nathan Wiger <nate@wiger.org>'; |
d8cc1792 |
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'; |
d4705371 |
47 | |
48 | all_from 'lib/SQL/Abstract.pm'; |
49 | |
b5f4fb92 |
50 | dynamic_config 0; |
51 | |
39999edd |
52 | # deps for Data::Query |
53 | requires 'SQL::ReservedWords' => '0.8', |
54 | requires 'Safe::Isa' => '1.000003', |
55 | |
fdfbbc65 |
56 | requires 'List::Util' => 0; |
57 | requires 'Scalar::Util' => 0; |
5e6c3564 |
58 | requires 'Getopt::Long::Descriptive' => 0.091; |
2fed0b4b |
59 | requires 'Hash::Merge' => 0.12; |
3a9aca02 |
60 | requires 'Moo' => '0.009014'; |
7371cf74 |
61 | requires 'namespace::clean' => '0.24'; |
d4705371 |
62 | |
0bf60a86 |
63 | test_requires "Test::More" => 0.92; |
d4705371 |
64 | test_requires "Test::Exception" => 0; |
65 | test_requires "Test::Warn" => 0; |
328c5eac |
66 | test_requires "Test::Deep" => '0.101'; |
75151f36 |
67 | test_requires "Storable" => 0; # for cloning in tests |
d4705371 |
68 | |
0d5df7d6 |
69 | no_index package => 'DBIx::Class::Storage::Debug::PrettyPrint'; |
1dc93d17 |
70 | no_index directory => 'examples'; |
39999edd |
71 | no_index package => 'SQL::Abstract::_TempExtlib'; |
72 | no_index directory => 'lib/SQL/Abstract/_TempExtlib'; |
1dc93d17 |
73 | |
ffce8d5f |
74 | install_script 'format-sql'; |
75 | |
d4705371 |
76 | tests_recursive 't'; |
77 | |
536dbae1 |
78 | auto_install(); |
79 | |
d4705371 |
80 | WriteAll(); |