# -*- 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 45228 2009-01-11 16:45:44Z akitada@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-virtualenv
version             1.3.2
revision            1
categories-append   devel
platforms           darwin
maintainers         akitada openmaintainer
homepage            http://pypi.python.org/pypi/virtualenv
description         Virtual Python Environment builder
long_description    virtualenv is a tool to create isolated Python \
                    environments.

master_sites        http://pypi.python.org/packages/source/v/virtualenv/
distname            virtualenv-${version}
checksums           md5 a013d5a7d9aeddc16bee88604d6de636 \
                    sha1 151e94beae9bb22025ae0752f40e5cc6c760aeeb \
                    rmd160 848466ac8950bdab46756b8a675d5f9f9da9a5ac

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    foreach f [glob -directory ${worksrcpath}/docs *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
    foreach bin [glob -tails -directory ${destroot}${python.prefix}/bin *] {
        ln -s ${python.prefix}/bin/${bin} ${destroot}${prefix}/bin/${bin}${python.branch}
    }
}

depends_lib-append  port:py26-setuptools
