# -*- 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.40 v
github.tarball_from archive
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  aa355e51be267789fdb5d5f98a73986357e903d2 \
                        sha256  f9d26bf5b1a811752d82764b4824940e7273cf411d736f8127de43af774d4324 \
                        size    254084

go.vendors          github.com/google/go-cmp \
                        lock    v0.2.0 \
                        rmd160  4defcbaf9d26722120790d85670c8dc98df968b7 \
                        sha256  901195a78019fa669f6a56c48e0d03d86c1473b3e65b65fdb05ff0c389f03ac8 \
                        size    57880 \
                    github.com/gomarkdown/markdown \
                        lock    5421fefb8386 \
                        rmd160  75ee39c2f96f9a3a6204fc1e78025fa81784beca \
                        sha256  7391d484d26993f5f8974d8c1da787b8b754b85aabe7642a944b233068843d09 \
                        size    122747 \
                    github.com/BurntSushi/toml \
                        lock    v1.3.2 \
                        rmd160  d34d7e7532c67412d48f3777a5bba8cd5a04b0cd \
                        sha256  ba788b5f21507f40faa972bc86cb87d8929c798959f7402152d86120ac357d05 \
                        size    119417
