## TEMPORARY (and non-portable)
## Get the dq stuff
##
-`rm -rf lib/DBIx/Class/Bundled`;
-`mkdir lib/DBIx/Class/Bundled`;
-for (
- [ 'Data-Query' => 'master' ],
- [ 'SQL-Abstract' => 'dq' ],
-) {
- my $tdir = '/tmp/dqlib_tmp_clone';
-
- `rm -rf $tdir`;
-
- `GIT_SSH=maint/careless_ssh.bash git clone --quiet git://git.shadowcat.co.uk/dbsrgits/$_->[0] $tdir`;
- printf "\nIncluding %s git rev %s\n",
- $_->[0],
- scalar `GIT_DIR=$tdir/.git git rev-parse origin/$_->[1]`,
- ;
- `git archive --format=tar --remote=file://$tdir origin/$_->[1] lib/ | tar --strip-components=1 -xC lib/DBIx/Class/Bundled`;
-
- `rm -rf $tdir`;
+my $target_libdir;
+BEGIN {
+ $target_libdir = 'lib/DBIx/Class/_TempExtlib';
+
+ if ($Module::Install::AUTHOR) {
+
+ `rm -rf $target_libdir`;
+ `mkdir $target_libdir`;
+ for (
+ [ 'Data-Query' => 'master' ],
+ [ 'SQL-Abstract' => 'dq' ],
+ ) {
+ my $tdir = "/tmp/dqlib/$_->[0]/";
+
+ `rm -rf $tdir`;
+
+ `GIT_SSH=maint/careless_ssh.bash git clone --bare --quiet --branch=$_->[1] --depth=1 git://git.shadowcat.co.uk/dbsrgits/$_->[0] $tdir`;
+ printf "\nIncluding %s git rev %s\n",
+ $_->[0],
+ scalar `GIT_DIR=$tdir git rev-parse $_->[1]`,
+ ;
+ `git archive --format=tar --remote=file://$tdir $_->[1] lib/ | tar --strip-components=1 -xC $target_libdir`;
+
+ #`rm -rf $tdir`;
+ }
+ }
}
-`cpanm SQL::ReservedWords 2>&1`;
-use lib 'lib/DBIx/Class/Bundled';
+use lib $target_libdir;
##
## DO NOT USE THIS HACK IN YOUR DISTS!!! (it makes #toolchain sad)
'Data::Page' => '2.00',
'Devel::GlobalDestruction' => '0.09',
'Hash::Merge' => '0.12',
- 'Moo' => '1.000006',
+ 'Moo' => '1.003000',
'MRO::Compat' => '0.12',
'Module::Find' => '0.07',
'namespace::clean' => '0.24',
# by the MySQL codepath. However this particular version is bundled
# since 5.10.0 and is a pure-perl module anyway - let it slide
'Text::Balanced' => '2.00',
+
+ # deps for Data::Query
+ 'SQL::ReservedWords' => '0.8',
+ 'Safe::Isa' => '1.000003',
};
my $build_requires = {