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

bitbucket.setup     facebook hg-experimental c5da191d0af2
version             0.0.20180223
name                py-hgexperimental
categories-append   devel
platforms           darwin
maintainers         {sean @seanfarley} openmaintainer
supported_archs     noarch
license             GPL-2+

description         This is a collection of proof-of-concept Mercurial \
                    extensions written at Facebook: smartlog, githelp, \
                    backups, and fbamend.
long_description    ${description}

checksums           rmd160  39c43b4a1ac0635867de8d0c8bc04f0676bb492c \
                    sha256  d28de8ed29f4ad6a4b680a9f05c21898fa17a8016cecda72d326fe741f92958d

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append \
                        bin:cargo:cargo
    depends_lib-append  path:bin/hg:mercurial \
                        port:py27-cython \
                        port:lz4

    post-destroot {
        set sp ${destroot}${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages

        # conflicts with hg and is not needed
        delete {*}[glob ${sp}/hgext3rd/__init__.py*]
    }

    notes               "
To enable all of the extensions in hgexperimental, add the following to your ~/.hgrc:

\[extensions\]
smartlog =
githelp =
backups =
fbamend =
chistedit =
sparse =
"

    livecheck.type      none
}