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

github.setup        ihabunek toot 0.40.2
github.tarball_from archive
revision            0

description         A CLI and TUI tool for interacting with Mastodon instances

long_description    {*}${description}

categories          net python
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  592462ba04ec2dd07a4d1191f205680398edcef3 \
                    sha256  c2b8ae33fb82d14f5181772a7eac0e92de61f1637cc7a4691dda90e390ff9753 \
                    size    912743

python.default_version 311

test.run            yes
test.env-append     PYTHONPATH=${worksrcpath}/build/lib
test.cmd            ${python.bin}
test.pre_args       -c {'import toot.console; toot.console.main()'}
test.args

depends_lib-append  port:py${python.version}-beautifulsoup4 \
                    port:py${python.version}-requests       \
                    port:py${python.version}-setuptools     \
                    port:py${python.version}-tomlkit        \
                    port:py${python.version}-urwid          \
                    port:py${python.version}-wcwidth
