File: Makefile.PL

package info (click to toggle)
libapache2-mod-perl2 2.0.9~1624218-2%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 11,912 kB
  • ctags: 4,588
  • sloc: perl: 95,064; ansic: 14,527; makefile: 49; sh: 18
file content (44 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (6)
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
use strict;
use warnings FATAL => 'all';
no warnings 'redefine';

use FindBin;
use lib grep { -d } map "$FindBin::Bin/../$_", qw(lib Apache-Test/lib);

use ModPerl::BuildMM ();
use Apache::TestSmokePerl ();
use Apache2::Build ();

# enable 'make test|clean'
use Apache::TestMM qw(test clean);

# prerequisites
my %require = (
    "Apache::Test" => "", # any version will do?
);

my @scripts = qw(t/TEST t/SMOKE);

# accept the configs from comman line
Apache::TestMM::filter_args();

my $build = Apache2::Build->build_config;
if ($build->should_build_apache) {
    push @Apache::TestMM::Argv, ('httpd' => $build->{httpd});
}
Apache::TestMM::generate_script('t/TEST');

# t/SMOKE
Apache::TestSmokePerl->generate_script;

ModPerl::BuildMM::WriteMakefile(
    NAME         => 'ModPerl::Registry',
    VERSION_FROM => 'lib/ModPerl/RegistryCooker.pm',
    PREREQ_PM    => \%require,
    clean        => {
        FILES => "@{ clean_files() }",
    });

sub clean_files {
    return [@scripts, 'Makefile.old'];
}