# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 92603 2012-05-02 07:01:53Z titus@macports.org $

PortSystem 1.0
PortGroup python27 1.0

name                    py27-hgsubversion
version                 1.4
revision                0
categories-append       devel
platforms               darwin
maintainers             titus openmaintainer
supported_archs         noarch

description             hgsubversion is a Mercurial extension for \
                        working with Subversion (svn) repositories.
long_description        hgsubversion is an extension for Mercurial \
                        that allows using Mercurial as a Subversion (svn) client.

set bitbucket_url       https://bitbucket.org/durin42/hgsubversion
homepage                ${bitbucket_url}/wiki/Home
master_sites            http://pypi.python.org/packages/source/h/hgsubversion
distname                hgsubversion-${version}

checksums               sha1    037625745a982592cc24281afe08ddaeef9691b7 \
                        rmd160  9566f9af2a33aa51b2791e998f18fbe15ad50431

depends_lib-append      port:mercurial \
                        port:py27-subvertpy

# fix permissions
post-extract            { system -W ${worksrcpath} "chmod o+r hgsubversion.egg-info/*" }

livecheck.url           ${bitbucket_url}/downloads
livecheck.regex         /get/(\\d(\\.\\w)+)\\${extract.suffix}"
