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

PortSystem              1.0
PortGroup               python 1.0
PortGroup               bitbucket 1.0

set realname            evolve
bitbucket.setup         marmoute mutable-history 3.1.0
name                    py-hg$realname
revision                1
categories-append       devel
platforms               darwin
license                 GPL-2+
maintainers             sean openmaintainer
supported_archs         noarch

description             Mutable history for mercurial
long_description        This extension provides several commands to mutate history \
                        and deal with issues it may raise.

checksums               rmd160  44a938188a1a190bcc8e81803d5f501a690941f9 \
                        sha256  4dd3dbd788ef65a3549fd3bc6c3faebe3ed27cd781d79aa31c3f59943f10bbc3

python.versions         27

if {$subport != $name} {
    depends_lib         path:bin/hg:mercurial

    post-destroot {
        file delete ${destroot}${python.pkgd}/hgext/__init__.py
        file delete ${destroot}${python.pkgd}/hgext/__init__.pyc

        move ${destroot}${python.pkgd}/hgext/${realname}.py  ${destroot}${python.pkgd}/hg${realname}.py
        move ${destroot}${python.pkgd}/hgext/${realname}.pyc ${destroot}${python.pkgd}/hg${realname}.pyc
    }

    notes               "
To enable hg${realname}, add the following to your ~/.hgrc:

\[extensions\]
hg${realname} = ${python.pkgd}/hg${realname}
"

    livecheck.type      none
}
