# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               github 1.0
PortGroup               python 1.0


github.setup            aitjcize cppman 0.5.9
github.tarball_from     archive
revision                0

# Seems odd, but this successfully triggers linking the binary into bin/
python.default_version  [python_get_default_version]

maintainers             {eborisch @eborisch} \
                        openmaintainer

categories              lang devel
license                 GPL-3+
supported_archs         noarch
platforms               {darwin any}

description             C++ 98/11/14/17/20 manual page fetcher / interface.
long_description        {*}${description} Sourced from cplusplus.com and \
                        cppreference.com.

checksums               rmd160  d582c7a4b3dd5123402251505c23411b88060c0d \
                        sha256  4413b62af0e2abeb158ae2ddef65d4c0c13fe389c8fca71503ec178c7a9462ce \
                        size    4657401

depends_lib-append \
    port:groff \
    port:py${python.version}-beautifulsoup4 \
    port:py${python.version}-html5lib

post-destroot {
    delete ${destroot}${prefix}/share
    move ${destroot}${python.prefix}/share ${destroot}${prefix}
}
