]> git.vpit.fr Git - perl/modules/Sub-Op.git/blob - t/Sub-Op-Test/Makefile.PL
Initial commit
[perl/modules/Sub-Op.git] / t / Sub-Op-Test / Makefile.PL
1 use 5.010;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Sub-Op-Test';
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 use blib $top;
24
25 my $ed = ExtUtils::Depends->new($name => 'Sub::Op');
26
27 my %ed_vars = $ed->get_makefile_vars;
28 $ed_vars{clean}->{FILES} .= ' ' . join ' ',
29       "$dist-*", qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};
30
31 WriteMakefile(
32  NAME             => $name,
33  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
34  LICENSE          => 'perl',
35  VERSION_FROM     => $file,
36  PL_FILES         => {},
37  MIN_PERL_VERSION => 5.010,
38  %ed_vars,
39 );