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

name                py-fabric
version             2.4.0
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 36 37 38 39

maintainers         {stromnov @stromnov} openmaintainer

description         Fabric is a simple tool for remote execution and deployment.
long_description    ${description}

homepage            http://fabfile.org
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  121a6cb61ae07c16f8c7e220d99386030c344b59 \
                    sha256  93684ceaac92e0b78faae551297e29c48370cede12ff0f853cdebf67d4b87068 \
                    size    156850

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-invoke \
                        port:py${python.version}-paramiko \
                        port:py${python.version}-cryptography \
                        port:fabric_select

    select.group        fabric
    select.file         ${filespath}/fabric${python.version}
    notes "
To make the Python ${python.branch} version of fabric the one that is run\
when you execute the commands without a version suffix, e.g. 'fab', run:

port select --set ${select.group} [file tail ${select.file}]
"

    livecheck.type      none
}
