port to Distar
[dbsrgits/DBIx-Class-Schema-Loader.git] / maint / Makefile.PL.include
1 BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") }
2 use lib 'Distar/lib';
3 use Distar 0.001;
4
5 author 'Caelum: Rafael Kitover <rkitover@cpan.org>';
6
7 manifest_include 't/backcompat/0.04006/lib' => qr/.*\.pm$/;
8 manifest_include 't/bin' => qr/.*/;
9
10 use FindBin;
11 use lib "$FindBin::Bin/lib";
12 require DBIx::Class::Schema::Loader::Optional::Dependencies;
13 my $optdeps = 'DBIx::Class::Schema::Loader::Optional::Dependencies';
14 my @req_groups = keys %{ $optdeps->req_group_list };
15 my @other_groups = grep { !/rdbms/ } @req_groups;
16 my %dev_requires = %{ $optdeps->modreq_list_for(\@other_groups) };
17
18 eval {
19     # eval as blows up if not all deps installed
20     # should probably be part of "build" stage instead
21     $optdeps->_gen_pod(undef, 'lib');
22 };
23
24 # vim: ft=perl et sts=4 sw=4 tw=0:
25
26 # list in case more added - returned to caller
27 (\%dev_requires);