]> git.vpit.fr Git - perl/modules/B-RecDeparse.git/blob - Makefile.PL
Build the $name and the main $file from $dist
[perl/modules/B-RecDeparse.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'B-RecDeparse';
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  'B::Deparse' => 0,
16  'Config'     => 0,
17  'Carp'       => 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   'Test::More'          => 0,
28   %PREREQ_PM,
29  },
30  dynamic_config => 0,
31  resources => {
32   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
33   homepage   => "http://search.cpan.org/dist/$dist/",
34   license    => 'http://dev.perl.org/licenses/',
35   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
36  },
37 );
38
39 WriteMakefile(
40     NAME             => $name,
41     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
42     LICENSE          => 'perl',
43     VERSION_FROM     => $file,
44     ABSTRACT_FROM    => $file,
45     PL_FILES         => {},
46     PREREQ_PM        => \%PREREQ_PM,
47     MIN_PERL_VERSION => 5.008,
48     META_MERGE       => \%META,
49     dist             => {
50         PREOP    => "pod2text $file > \$(DISTVNAME)/README",
51         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
52     },
53     clean            => {
54         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
55     }
56 );