-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.PL
73 lines (70 loc) · 2.05 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
use strict;
use warnings;
use ExtUtils::MakeMaker;
my %optional;
if ($^O eq 'MSWin32') {
$optional{OBJECT} = q[];
$optional{C} = [];
$optional{MYEXTLIB} = q[];
} else {
eval `cat ./check_random.inc`;
if (($optional{DEFINE}) && ($optional{DEFINE} eq '-DNO_COMPILER_FOUND')) {
# figured this out from ExtUtils/MM_Unix.pm in has_link_code
$optional{OBJECT} = q[];
$optional{C} = [];
$optional{MYEXTLIB} = q[];
delete $optional{DEFINE};
} elsif (($optional{DEFINE}) && ($optional{DEFINE} eq '-DUNKNOWN_ENVIRONMENT')) {
$optional{OBJECT} = q[];
$optional{C} = [];
$optional{MYEXTLIB} = q[];
delete $optional{DEFINE};
}
}
WriteMakefile(
NAME => 'Crypt::URandom',
AUTHOR => 'David Dick <[email protected]>',
VERSION_FROM => 'lib/Crypt/URandom.pm',
%optional,
ABSTRACT_FROM => 'lib/Crypt/URandom.pm',
( $ExtUtils::MakeMaker::VERSION >= 6.3002
? ( 'LICENSE' => 'perl' )
: () ),
(
$ExtUtils::MakeMaker::VERSION >= 6.48
? ( 'MIN_PERL_VERSION' => '5.006' )
: ()
),
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
url => 'https://github.com/david-dick/crypt-urandom',
web => 'https://github.com/david-dick/crypt-urandom',
type => 'git',
},
bugtracker => {
web => 'https://github.com/david-dick/crypt-urandom/issues'
},
},
},
PL_FILES => {},
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
TEST_REQUIRES => {
'Encode' => 0,
'POSIX' => 0,
'Test::More' => 0,
'Test::Pod' => 1.14,
},
PREREQ_PM => {
'Exporter' => 0,
'Carp' => 1.26, # used on RHEL7
'constant' => 0,
'English' => 0,
($^O eq 'MSWin32') ? ( 'Win32::API' => 0 ) : ( 'FileHandle' => 0 ),
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Crypt-URandom-*' },
);