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