File: Makefile.PL

package info (click to toggle)
libapache-mod-perl 1.16-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,580 kB
  • ctags: 1,064
  • sloc: ansic: 4,489; perl: 4,415; sh: 305; makefile: 137
file content (48 lines) | stat: -rw-r--r-- 1,199 bytes parent folder | download | duplicates (5)
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
package Apache::TestDirectives;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

BEGIN {
    use lib qw{../../lib};
}

use strict;
use Apache::src ();
use Apache::ExtUtils qw(command_table);

my $class = __PACKAGE__;

my @directives = (
   [Port => "A TCP port number"], #we'll decline this one
   [TestCmd => "Two TestCmd args"],
   [AnotherCmd => "Stuff for another command"],
   [CmdIterate => "No limit here"],
   ["<Container" => "whatever"],
   ["</Container>" => "end whatever"],
   {
       name => "YAC",
       func => "another_cmd",
       cmd_data => "info for YAC",
       errmsg => "Yet another comand",
       args_how => "TAKE2",
       req_override => "RSRC_CONF",
   },
);

my $proto_perl2c = Apache::ExtUtils->proto_perl2c;

while(my($pp,$cp) = each %$proto_perl2c) {
    next unless $pp;
    push @directives, [$cp, "Test for $cp"];
}

command_table \@directives;

WriteMakefile(
    'NAME'	=> $class,
    'VERSION_FROM' => 'TestDirectives.pm', # finds $VERSION
    'LIBS'	=> [''],   # e.g., '-lm' 
    'DEFINE'	=> '',     # e.g., '-DHAVE_SOMETHING' 
    'INC'	=> Apache::src->new->inc,
);