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
|
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME' => 'DBD::LDAP',
'VERSION_FROM' => 'lib/DBD/LDAP.pm', # finds $VERSION
'INC' => $DBI_INC_DIR,
'dist' => {
'SUFFIX' => '.gz',
'COMPRESS' => 'gzip -9f'
},
'realclean' => {FILES => '*.xsi'},
'CONFIGURE_REQUIRES' => {
'DBI' => 1.03,
'ExtUtils::MakeMaker' => 6.52,
},
'PREREQ_PM' => {
'DBI' => 1.03,
'Net::LDAP' => 0.01
}
);
package MY;
sub postamble {
eval {require DBI;};
return '' if ($@);
eval {require DBI::DBD;};
return $@ ? '' : DBI::DBD::dbd_postamble(@_);
}
sub libscan {
my ($self, $path) = @_;
($path =~ /\~$/) ? undef : $path;
}
|