# -*- 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-virtualenvwrapper
version             4.8.4
revision            0
platforms           darwin
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         Enhancements to virtualenv
long_description    virtualenvwrapper is a set of extensions to Ian \
                    Bicking's virtualenv tool. The extensions include \
                    wrappers for creating and deleting virtual \
                    environments and otherwise managing your \
                    development workflow, making it easier to work on \
                    more than one project at a time without \
                    introducing conflicts in their dependencies.

homepage            https://virtualenvwrapper.readthedocs.io/
master_sites        pypi:v/${python.rootname}
distname            ${python.rootname}-${version}

checksums           rmd160  1d7791e2df3689b44e3293757825bd89405c2af1 \
                    sha256  51a1a934e7ed0ff221bdd91bf9d3b604d875afbb3aa2367133503fee168f5bfa \
                    size    334920

python.versions     27 35 36 37 38

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.txt LICENSE \
            ChangeLog AUTHORS ${destroot}${docdir}
    }

    notes "
You might need to set some variables and source the shell script. For example:

export VIRTUALENVWRAPPER_PYTHON='${prefix}/bin/python${python.branch}'
export VIRTUALENVWRAPPER_VIRTUALENV='${prefix}/bin/virtualenv-${python.branch}'
export VIRTUALENVWRAPPER_VIRTUALENV_CLONE='${prefix}/bin/virtualenv-clone-${python.branch}'
source ${prefix}/bin/virtualenvwrapper.sh-${python.branch}
"

    livecheck.type      none
}
