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