# -*- 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

PortSystem              1.0
PortGroup               python 1.0
PortGroup               bitbucket 1.0
PortGroup               deprecated 1.0

bitbucket.setup         durin42 hgsubversion 1.9.3
name                    py-hgsubversion

# 20200818: not seeing active development, so presumably broken with Python 3
deprecated.upstream_support no

categories-append       devel
platforms               {darwin any}
maintainers             {danchr @danchr} openmaintainer
supported_archs         noarch
license                 GPL-2+

homepage                https://www.mercurial-scm.org/wiki/HgSubversion
description             hgsubversion is a Mercurial extension for \
                        working with Subversion (svn) repositories.
long_description        ${description}

checksums               rmd160  08f1be76912ae81a56c8eb49e96d12bd47916742 \
                        sha256  daec4abab484ec63956964e18af36f401ba5f5b12981ffd2858b8466aac5e7ab \
                        size    306205

python.versions         27

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

    notes               "
To enable hgsubversion, add the following to your ~/.hgrc:

\[extensions\]
hgsubversion =
"
}

# bitbucket is no longer available, but the archives are in the
# mirrors; new releases will be here:
livecheck.url          http://hg.durin42.com/hgsubversion/json-tags
livecheck.regex        {"tag": *"([^"]+)"[,\}]}
