# $Id: Portfile 65918 2010-04-03 00:25:25Z snc@macports.org $

PortSystem        1.0
PortGroup         python27 1.0

name                    py27-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:py27-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+)
