]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blob - Makefile.PL
Importing Variable-Magic-0.11.tar.gz
[perl/modules/Variable-Magic.git] / Makefile.PL
1 use 5.007003;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 eval {
8  require Config;
9 };
10 die "OS unsupported" if $@;
11
12 my @DEFINES;
13
14 my $pl = $Config::Config{perl_patchlevel};
15 print "Checking perl patchlevel... ";
16 if (defined $pl && length $pl) {
17  $pl = int $pl;
18  push @DEFINES, DEFINE => '-DVMG_PERL_PATCHLEVEL=' . $pl;
19  print $pl, "\n";
20 } else {
21  print "none\n";
22 }
23
24 WriteMakefile(
25     NAME                => 'Variable::Magic',
26     AUTHOR              => 'Vincent Pit <perl@profvince.com>',
27     LICENSE             => 'perl',
28     VERSION_FROM        => 'lib/Variable/Magic.pm',
29     ABSTRACT_FROM       => 'lib/Variable/Magic.pm',
30     PL_FILES            => {},
31     @DEFINES,
32     PREREQ_PM => {
33         'Carp'       => 0,
34         'Exporter'   => 0,
35         'Test::More' => 0,
36         'XSLoader'   => 0
37     },
38     dist                => { 
39         PREOP => 'pod2text lib/Variable/Magic.pm > $(DISTVNAME)/README',
40         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
41     },
42     clean               => { FILES => 'Variable-Magic-*' },
43 );