# -*- 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 78671 2011-05-17 09:36:26Z saispo@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

# Paver doesn't support --no-user-cfg
build.cmd		    ${python.bin} setup.py
destroot.cmd	    ${python.bin} setup.py

name                py26-virtualenvwrapper
version             2.7.1
categories          python
platforms           darwin
maintainers         nomaintainer
homepage            http://www.doughellmann.com/projects/virtualenvwrapper/
description         Enhancements to virtualenv.
long_description    Extensions to Ian Bicking's virtualenv tool.

master_sites        http://pypi.python.org/packages/source/v/virtualenvwrapper/
distname            virtualenvwrapper-${version}
checksums           md5     b01930b245b2beb9fe2ce69a4b0e0f25 \
                    sha1    543bbf6dccb0876baf269f1094ca516d385f4dfb \
                    rmd160  10a95ce310d7302dc23b2b3a921c5bc8183dd238

depends_lib-append  port:py26-distribute\
                    port:py26-virtualenv

patchfiles          virtualenvwrapper_sh.diff
post-patch {
    reinplace s|__VIRTUALENV_BIN__|${python.prefix}/bin/virtualenv| \
        ${worksrcpath}/virtualenvwrapper.sh
}
