This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Create SVt_INVLIST
[perl5.git] / dist / lib / Makefile.PL
1 ## This -*- perl -*- script writes the Makefile for lib.pm
2 # You should read "perldoc perlmodinstall" for instructions on
3 #  how to install modules like this.
4
5 require 5.006_001;
6 use strict;
7 use ExtUtils::MakeMaker;
8
9 my $lib_version = '0.62';
10
11 my $extra_meta = <<"EMETA";
12 provides:
13   lib:
14     file: lib_pm.PL
15     version: $lib_version
16 EMETA
17
18 my $extra_meta_hash = {
19   provides => {
20     lib => { file => 'lib_pm.PL',
21              version => $lib_version, },
22   },
23 };
24
25 my $mm_version = $ExtUtils::MakeMaker::VERSION;
26
27 WriteMakefile(
28   'NAME' => 'lib',
29   'VERSION' => $lib_version,
30   'LICENSE' => 'perl',
31   'PREREQ_PM' => {},
32   'ABSTRACT_FROM' => 'lib_pm.PL',
33   'AUTHOR' => 'Steffen Mueller <smueller@cpan.org>',
34   'INSTALLDIRS' => ($] < 5.012 ? 'perl' : 'site'),
35   'PL_FILES' => {'lib_pm.PL' => 'lib.pm'},
36   'PM' => {'lib.pm' => '$(INST_LIBDIR)/lib.pm'},
37   'clean' => {FILES => 'lib.pm'},
38   (
39     $mm_version >= 6.46
40     ? (META_ADD => $extra_meta_hash)
41     : ( 
42         $mm_version >= 6.3002
43         ? (EXTRA_META => $extra_meta)
44         : ()
45       )
46   ),
47 );
48
49