]> git.vpit.fr Git - perl/modules/Sub-Op.git/blobdiff - t/Sub-Op-LexicalSub/Makefile.PL
Rename Sub::Op::Test to Sub::Op::LexicalSub
[perl/modules/Sub-Op.git] / t / Sub-Op-LexicalSub / Makefile.PL
diff --git a/t/Sub-Op-LexicalSub/Makefile.PL b/t/Sub-Op-LexicalSub/Makefile.PL
new file mode 100644 (file)
index 0000000..6fd5065
--- /dev/null
@@ -0,0 +1,43 @@
+use 5.010;
+
+use strict;
+use warnings;
+use ExtUtils::MakeMaker;
+
+my $dist = 'Sub-Op-LexicalSub';
+
+(my $name = $dist) =~ s{-}{::}g;
+
+(my $file = $dist) =~ s{-}{/}g;
+$file = "lib/$file.pm";
+
+my $top;
+BEGIN {
+ require File::Spec;
+ my $up = File::Spec->updir;
+ $top   = File::Spec->rel2abs(File::Spec->catdir($up, $up));
+}
+
+use ExtUtils::Depends;
+
+my %ed_vars = eval {
+ require blib;
+ blib->import($top);
+
+ my $ed = ExtUtils::Depends->new($name => 'Sub::Op');
+
+ $ed->get_makefile_vars;
+};
+
+$ed_vars{clean}->{FILES} .= ' ' . join ' ',
+      "$dist-*", qw{*.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt};
+
+WriteMakefile(
+ NAME             => $name,
+ AUTHOR           => 'Vincent Pit <perl@profvince.com>',
+ LICENSE          => 'perl',
+ VERSION_FROM     => $file,
+ PL_FILES         => {},
+ MIN_PERL_VERSION => 5.010,
+ %ed_vars,
+);