File: Makefile.PL

package info (click to toggle)
libanyevent-forkobject-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80 kB
  • sloc: perl: 619; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (3)
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
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              => 'AnyEvent::ForkObject',
    VERSION_FROM      => 'lib/AnyEvent/ForkObject.pm', # finds $VERSION
    PREREQ_PM         => {
    	'AnyEvent::Tools'               => '0.10',
        'AnyEvent::Serialize'           => '0.03',
        'Devel::GlobalDestruction'      => '0.02'
    }, # e.g., Module::Name => 1.1
    ($] >= 5.005 ?     ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM  => 'lib/AnyEvent/ForkObject.pm', # retrieve abstract from module
       AUTHOR         => 'Dmitry E. Oboukhov <unera@debian.org>') : ()),
);

# I wanna see full report on CPAN
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 $_;
    }
}