# -*- 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.6.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  a9fab5484d0d8d0d7d71dedcafd09114eca595b7 \
                    sha256  811b19efbc2fbf1957486ed78aabaf5d164d15f84464f7b4a7033b44591845c5 \
                    size    40609
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}
}
