File: Makefile.PL

package info (click to toggle)
libregexp-assemble-perl 0.34-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 484 kB
  • ctags: 102
  • sloc: perl: 2,166; makefile: 42
file content (32 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (4)
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
# Makefile.PL for Regexp-Assemble

use ExtUtils::MakeMaker qw( WriteMakefile prompt );

eval "use ExtUtils::MakeMaker::Coverage";
if( $@ ) {
    print "Skipping testcover target, ExtUtils::MakeMaker::Coverage not found\n";
}
else {
    print "Adding testcover target\n";
}

my $file = [];
#if( my $response = prompt( 'Install eg/assemble as a program (y/N)', 'n' )) {
#    push @$file, "eg/assemble" if $response =~ /^\s*y/im,
#}

my @license = $ExtUtils::MakeMaker::VERSION > 6.30
    ? qw(LICENSE perl)
    : ();

WriteMakefile(
    NAME          => 'Regexp::Assemble',
    ABSTRACT_FROM => 'Assemble.pm',
    VERSION_FROM  => 'Assemble.pm',
    AUTHOR        => 'David Landgren',
    EXE_FILES     => $file,
    clean => {
        FILES => 'cover_db',
    },
    @license,
);