Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (33 sloc) 1000 Bytes
use strict;
use warnings;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my %prereq = (
'JavaScript::Autocomplete::Backend' => 0,
'Apache2::RequestRec' => 0,
);
my %opts = (
NAME => 'Apache2::Autocomplete',
VERSION_FROM => 'lib/Apache2/Autocomplete.pm',
PL_FILES => {},
PREREQ_PM => \%prereq,
);
my $eu_version = $ExtUtils::MakeMaker::VERSION;
if ($eu_version >= 5.43) {
$opts{ABSTRACT_FROM} = 'lib/Apache2/Autocomplete.pm';
$opts{AUTHOR} = 'Randy Kobes <r.kobes@uwinnipeg.ca>';
}
if ($eu_version > 6.11) {
$opts{NO_META} = 1;
}
eval {require ModPerl::MM; };
if ($@) {
warn qq{Please install ModPerl::MM first};
exit 0;
}
require Apache::TestMM;
import Apache::TestMM qw(test clean);
Apache::TestMM::filter_args();
Apache::TestMM::generate_script('t/TEST');
ModPerl::MM::WriteMakefile( %opts);