# -*- 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
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-virtualenvwrapper
set real_name       virtualenvwrapper
version             4.0
python.versions     25 26 27 32 33
license             MIT
platforms           darwin
maintainers         nomaintainer
supported_archs     noarch

homepage            http://www.doughellmann.com/projects/${real_name}/
description         Enhancements to virtualenv.
long_description    Extensions to Ian Bicking's virtualenv tool.

master_sites        http://pypi.python.org/packages/source/v/${real_name}/
distname            ${real_name}-${version}
checksums           rmd160  6d1a3aa3a52b3ca5f3e087c251f06b7d4596dc41 \
                    sha256  fe62ea3b8a4e177789092c9412fe2ea1a2c8efd0281216f16887e475bde44210

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-stevedore \
                        port:py${python.version}-virtualenv \
                        port:py${python.version}-virtualenv-clone
    
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/${real_name}
    livecheck.regex     ${real_name}-(\[0-9.\]+)${extract.suffix}
}
