# -*- 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             3.2.2
revision            0
categories-append   devel
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311

maintainers         {stromnov @stromnov} openmaintainer

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

homepage            https://fabfile.org

checksums           rmd160  b865cfcf8d5fca1943d21fbab49c3c28217a081c \
                    sha256  8783ca42e3b0076f08b26901aac6b9d9b1f19c410074e7accfab902c184ff4a3 \
                    size    183215

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-invoke \
                        port:py${python.version}-paramiko \
                        port:py${python.version}-decorator \
                        port:py${python.version}-deprecated \
                        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}]
"
}
