File: Makefile.PL

package info (click to toggle)
libdbix-dr-perl 0.19-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 340 kB
  • sloc: perl: 1,621; makefile: 548
file content (28 lines) | stat: -rw-r--r-- 777 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
use 5.010001;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    NAME              => 'DBIx::DR',
    VERSION_FROM      => 'lib/DBIx/DR.pm', # finds $VERSION
    PREREQ_PM         => {
        DBI         => 1.4,
        Mouse       => 0,
    },
    ABSTRACT_FROM  => 'lib/DBIx/DR.pm', # retrieve abstract from module
    AUTHOR         => 'Dmitry E. Oboukhov <unera@debian.org>',

    BUILD_REQUIRES      => {
       'DBD::SQLite'  =>  1.0
    }
);

if (open my $file, '+<', 'Makefile') {
    my @lines = <$file>;
    seek $file, 0, 0;
    truncate $file, 0;
    for (@lines) {
        $_ = "TEST_VERBOSE=1\n" if /^TEST_VERBOSE\s*=\s*.*/;
        print $file $_;
    }
}