# $Id: Portfile 54351 2009-07-25 09:05:30Z raimue@macports.org $

PortSystem    1.0
PortGroup     python25 1.0

name          bzr
version       1.17
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     d772508e60b47a1641fa487c5cf7e08e \
              sha1    32dce4d48768c32c4a62595249fe37534179a116 \
              rmd160  422d4c5b47b003fe35491ce01ea55bae2f28f004 

patchfiles    patch-setup.py.diff

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

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

post-destroot {
  xinstall -m 644 -W ${worksrcpath} INSTALL NEWS README TODO \
    ${destroot}${prefix}/share/doc/${name}
}

universal_variant no

livecheck.check     regex
livecheck.url       ${homepage}
livecheck.regex     {Bazaar (\d+(?:\.\d+)*) was released}
