# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         python 1.0

name              py-bzr-git
version           0.5.2
categories-append devel
license           GPL-3+
maintainers       nomaintainer
platforms         darwin
supported_archs   noarch
description       A plugin for bzr to work with git trees.
long_description  ${description} All operations except \"push\" are supported.

homepage          https://launchpad.net/bzr-git
master_sites      ${homepage}/trunk/${version}/+download
distname          bzr-git-${version}

checksums         md5     228cb92fa0d9d64c082e0b91b807c192 \
                  sha1    dcac5ec9732071b9884a3e99e60d9a2f9e8e837e \
                  rmd160  c970beeb872a570a7bb52c3f31ec2f05deb12251

python.versions   26

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-dulwich
    livecheck.type    none
} else {
    livecheck.type    regex
    livecheck.url     ${homepage}/+download
    livecheck.regex   {bzr-git-(\d+(?:\.\d+)*).tar.gz}
}
