| Line | |
|---|
| 1 | use lib 't/lib'; |
|---|
| 2 | use strict; |
|---|
| 3 | use warnings; |
|---|
| 4 | use ExtUtils::MakeMaker; |
|---|
| 5 | use Apache::test qw(have_httpd); |
|---|
| 6 | |
|---|
| 7 | my %params = Apache::test->get_test_params(); |
|---|
| 8 | Apache::test->write_httpd_conf |
|---|
| 9 | (%params, |
|---|
| 10 | include => do {local $/; open FH, 't/config.incl'; <FH>}); |
|---|
| 11 | *MY::test = sub { Apache::test->MM_test(%params) } if have_httpd(); |
|---|
| 12 | |
|---|
| 13 | WriteMakefile( |
|---|
| 14 | NAME => 'Apache::JemplateFilter', |
|---|
| 15 | AUTHOR => 'FUJIWARA Shunichiro <fujiwara@topicmaker.com>', |
|---|
| 16 | VERSION_FROM => 'lib/Apache/JemplateFilter.pm', |
|---|
| 17 | ABSTRACT_FROM => 'lib/Apache/JemplateFilter.pm', |
|---|
| 18 | PL_FILES => {}, |
|---|
| 19 | PREREQ_PM => { |
|---|
| 20 | 'Test::More' => 0, |
|---|
| 21 | 'mod_perl' => 1.21, |
|---|
| 22 | 'Jemplate' => 0.12, |
|---|
| 23 | }, |
|---|
| 24 | dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, |
|---|
| 25 | clean => { FILES => 'Apache-JemplateFilter-* t/httpd t/httpd.conf t/error_log t/httpd.pid' }, |
|---|
| 26 | ); |
|---|