]> git.vpit.fr Git - perl/modules/Scope-Context.git/blob - Makefile.PL
Update VPIT::TestHelpers to e8344578
[perl/modules/Scope-Context.git] / Makefile.PL
1 use 5.006;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'Scope-Context';
8
9 (my $name = $dist) =~ s{-}{::}g;
10
11 (my $file = $dist) =~ s{-}{/}g;
12 $file = "lib/$file.pm";
13
14 my %PREREQ_PM = (
15  'Scope::Upper' => '0.21',
16  'Scalar::Util' => 0,
17 );
18
19 my %BUILD_REQUIRES = (
20  'ExtUtils::MakeMaker' => 0,
21  'Test::More'          => 0,
22  %PREREQ_PM,
23 );
24
25 my %META = (
26  configure_requires => {
27   'ExtUtils::MakeMaker' => 0,
28  },
29  build_requires => {
30   %BUILD_REQUIRES,
31  },
32  dynamic_config => 0,
33  resources => {
34   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
35   homepage   => "http://search.cpan.org/dist/$dist/",
36   license    => 'http://dev.perl.org/licenses/',
37   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
38  },
39 );
40
41 WriteMakefile(
42  NAME             => $name,
43  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
44  LICENSE          => 'perl',
45  VERSION_FROM     => $file,
46  ABSTRACT_FROM    => $file,
47  PL_FILES         => {},
48  BUILD_REQUIRES   => \%BUILD_REQUIRES,
49  PREREQ_PM        => \%PREREQ_PM,
50  MIN_PERL_VERSION => '5.006',
51  META_MERGE       => \%META,
52  dist             => {
53   PREOP    => "pod2text -u $file > \$(DISTVNAME)/README",
54   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
55  },
56  clean            => {
57   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt*"
58  }
59 );