# -*- 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
PortGroup           golang 1.0

go.setup            github.com/mmarkdown/mmark 2.2.48 v
go.offline_build    no
go.toolchain_min    1.21
revision            0

homepage            https://mmark.miek.nl

description         \
    Mmark: a powerful markdown processor in Go geared towards the IETF

long_description    \
    Mmark is a powerful markdown processor written in Go, geared towards \
    writing IETF documents. It is, however, also suited for writing complete \
    books and other technical documentation. It provides an advanced markdown \
    dialect that processes file\(s\) to produce internet-drafts in XML RFC \
    7991 format. Mmark can produce xml2rfc \(aforementioned RFC 7991\), HTML5 \
    output, and man pages.

categories          textproc
installs_libs       no
license             BSD
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/

    xinstall -d ${destroot}${prefix}/share/man/man1
    copy {*}[glob ${worksrcpath}/*.1] ${destroot}${prefix}/share/man/man1/

    xinstall -d ${destroot}${prefix}/share/man/man7
    copy {*}[glob ${worksrcpath}/*.7] ${destroot}${prefix}/share/man/man7/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  987e33b1764a867459258a3e6c767ea11fc148a2 \
                        sha256  8ab1295db3a9c1cdd353d4fc0f29daf1e6085b6e1989e30cd0348d0e17760bc1 \
                        size    256336

