Release 0.03
[manu/RT-Extension-ImportCustomFieldValues.git] / Makefile.PL
1 use inc::Module::Install;
2
3 RTx 'RT-Extension-ImportCustomFieldValues';
4 license 'gpl_3';
5 repository 'http://git.home-dn.net/?p=manu/RT-Extension-ImportCustomFieldValues';
6
7 requires('Text::CSV');
8 requires_rt('4.2.0');
9 rt_too_new('4.6.0');
10
11 readme_from 'lib/RT/Extension/ImportCustomFieldValues.pm', 0;
12
13 my ($lp) = ($INC{'RT.pm'} =~ /^(.*)[\\\/]/);
14 my $lib_path = join( ' ', "$RT::LocalPath/lib", $lp );
15 my $bin_path = $RT::BinPath || "$RT::BasePath/bin" || "/opt/rt4/bin";
16
17 # Straight from perldoc perlvar
18 use Config;
19 my $secure_perl_path = $Config{perlpath};
20 if ($^O ne 'VMS') {
21     $secure_perl_path .= $Config{_exe}
22         unless $secure_perl_path =~ m/$Config{_exe}$/i;
23 }
24
25 substitute(
26     {
27         RT_LIB_PATH  => $lib_path,
28         RT_BIN_PATH  => $bin_path,
29         PERL         => $ENV{PERL} || $secure_perl_path,
30     },
31            {
32         sufix => '.in'
33     },
34            qw(lib/RT/Extension/ImportCustomFieldValues/Test.pm),
35 );
36
37 auto_install;
38 sign;
39 WriteAll;