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

bitbucket.setup     rw_grim local-pipelines 0.4.1 v
name                py-local-pipelines
categories-append   devel
license             GPL-3+
maintainers         nomaintainer
description         Local Pipelines parses your bitbucket-pipelines.yml and \
                    runs it locally using your local Docker instance
long_description    ${description}

platforms           darwin
supported_archs     noarch

checksums           rmd160  2d78e8998a4feb3f9654b92f67a5d517f26c2393 \
                    sha256  c599dd9d22a3aa44da3b9088ae5a20c54f2e9e7c8145ea965f7c69702600f864

python.versions     27 34 35 36

depends_run-append  port:local-pipelines_select
if {${name} ne ${subport}} {
    select.group    local-pipelines
    select.file     ${filespath}/local-pipelines${python.version}

    depends_build-append port:py${python.version}-setuptools
    depends_lib-append   port:py${python.version}-yaml

    notes "
To make this the default local-pipelines run:

    sudo port select --set local-pipelines local-pipelines${python.version}
"

    livecheck.type  none
}