]> git.vpit.fr Git - perl/modules/LaTeX-TikZ.git/blob - Makefile.PL
Update VPIT::TestHelpers to 15e8aee3
[perl/modules/LaTeX-TikZ.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'LaTeX-TikZ';
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  'List::Util'    => 0,
17  'Math::Complex' => 0,
18  'Math::Trig'    => 0,
19  'Mouse'         => '0.80', # register_type_constraint + type constraint bug
20  'Scalar::Util'  => 0,
21  'Sub::Name'     => 0,
22  'Task::Weaken'  => 0,
23  'constant'      => 0,
24 );
25
26 my %BUILD_REQUIRES = (
27  'ExtUtils::MakeMaker' => 0,
28  'Test::More'          => 0,
29  'lib'                 => 0,
30  %PREREQ_PM,
31 );
32
33 my %META = (
34  configure_requires => {
35   'ExtUtils::MakeMaker' => 0,
36  },
37  build_requires => {
38   %BUILD_REQUIRES,
39  },
40  dynamic_config => 0,
41  resources => {
42   bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist",
43   homepage   => "http://search.cpan.org/dist/$dist/",
44   license    => 'http://dev.perl.org/licenses/',
45   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
46  },
47 );
48
49 WriteMakefile(
50  NAME             => $name,
51  AUTHOR           => 'Vincent Pit <perl@profvince.com>',
52  LICENSE          => 'perl',
53  VERSION_FROM     => $file,
54  ABSTRACT_FROM    => $file,
55  PL_FILES         => {},
56  BUILD_REQUIRES   => \%BUILD_REQUIRES,
57  PREREQ_PM        => \%PREREQ_PM,
58  MIN_PERL_VERSION => '5.008',
59  META_MERGE       => \%META,
60  dist             => {
61   PREOP    => "pod2text -u $file > \$(DISTVNAME)/README",
62   COMPRESS => 'gzip -9f', SUFFIX => 'gz'
63  },
64  clean            => {
65   FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
66  }
67 );