# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               python 1.0

name                    py-hgsvn
version                 0.1.9
categories-append       devel
platforms               darwin
maintainers             saispo openmaintainer
license                 GPL-3+
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               rmd160  3f6c9b0bbda5c8454478436d0c0589e04d8394e1 \
                        sha256  de45c04a1b3c3e104fcfc99973609239240c3b22789b6e87e29323c7b86c333f

python.versions         24 25 26 27
python.default_version  27

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:mercurial \
                        port:subversion

    if {${python.version} == 24} {
        depends_run-append  port:py24-elementtree
    }

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

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