# -*- 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 aa15905ca87fd1e13c60684ff40ccde026cd7dd0
name                    py-hggit
version                 0.8.12-git-20190807
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  d78cb278f0902a8d3e7d1718eacc99e9124be479 \
                        sha256  17b8c8b23834f456ab577d7a3ef436e9b295a5586132b5594713f64820eb26e1 \
                        size    136809

# 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 =
"
}