]> git.vpit.fr Git - perl/modules/Sub-Op.git/blob - t/Sub-Op-LexicalSub/Makefile.PL
Rename the "len" member of the sub_op_config_t struct to "namelen"
[perl/modules/Sub-Op.git] / t / Sub-Op-LexicalSub / Makefile.PL
1 use 5.010;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Sub-Op-LexicalSub';
8
9 (my $name = $dist) =~ s{-}{::}g;
10
11 (my $file = $dist) =~ s{-}{/}g;
12 $file = "lib/$file.pm";
13
14 my $top;
15 BEGIN {
16  require File::Spec;
17  my $up = File::Spec->updir;
18  $top   = File::Spec->rel2abs(File::Spec->catdir($up, $up));
19 }
20
21 use ExtUtils::Depends;
22
23 my %ed_vars = eval {
24  require blib;
25  blib->import($top);
26
27  my $ed = ExtUtils::Depends->new($name => 'Sub::Op');
28
29  $ed->get_makefile_vars;
30 };
31
32 $ed_vars{clean}->{FILES} .= ' ' . join ' ',
33       "$dist-*", qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};
34
35 WriteMakefile(
36  NAME             => $name,
37  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
38  LICENSE          => 'perl',
39  VERSION_FROM     => $file,
40  PL_FILES         => {},
41  MIN_PERL_VERSION => 5.010,
42  %ed_vars,
43 );