X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=9830868c8f45354aaf9a1ec9d3dc121d863bc017;hb=0488c7e1294791e01dc75dfe633454d0f4201384;hp=492368ef27e5219c17f36f093f67d45987f553d2;hpb=2231d31c29347c34a6b58b88782da220775bddaa;p=dbsrgits%2FDBIx-Class.git diff --git a/Makefile.PL b/Makefile.PL index 492368e..9830868 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,40 @@ use inc::Module::Install 1.06; BEGIN { makemaker_args( NORECURS => 1 ) } # needs to happen early for old EUMM ## +## TEMPORARY (and non-portable) +## Get the dq stuff +## +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`; + } + } +} + +use lib $target_libdir; + +## ## DO NOT USE THIS HACK IN YOUR DISTS!!! (it makes #toolchain sad) ## # get cpanX --installdeps . to behave in a checkout (most users do not expect @@ -78,7 +112,7 @@ my $runtime_requires = { 'Data::Page' => '2.00', 'Devel::GlobalDestruction' => '0.09', 'Hash::Merge' => '0.12', - 'Moo' => '1.002', + 'Moo' => '1.003000', 'MRO::Compat' => '0.12', 'Module::Find' => '0.07', 'namespace::clean' => '0.24', @@ -91,6 +125,10 @@ my $runtime_requires = { # 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 = {