# -*- 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                pmw
version             4.31
revision            0
checksums           rmd160  3254a341e831899b0134079d9997c35174522eb1 \
                    sha256  b897efa600626edf90c1a62b2a8257f9213584035fd7c2292a2286969e2bf71c \
                    size    2141511

categories          textproc audio
license             GPL-2+
platforms           darwin
maintainers         nomaintainer
description         music typesetting processor generating PostScript
long_description    Philips Music Writer (PMW) is a computer program for \
                    high quality music typesetting generating PostScript \
                    from textfiles.

homepage            https://web.archive.org/web/20190331211148/http://people.ds.cam.ac.uk/ph10/pmw.html
master_sites        sourceforge:project/philip-s-music-writer

build.target

# Disable silent rules
build.args          FULLECHO=

test.run            yes

destroot.destdir    BINDIR=${destroot}${prefix}/bin \
                    DATADIR=${destroot}${prefix}/share/pmw \
                    MANDIR=${destroot}${prefix}/share/man

post-destroot {
    set pdfdir ${prefix}/share/doc/${name}/pdf/
    xinstall -m 0755 -d ${destroot}${pdfdir}
    xinstall -m 0644 ${worksrcpath}/doc/spec.pdf ${destroot}${pdfdir}
}

livecheck.type      regex
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
livecheck.type      none
