# -*- 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                py-three-merge
version             0.1.1
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Simple library for merging two strings with respect to a base one
long_description    {*}${description}

homepage            https://github.com/spyder-ide/three-merge

checksums           rmd160  be28fd866b1c7a208619c1964f1417c076b8d44d \
                    sha256  60f6afe144595560d63ae32625351bcef3b94733b54eb97800a9feb0f3d9d970 \
                    size    5898

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-diff-match-patch

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md CHANGELOG.md \
            LICENSE ${destroot}${docdir}
    }
}
