-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.PL
77 lines (68 loc) · 2.26 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
#!/usr/bin/perl
use strict;
use warnings;
use ExtUtils::MakeMaker;
use 5.012;
my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) {
# developer release
$mm_ver = eval $mm_ver;
die $@ if $@;
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'CPU::Z80::Disassembler',
AUTHOR => 'Paulo Custodio <[email protected]>',
VERSION_FROM => 'lib/CPU/Z80/Disassembler.pm',
ABSTRACT_FROM => 'lib/CPU/Z80/Disassembler.pm',
DISTNAME => 'CPU-Z80-Disassembler',
PL_FILES => {},
PREREQ_PM => {
'Asm::Z80::Table' => 0.03,
'Bit::Vector' => 7.4,
'Class::Accessor' => 0.51,
'CPU::Z80::Assembler' => 2.18, # test fails if z80masm is not up-to-date
'File::Slurp' => 9999.26,
'Test::Output' => 1.031,
'Tie::File' => 1.00,
'Test::More' => 1.302162,
'Path::Tiny' => 0.122,
},
EXE_FILES => [
'bin/z80dis',
],
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
($mm_ver >= 6.48
? (MIN_PERL_VERSION => 5.012)
: ()
),
($mm_ver >= 6.31 ? (LICENSE => 'perl_5') : ()),
($mm_ver <= 6.45
? ()
: (META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/pauloscustodio/perl-CPU-Z80-Disassembler.git',
web => 'https://github.com/pauloscustodio/perl-CPU-Z80-Disassembler',
},
bugtracker => {
web => 'https://github.com/pauloscustodio/perl-CPU-Z80-Disassembler/issues',
},
},
})
),
clean => { FILES => 'CPU-Z80-Disassembler-*' },
);
sub MY::postamble {
return q{
# generate test data files
gen : t/data/zx48_benchmark.dump t/data/zx48_base.asm
t/data/zx48_benchmark.dump : t/tools/build_zx48_dz80.pl t/data/zx48.rom Makefile.PL
$(PERLRUN) -Ilib t/tools/build_zx48_dz80.pl t/data/zx48.rom t/data/zx48_benchmark.dump
t/data/zx48_base.asm : t/tools/build_zx48_asm.pl t/data/zx48.asm t/tools/Parsezx48.pm Makefile.PL
$(PERLRUN) -Ilib t/tools/build_zx48_asm.pl t/data/zx48.asm t/data/zx48_base.asm
};
}