# -*- 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                torrra
version             2.0.2
revision            0
categories-prepend  net p2p
platforms           any
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         find and download torrents
long_description    Python tool that lets you {*}${description} without leaving your CLI.
homepage            https://github.com/stabldev/torrra
checksums           rmd160  8b46a2c438cc8155094c4d3d1377ca97147f21a6 \
                    sha256  0c100e2ce7eba7deec6339e0ab47defdb27899cab086cc58d44febeff37e7e8e \
                    size    1817592
supported_archs     noarch

# Match libtorrent-rasterbar
python.default_version  313
python.pep517_backend   hatch

depends_lib-append  port:py${python.version}-click \
                    port:py${python.version}-diskcache \
                    port:py${python.version}-httpx \
                    port:py${python.version}-platformdirs \
                    port:py${python.version}-textual \
                    port:py${python.version}-tomli-w
depends_run-append  port:libtorrent-rasterbar

notes "
On older macOS versions you may need to run this port\
in a modern terminal, such as contour or mlterm(-minimal).
"
