File: Makefile.PL

package info (click to toggle)
libdbd-ldap-perl 1.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 236 kB
  • sloc: perl: 1,708; makefile: 2
file content (36 lines) | stat: -rw-r--r-- 811 bytes parent folder | download
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;
}