# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-yolk
version             0.4.1
categories-append   devel
license             GPL-2
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
homepage            http://tools.assembla.com/yolk
description         Command-line tool querying PyPI and Python \
                    packages installed on your system
long_description    Yolk is a Python tool for obtaining information \
                    about packages installed by distutils, setuptools \
                    and easy_install and querying packages on PyPI \
                    (Python Package Index a.k.a. The Cheese Shop).  
master_sites        http://pypi.python.org/packages/source/y/yolk/
distname            yolk-${version}
checksums           md5     100b0f20aaf66aacd53987714cc91c3d \
                    sha1    004e7bf297ac9a752d4d41c3f7eeea7adaa7a675 \
                    rmd160  5a672ab6ba8f121787c008b2e1e5d2b4fd8270d0

python.versions     24 25 26 27

if {$subport != $name} {
    depends_build       port:py${python.version}-setuptools

    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        foreach f [glob -directory ${worksrcpath}/docs *] {
            copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f]
        }
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/yolk
    livecheck.regex     virtualenv (1\.\[0-9\]+\.\[0-9\]+)
}
