File: Makefile.PL.include

package info (click to toggle)
libdbix-class-schema-loader-perl 0.07049-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 1,464 kB
  • sloc: perl: 11,469; sh: 544; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 918 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BEGIN { -e 'Distar' or system("git clone git://git.shadowcat.co.uk/p5sagit/Distar.git") }
use lib 'Distar/lib';
use Distar 0.001;

author 'Caelum: Rafael Kitover <rkitover@cpan.org>';

manifest_include 't/backcompat/0.04006/lib' => qr/.*\.pm$/;
manifest_include 't/bin' => qr/\w+/;
manifest_include 'script' => qr/\w+/;

use FindBin;
use lib "$FindBin::Bin/lib";
require DBIx::Class::Schema::Loader::Optional::Dependencies;
my $optdeps = 'DBIx::Class::Schema::Loader::Optional::Dependencies';
my @req_groups = keys %{ $optdeps->req_group_list };
my @other_groups = grep { !/rdbms/ } @req_groups;
my %dev_requires = %{ $optdeps->modreq_list_for(\@other_groups) };

eval {
    # eval as blows up if not all deps installed
    # should probably be part of "build" stage instead
    $optdeps->_gen_pod(undef, 'lib');
};

# vim: ft=perl et sts=4 sw=4 tw=0:

# list in case more added - returned to caller
(\%dev_requires);