# -*- 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 65907 2010-04-02 22:08:22Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-virtualenv
version             1.3.3
categories-append   devel
platforms           darwin
maintainers         arthurk
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 28e2955aed4ffc4dc3df02dc632b5c42 \
                    sha1 1907ab65de03b210ef350d7f54a3a2be7e488b39 \
                    rmd160 cd247e05ec2514aacba818e3cd58e46acde67e54

depends_lib-append  port:py25-distribute

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath}/docs index.txt license.txt \
        ${destroot}${prefix}/share/doc/${name}
    
    move ${destroot}${prefix}/bin/virtualenv \
        ${destroot}${prefix}/bin/virtualenv-${python.branch}
}

livecheck.type      regex
livecheck.url       http://pypi.python.org/pypi/virtualenv
livecheck.regex     virtualenv (1\.\[0-9\]+\.\[0-9\]+)
