# -*- 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           cmake 1.1
PortGroup           github 1.0

name                maddy-parser
github.setup        progsource maddy 1.3.0
revision            0
categories          devel
platforms           any
license             MIT
maintainers         nomaintainer
description         C++ markdown to HTML header-only parser library
long_description    {*}${description}
checksums           rmd160  8104fb3640c9e1d7066e8d01172932c145a248bd \
                    sha256  561681f8c8d2b998c153cda734107a0bc1dea4bb0df69fd813922da63fa9f3e7 \
                    size    26357
github.tarball_from archive
supported_archs     noarch

compiler.cxx_standard   2014

configure.args-append   -DMADDY_BUILD_WITH_TESTS=OFF

destroot {
    copy ${worksrcpath}/include/maddy ${destroot}${prefix}/include/
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} CHANGELOG.md LICENSE README.md ${destroot}${docdir}
}
