-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
49 lines (41 loc) · 1.01 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## This -*- perl -*- script writes the Makefile for lib.pm
# You should read "perldoc perlmodinstall" for instructions on
# how to install modules like this.
require 5.006_001;
use strict;
use ExtUtils::MakeMaker;
my $lib_version = '0.63';
my $extra_meta = <<"EMETA";
provides:
lib:
file: lib_pm.PL
version: $lib_version
EMETA
my $extra_meta_hash = {
provides => {
lib => { file => 'lib_pm.PL',
version => $lib_version, },
},
};
my $mm_version = $ExtUtils::MakeMaker::VERSION;
WriteMakefile(
'NAME' => 'lib',
'VERSION' => $lib_version,
'LICENSE' => 'perl',
'PREREQ_PM' => {},
'ABSTRACT_FROM' => 'lib_pm.PL',
'AUTHOR' => 'Steffen Mueller <[email protected]>',
'INSTALLDIRS' => 'perl',
'PL_FILES' => {'lib_pm.PL' => 'lib.pm'},
'PM' => {'lib.pm' => '$(INST_LIBDIR)/lib.pm'},
'clean' => {FILES => 'lib.pm'},
(
$mm_version >= 6.46
? (META_ADD => $extra_meta_hash)
: (
$mm_version >= 6.3002
? (EXTRA_META => $extra_meta)
: ()
)
),
);