File: Makefile.PL

package info (click to toggle)
librt-extension-commandbymail-perl 3.00-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 316 kB
  • sloc: perl: 3,818; makefile: 3
file content (34 lines) | stat: -rw-r--r-- 837 bytes parent folder | download | duplicates (2)
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
use inc::Module::Install;

RTx ('RT-Extension-CommandByMail');
no_index package => "RT::Extension::CommandByMail::Test";
build_requires('Test::More');
build_requires('IPC::Open2');

repository('https://github.com/bestpractical/rt-extension-commandbymail');

auto_install();

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/CommandByMail/Test.pm),
);

no_index package => 'RT::Extension::CommandByMail::Test';

author_tests('xt');

sign;
WriteAll();