# $Id: Portfile 65908 2010-04-02 22:28:17Z jmr@macports.org $

PortSystem        1.0
PortGroup         python26 1.0

name                    py26-hgsvn
version                 0.1.8
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               md5     56209eae48b955754e09185712123428 \
                        sha1    029eeb5646228194d4677d2f4e3e33bc41da44cc \
                        rmd160  af056571b2d25110b61cffbf5512cb35967a7c1f

depends_lib-append      port:py26-distribute
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+)
