# $Id$

PortSystem    1.0
PortGroup     python 1.0

name          qbzr
version       0.23.2
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     d5e913bdc2cb94d084c196dfed6d3275 \
              rmd160  3cfd02bd38877340e9c7b73f5ca3fd5c30ba9321 \
              sha256  f3a41aac0eedf6a0ebfc66d01bdc311587fc14bc6cc03a9a74daed1ce4bdc071

worksrcdir    ${name}

supported_archs     noarch

python.default_version  27

# Can use either py*-pyqt4 or py*-pyqt4-devel.
depends_lib-append  port:bzr \
                    path:share/py${python.version}-sip/PyQt4:py${python.version}-pyqt4 \
                    port:py${python.version}-pygments

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