File: Makefile.PL

package info (click to toggle)
libapache-filter-perl 1.022-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 244 kB
  • ctags: 66
  • sloc: perl: 901; makefile: 42
file content (33 lines) | stat: -rw-r--r-- 1,016 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
use strict;
use ExtUtils::MakeMaker;
use lib 't/lib';  # distributed here until changes are incorporated into the real version
use Apache::test qw(have_httpd);

my %params = Apache::test->get_test_params();
Apache::test->write_httpd_conf
    (%params,
     include => do {local $/; open FH, 't/config.incl'; <FH>});
*MY::test = sub { Apache::test->MM_test(%params) } if have_httpd();

my $module = 'Apache::Filter';
my ($name, $dir);
($name = $module) =~ s/.*::(\w+)/$1.pm/;
($dir = $module) =~ s/::/-/g;

WriteMakefile
  (
   'NAME'	=> $module,
   'VERSION_FROM' => "lib/Apache/$name", # finds $VERSION
   'dist' => { COMPRESS=>"gzip", 
	       SUFFIX=>"gz", 
               PREOP=>('rm -f README; '.
                       "pod2text -80 < $name > README; ".
                       "cp -f README $dir-\$(VERSION); "
                      ),
             },
   'PL_FILES' => {},
   'clean' => {FILES => "t/httpd t/httpd.conf t/error_log"},
   'PREREQ_PM' => {
                   'mod_perl' => '1.24_01',
		  },
  );