-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
executable file
·96 lines (86 loc) · 1.7 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
use strict;
use ExtUtils::MakeMaker;
if (eval {require ExtUtils::Constant; 1}) {
my @names =
(qw(
OASHIFT
OCSHIFT
OA_CLASS_MASK
OA_MARK
OA_FOLDCONST
OA_RETSCALAR
OA_TARGET
OA_RETINTEGER
OA_OTHERINT
OA_DANGEROUS
OA_DEFGV
OA_TARGLEX
OA_BASEOP
OA_UNOP
OA_BINOP
OA_LOGOP
OA_LISTOP
OA_PMOP
OA_SVOP
OA_PADOP
OA_PVOP_OR_SVOP
OA_LOOP
OA_COP
OA_BASEOP_OR_UNOP
OA_FILESTATOP
OA_LOOPEXOP
OA_SCALAR
OA_LIST
OA_AVREF
OA_HVREF
OA_CVREF
OA_FILEREF
OA_SCALARREF
OA_OPTIONAL
OA_NOSTACK
OA_MAYSCALAR
OA_MAYARRAY
OA_MAYVOID
OA_RETFIXED
OA_MAYBRANCH
));
ExtUtils::Constant::WriteConstants
(NAME => 'Opcodes',
NAMES => \@names,
DEFAULT_TYPE => 'IV',
);
}
WriteMakefile(
NAME => 'Opcodes',
VERSION_FROM => 'lib/Opcodes.pm',
ABSTRACT_FROM => 'lib/Opcodes.pm',
AUTHOR => 'Reini Urban',
LICENSE => 'perl',
($ExtUtils::MakeMaker::VERSION gt '6.46' ?
('META_MERGE' => {
resources =>
{
license => 'https://dev.perl.org/licenses/',
repository => 'https://github.com/rurban/Opcodes',
},
}
) : ()),
realclean => {FILES => 'const-c.inc const-xs.inc'},
SIGN => 1,
);
package MY;
sub dist {
local $_ = shift->SUPER::dist(@_);
s/DIST_DEFAULT = /DIST_DEFAULT = README.md /;
return $_;
}
sub depend { '
README.md : $(VERSION_FROM)
pod2markdown $(VERSION_FROM) | \
$(PERL) -pe\'s/png\]\(https:/png\)\](https:/; s/(Travis|Coveralls): \[/\[!\[\1]\(/;\' > $@
test_cover :: pure_all
$(RM_RF) cover_db
$(PERLRUNINST) -S cover -test
test_coveralls :: pure_all
$(PERLRUNINST) -S cover -test -report coveralls
'; }