# -*- 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                py-discordpy
python.rootname     discord_py
version             2.6.4
license             MIT
platforms           {darwin any}
supported_archs     noarch
maintainers         {toby @tobypeterson} openmaintainer
description         API wrapper for Discord written in Python
long_description    discord.py is an API wrapper for Discord written in Python. \
                    This was written to allow easier writing of bots or chat logs.

homepage            https://github.com/Rapptz/discord.py

checksums           rmd160  8f575eda642ea2a7bb19204c00a68ee88f1c5624 \
                    sha256  44384920bae9b7a073df64ae9b14c8cf85f9274b5ad5d1d07bd5a67539de2da9 \
                    size    1092623

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    # requirements.txt
    depends_lib-append      port:py${python.version}-aiohttp
    if {${python.version} >= 313} {
        depends_lib-append  port:py${python.version}-audioop_lts
    }

    # [speed]
    depends_lib-append      port:py${python.version}-orjson \
                            port:py${python.version}-aiodns \
                            port:py${python.version}-brotli
    if {${python.version} <= 313} {
        depends_lib-append  port:py${python.version}-zstd
    }
}
