-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.PL
52 lines (42 loc) · 1.14 KB
/
Makefile.PL
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use inc::Module::Install;
RTx 'RT-Extension-REST2';
license 'gpl_2';
githubmeta('github');
requires_rt('4.2.4');
rt_too_new('5.0.0');
requires 'Encode';
requires 'JSON';
requires 'Module::Runtime';
requires 'Moose';
requires 'MooseX::NonMoose';
requires 'MooseX::Role::Parameterized';
requires 'namespace::autoclean';
requires 'Plack::Builder';
requires 'Scalar::Util';
requires 'Sub::Exporter';
requires 'Web::Machine' => '0.12';
requires 'Module::Path';
requires 'Pod::POM';
requires 'Path::Dispatcher' => '1.07';
recommends 'JSON::XS';
test_requires 'Try::Tiny';
test_requires 'Test::Deep';
test_requires 'Test::WWW::Mechanize::PSGI';
my ($lp) = ($INC{'RT.pm'} =~ /^(.*)[\\\/]/);
my $lib_path = join( ' ', "$RT::LocalPath/lib", $lp );
my $sbin_path = $RT::SbinPath || "$RT::BasePath/sbin" || "/opt/rt3/sbin";
my $bin_path = $RT::BinPath || "$RT::BasePath/bin" || "/opt/rt3/bin";
substitute(
{
RT_LIB_PATH => $lib_path,
RT_BIN_PATH => $bin_path,
RT_SBIN_PATH => $sbin_path,
},
{
sufix => '.in'
},
qw(lib/RT/Extension/REST2/Test.pm),
);
no_index package => 'RT::Extension::REST2::Test';
sign;
WriteAll;