File: Makefile.PL

package info (click to toggle)
libdbd-sqlite2-perl 2%3A0.37-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,692 kB
  • ctags: 2,312
  • sloc: ansic: 27,895; perl: 1,730; makefile: 11
file content (51 lines) | stat: -rw-r--r-- 1,442 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
eval {
    require DBI;
    require DBI::DBD;
    die "Too old" unless $DBI::VERSION >= 1.03;
};
use ExtUtils::MakeMaker;
use Config;
use strict;

WriteMakefile(
    'NAME'          => 'DBD::SQLite2',
    'VERSION_FROM'  => 'lib/DBD/SQLite2.pm', # finds $VERSION
    'PREREQ_PM'     => {
      DBI => 1.625,
     },
    'OBJECT'        => '$(O_FILES)',
    'INC'           => '-I$(DBI_INSTARCH_DIR)',
    'OPTIMIZE'      => $Config{optimize} . (($^O eq 'solaris' and !$Config{gccversion}) ? "" : " -O2"),
    'DEFINE'        => "-DNDEBUG=1 -DSQLITE_PTR_SZ=$Config{ptrsize}" .
                       ($Config{d_usleep} ? " -DHAVE_USLEEP=1" : ""),
    'clean'         => { FILES => 'SQLite2.xsi config.h' },
    'ABSTRACT_FROM'  =>  'lib/DBD/SQLite2.pm',
    'AUTHOR'         => 'Matt Sergeant <matt@sergeant.org>',
  ($ExtUtils::MakeMaker::VERSION ge '6.52' ?
   ('CONFIGURE_REQUIRES' => {DBI => 1.625}) : ()),
  ($ExtUtils::MakeMaker::VERSION gt '6.46' ?
   ('LICENSE'     => 'perl',
    'META_MERGE'  =>
    {"recommends" =>
     {
       'DBD::SQLite'  => '1.37',
       'DBI'          => '1.625',
     },
     resources =>
     {       
	license     => 'http://dev.perl.org/licenses/',
         repository  => 'https://github.com/rurban/DBD-SQLite2',
     },
    }
   ) : ()),
  SIGN  => 1
);

package MY;
sub postamble { 
  DBI::DBD::dbd_postamble(@_);
}
sub libscan {
    my ($self, $path) = @_;
    ($path =~ m/\~$/) ? undef : $path;
}