# -*- 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 92832 2012-05-08 23:37:21Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0
PortGroup           select 1.0

github.setup        arc90 git-sweep 0.1.1
name                py-git-sweep
python.versions     26 27
python.default_version  27
categories-append   devel
platforms           darwin
maintainers         singingwolfboy openmaintainer
license             MIT
description         clean up Git branches that have been merged into master
long_description    \
    Command-line tool to help ${description}

checksums           rmd160  ea6ceb719a2dd75fb5e4ad74c2073a7608d896c0 \
                    sha256  b35fd6075527335946c7010f2d74c6ec3b1e5690a42e74aa0f2dff409d49c6e9

if {$subport != $name} {
    livecheck.type      none
    depends_lib-append  port:py${python.version}-gitpython \
                        port:py${python.version}-gitdb \
                        port:git-sweep_select
    subport py26-git-sweep {
        depends_lib-append  port:py26-argparse
    }
    select.group        git-sweep
    select.file         ${filespath}/python${python.version}
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     git-sweep (\\d+(\\.\\d+)+)
}
