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

name                    hg-evolve
version                 11.1.8
revision                1
checksums               rmd160  9cb829330a1ee0ecec7c04a3da375627c45c3c9c \
                        sha256  2486dead90a2466c4f927d0ff83b29b38da31d686403584b2865cf95b6fe00f5 \
                        size    899277

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

homepage                https://www.mercurial-scm.org/doc/evolution/
description             Additional history rewriting commands for Mercurial.
long_description        Additional history rewriting commands for Mercurial \
                        for faster and safer mutable history. The extension \
                        offers a safe and simple way to refine changesets \
                        locally and propagate those changes to other \
                        repositories. The complex issues that can arise from \
                        exchanging draft changesets are automatically \
                        detected and handled, and it possible's for multiple \
                        developers to safely rewrite the same parts of history \
                        in a distributed way.

python.rootname         [string map {- _} ${name}]
python.default_version  313

depends_lib-append      port:mercurial
depends_test-append     port:dash

test.run                yes

test.cmd                ${python.bin} ./run-tests.py
test.args               -v -j ${build.jobs} --shell=${prefix}/bin/dash
test.target
test.dir                ${worksrcpath}/tests

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

\[extensions\]
evolve =
"

pre-test {
    xinstall ${prefix}/share/mercurial/contrib/killdaemons.py ${test.dir}
    xinstall ${prefix}/share/mercurial/contrib/run-tests.py ${test.dir}
}

post-patch {
    file delete ${worksrcpath}/hgext3rd/__init__.py
}
