# -*- 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.46 v
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  5a68655f9bcbda3962252f4149d0c72d9dd0169a \
                        sha256  829659158f0dc4f079105b4d35e090045420ec678ee5946a60885c698703255a \
                        size    255405

go.vendors          github.com/google/go-cmp \
                        lock    v0.2.0 \
                        rmd160  4defcbaf9d26722120790d85670c8dc98df968b7 \
                        sha256  901195a78019fa669f6a56c48e0d03d86c1473b3e65b65fdb05ff0c389f03ac8 \
                        size    57880 \
                    github.com/gomarkdown/markdown \
                        lock    034f12af3bf6 \
                        rmd160  b136d6ca77f8390183daf299aa7943080d419048 \
                        sha256  98bba6713a0dfbcad792e491780b2b3d2934b7f00aaff73b6d284e08e3875be6 \
                        size    123519 \
                    github.com/BurntSushi/toml \
                        lock    v1.4.0 \
                        rmd160  61fb91ac7b8b358e229a361c615a3cf3ea1fbd14 \
                        sha256  45692255b59b4dbe0045a088a20eba0efafdca83446accf65847a3184686eff9 \
                        size    117687
