Remove all the pure Perl bits to go XS-only
[gitmo/Class-MOP.git] / Makefile.PL
1 # The perl/C checking voodoo is mostly stolen from Graham Barr's
2 # Scalar-List-Utils distribution.
3 use strict;
4 use warnings;
5
6 use ExtUtils::MakeMaker;
7 use Config qw(%Config);
8 use File::Spec;
9
10 use 5.008;
11
12 my %prereqs = (
13     'Scalar::Util'             => '1.18',
14     'Sub::Name'                => '0.04',
15     'Sub::Identify'            => '0.03',
16     'MRO::Compat'              => '0.05',
17     'Test::More'               => '0',
18     'Test::Exception'          => '0',
19     'File::Spec'               => '0',
20     'Carp'                     => '0',
21     'Devel::GlobalDestruction' => '0',
22     'Task::Weaken'             => '0',
23     'B'                        => '0',
24 );
25
26 my $ccflags = -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE} ? '-Wall' : '';
27
28 WriteMakefile(
29     VERSION_FROM  => 'lib/Class/MOP.pm',
30     NAME          => 'Class::MOP',
31     PREREQ_PM     => \%prereqs,
32     CCFLAGS       => $ccflags,
33     ABSTRACT_FROM => 'lib/Class/MOP.pm',
34     AUTHOR        => 'Stevan Little <stevan@iinteractive.com>',
35     LICENSE       => 'perl',
36 );