# $Id: Portfile 75462 2011-01-25 19:51:00Z snc@macports.org $

PortSystem        1.0
PortGroup         python26 1.0

name                    py26-hgsvn
version                 0.1.8
revision                2
categories              python devel
platforms               darwin
maintainers             snc openmaintainer
homepage                http://pypi.python.org/pypi/hgsvn
description             hgsvn is a set of scripts for Subversion and Mercurial
long_description		This set of scripts allows to work locally on \
				Subversion-managed projects using the Mercurial \
				distributed version control system.

master_sites            http://pypi.python.org/packages/source/h/hgsvn
distname                hgsvn-${version}

checksums           sha1    029eeb5646228194d4677d2f4e3e33bc41da44cc \
                    rmd160  af056571b2d25110b61cffbf5512cb35967a7c1f

depends_lib-append      port:mercurial \
                        port:subversion \
                        port:py26-distribute

patchfiles              patch-hgsvn-ui.py.diff \
                        patch-hgsvn-run-hgpullsvn.py.diff

post-extract            { file copy ${filespath}/ez_setup.py ${worksrcpath} }

post-destroot   {
        xinstall -m 644 -W ${worksrcpath} AUTHORS.txt COPYING.txt README.txt TODO.txt  \
                ${destroot}${prefix}/share/doc/${name}
}

livecheck.type		regex
livecheck.url		${homepage}
livecheck.regex		hgsvn (\\d+\\.\\d+\\.\\d+)
