# -*- 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           python 1.0

name                terminal_markdown_viewer
python.rootname     mdv
version             1.7.5
revision            0

categories          textproc python
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         Styled Terminal Markdown Viewer
long_description    Features: \
                    - Tons of theme combinations: mdv ships with > 200 luminocity sorted themes, \
                    converted from html themes tables to ansi \
                      Those can be combined for code vs regular markdown output \
                    - Admonitions \
                    - Tables, incl. wide table handling avoiding "interleaving" \
                    - Somewhat hackable, all in one (mdv/markdownviewer.py) module \
                    - Useable as lib as well \
                    - File change monitor \
                    - Text wrapping \
                    - Source code highlighter \
                    - Little directory change monitor

homepage            https://github.com/axiros/terminal_markdown_viewer

checksums           rmd160  8dc7d0b25028a5ca00a2183979091f7fe7993289 \
                    sha256  eb84ed52a2b68d2e083e007cb485d14fac1deb755fd8f35011eff8f2889df6e9 \
                    size    54174

python.default_version 312

depends_lib-append  port:py${python.version}-docopt \
                    port:py${python.version}-markdown \
                    port:py${python.version}-pygments \
                    port:py${python.version}-tabulate \
                    port:py${python.version}-yaml

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -m 0644 -W ${worksrcpath} \
        LICENSE README.md ${destroot}${docdir}
}
