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

epoch                   20130201

bitbucket.setup         durin42 hg-git c8fea7a921634bda3d4e68e2c7a0d73b7447dea4
name                    py-hggit
version                 0.8.12-git-20190402
revision                0

categories-append       devel
license                 GPL-2
platforms               darwin
supported_archs         noarch
maintainers             {easieste @easye} openmaintainer

homepage                http://hg-git.github.com/
description             Push to and pull from a Git server repository from Mercurial.
long_description        This is the Hg-Git plugin for Mercurial, adding the ability \
                        to push to and pull from a Git server repository from Mercurial.\
                        This means you can collaborate on Git based projects from Mercurial, \
                        or use a Git server as a collaboration point for a team with \
                        developers using both Git and Mercurial.

checksums               rmd160  ad084c9e4a315909665eaef6f1aaac868c8b4d51 \
                        sha256  a0d6d94b92a353f778f1c44ef00260e494b0cc6b1d9e410f709cc28b530d220d \
                        size    138396

# can't set python.versions before adding custom subports
subport py-hggit-devel {}
subport py27-hggit-devel {}

# obsolete 20190301
if {[string match "*-devel" $subport]} {
    replaced_by         ${name}
    PortGroup           obsolete 1.0
}

python.versions         27

if {${name} ne ${subport}} {
    depends_lib-append  port:mercurial \
                        bin:dulwich-2.7:py${python.version}-dulwich

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

\[extensions\]
hggit =
"
}