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