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

revision            1

github.setup        berdario pew 1.2.0
github.tarball_from releases
name                py-${github.project}

master_sites        ${github.homepage}/archive/
distname            ${github.version}
worksrcdir          ${github.project}-${github.version}

categories          python
platforms           darwin
license             MIT

python.versions     35 36 37

maintainers         openmaintainer {gmail.com:esafak @esafak}
description         A tool to manage multiple virtual environments written in pure python
long_description    $description
checksums           rmd160  2a92c21bc5a9e7a93b1a1051cc32d3c3554352e0 \
                    sha256  58e4f04ba644080ef820c2e07d1704112727e392c2fd1d42cdc31e112ffc2345 \
                    size    43005
use_zip             yes

test.run            yes

if {${name} ne ${subport}} {
    depends_lib-append      port:py${python.version}-virtualenv-clone \
                            port:py${python.version}-virtualenv \
                            port:py${python.version}-setuptools \
                            port:py${python.version}-pythonz

    depends_run-append      port:pew_select

    select.group            pew
    select.file             pew${python.version}

    notes "
    The executable is installed as\
    '${prefix}/bin/pew-${python.branch}'. To symlink it to\
    '${prefix}/bin/pew', run:

        sudo port select --set ${select.group} ${select.file}
    "
    
    livecheck.type  none

}