# $Id: Portfile 68151 2010-05-27 21:45:14Z raimue@macports.org $

PortSystem    1.0
PortGroup     python26 1.0

name          bzr
version       2.1.2
set branch    [join [lrange [split ${version} .] 0 1] .]
categories    devel python
platforms     darwin
maintainers   raimue

description   The next-generation distributed version control system
long_description  Bazaar is an open source distributed version control \
    system that is powerful, friendly, and scalable. It manages trees of \
    files and subdirectories, In particular, it records revisions of trees, \
    representing their state at a particular point in time, and information \
    about those revisions and their relationships. Recording and retrieving \
    tree revisions is useful in several ways if you are writing software or \
    documents or doing similar creative work.

homepage      http://bazaar-vcs.org/
master_sites  https://launchpad.net/${name}/${branch}/${version}/+download/

checksums     md5     834d18558b7f3e0f36e3933f8a177506 \
              sha1    3e0335b2a9517ac3ec681e044b36c16969ef2c30 \
              rmd160  1c31f50a8d6dda7cf475a76e6ba60aa2ab1705b2

patchfiles    patch-setup.py.diff

depends_lib-append  port:py26-paramiko \
                    port:py26-crypto \
                    port:py26-curl \
                    port:py26-docutils \
                    port:py26-pyrex

test.run      yes
test.cmd      make
test.target   check

python.link_binaries no

post-destroot {
    ln -s ${python.prefix}/bin/bzr ${destroot}${prefix}/bin/
    ln -s ${python.prefix}/share/man/man1/bzr.1 \
        ${destroot}${prefix}/share/man/man1
    xinstall -m 644 -W ${worksrcpath} INSTALL NEWS README TODO \
        ${destroot}${prefix}/share/doc/${name}
}

universal_variant no

livecheck.type      regex
livecheck.url       https://launchpad.net/bzr/+download
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
