Commits

Ryan Schmidt authored 3722785f03f
simh: Install all the emulators

Don't hardcode a list of emulators to install, because newer versions might introduce new emulators.
No tags

emulators/simh/Portfile

Modified
1 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 2
3 3 PortSystem 1.0
4 4 PortGroup github 1.0
5 5
6 6 github.setup simh simh 3.9-0 v
7 +revision 1
7 8 checksums rmd160 a464e7d1fc6d58dd23a3ef623c3c018d5d60b050 \
8 9 sha256 e49b259b66ad6311ca9066dee3d3693cd915106a6938a52ed685cdbada8eda3b \
9 10 size 3103657
10 11
11 12 categories emulators
12 13 platforms darwin
13 14 maintainers nomaintainer
14 15 # MIT license with an added no-advertising clause
15 16 license Permissive
16 17
33 34 extract.mkdir yes
34 35
35 36 depends_lib port:libpcap
36 37
37 38 post-patch {
38 39 reinplace -E -locale C "s|/usr(/lib/libpcap.A.dylib)|${prefix}\\1|g" ${worksrcpath}/sim_ether.c
39 40 }
40 41
41 42 use_configure no
42 43
44 +set bindir ${worksrcpath}/BIN
45 +
43 46 pre-build {
44 - file mkdir ${worksrcpath}/BIN
47 + file mkdir ${bindir}
45 48 }
46 49
47 50 build.args GCC="${configure.cc} [get_canonical_archflags]" \
48 51 INCPATH="${prefix}/include" \
49 52 LIBPATH="${prefix}/lib" \
50 53 USE_NETWORK=1
51 54
52 55 destroot {
53 - set binaries {altair altairz80 eclipse gri h316 hp2100 i1401 i1620 i7094
54 - ibm1130 id16 id32 lgp nova pdp1 pdp10 pdp11 pdp15 pdp4 pdp7
55 - pdp8 pdp9 s3 sds vax vax780}
56 - foreach binary $binaries {
57 - xinstall -c -m 755 ${worksrcpath}/BIN/${binary} ${destroot}${prefix}/bin/simh-${binary}
56 + foreach binary [glob -tails -directory ${bindir} *] {
57 + xinstall -c -m 755 ${bindir}/${binary} ${destroot}${prefix}/bin/simh-${binary}
58 58 }
59 59
60 60 xinstall -d -m 755 ${destroot}${prefix}/share/simh/VAX
61 61 xinstall -c -m 644 ${worksrcpath}/VAX/ka655x.bin ${destroot}${prefix}/share/simh/VAX
62 62 }
63 63
64 64 github.livecheck.regex {([0-9.-]+)}

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut