# -*- 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

PortSystem          1.0

name                d52
epoch               1
version             3.4.1
categories          devel
platforms           darwin
license             GPL-3+
maintainers         nomaintainer

description         Disassembler for a variety of microprocessors
long_description    d52 is a set of disassemblers for the 8052, 8035, \
                    8048, 8041, Z80, 8080 and 8085 microcontrollers
# Use a mirror - original homepage is 404 as of Nov 2020
#homepage            http://www.8052.com/users/disasm/
homepage            http://www.brouhaha.com/~eric/software/d52/

master_sites        ${homepage}
distname            ${name}v[string map {"." ""} ${version}]
use_zip             yes
checksums           md5 55147203ba3bfe24ff7e7d2deec499e7

patchfiles          decimal-number.patch

use_configure       no

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/bin
    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
    xinstall -m 755 -W ${worksrcpath} d48 d52 dz80 ${destroot}${prefix}/bin/
    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/${name}
}

livecheck.type      regex
livecheck.regex     {Download version ([0-9.]+)}
