# $Id: Portfile 114303 2013-12-04 19:18:35Z michaelld@macports.org $

PortSystem    1.0
PortGroup     python27 1.0

name          qbzr
version       0.23.1
set branch    [join [lrange [split ${version} .] 0 1] .]
categories    devel python
platforms     darwin
license       GPL-2+
maintainers   raimue

description   QBzr is a GUI front end for bzr, based on Qt
long_description QBzr provided GUI frontend for many core bzr commands and \
    several universal dialogs and helper commands. Equivalents for core bzr \
    commands has the same names as CLI commands but with prefix \"q\".
homepage      https://launchpad.net/${name}
master_sites  https://launchpad.net/${name}/${branch}/${version}/+download/

checksums     md5     594796b2cf9887d895545d7ed84e3879 \
              rmd160  cc8615fe1c3176268d08bc7a0f12beb333c5eac9 \
              sha256  3211adef11c975dfbb6c80285651e2e6f3bfa99f1baa1a95371e8490ea8ff441

worksrcdir    ${name}

supported_archs     noarch

# Can use either py*-pyqt4 or py*-pyqt4-devel.
depends_lib-append  port:bzr \
                    path:share/py27-sip/PyQt4:py27-pyqt4 \
                    port:py27-pygments

livecheck.type      regex
livecheck.url       https://launchpad.net/${name}/+download
livecheck.regex     {qbzr-(\d+(?:\.\d+)*).tar.gz}
