# -*- 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-diff-match-patch
version             20181111
revision            0
platforms           darwin
license             Apache-2
maintainers         nomaintainer

description         The Diff Match and Patch libraries offer robust algorithms to perform \
                    the operations required for synchronizing plain text.
long_description    ${description}

homepage            https://github.com/google/diff-match-patch
master_sites        pypi:d/diff-match-patch
distname            diff-match-patch-${version}

checksums           rmd160  e01dabf595cee36ea587bac9653bf21d4281346c \
                    sha256  a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb \
                    size    58554

python.versions     27 36 37

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools

    post-destroot {
        xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} LICENSE CONTRIBUTING.md \
            CODE_OF_CONDUCT.md README.md ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
}