# -*- 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-dload
version             0.6
platforms           darwin
license             MIT
maintainers         nomaintainer

description         A multipurpose downloader for python > 3.6
long_description    {*}${description}

homepage            https://github.com/x011/dload

master_sites        https://files.pythonhosted.org/packages/fc/30/41da7ccf08389e9e262dfef55d68acc5e066ab85bfdd26c9039fef57ead9
distname            dload-${version}-py3-none-any

checksums           rmd160  6e88cc6e66da709b49de6de8c2ea2aacd793ede9 \
                    sha256  40113d7a77ad782b40ea2713f8fe17cbdfe49dbd63db6061eb80ca91c1000e9e \
                    size    8141

extract.suffix      .whl
extract.only

python.versions     37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-pip

    build {
    }

    destroot.cmd    pip-${python.branch}
    destroot.args   \
        --ignore-installed \
        --no-cache-dir \
        --no-dependencies \
        --root ${destroot} \
        ${distpath}/${distfiles}
    destroot.post_args

    livecheck.type  none
}
