# -*- 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-pyperclip
version             1.7.0
revision            0

platforms           darwin
supported_archs     noarch
license             BSD
maintainers         {petr @petrrr} openmaintainer

description         A cross-platform clipboard module for Python
long_description    ${description}. It currently handles only plain text.

homepage            https://github.com/asweigart/pyperclip

checksums           rmd160  27e0dafd44932b4c6258d662e74c79be1893b5de \
                    sha256  979325468ccf682104d5dcaf753f869868100631301d3e72f47babdea5700d1c \
                    size    15977

python.versions     27 35 36 37 38 39

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

    test.run        yes
    test.dir        ${build.dir}/tests
    test.cmd        ${python.bin} test_pyperclip.py
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

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

    livecheck.type  none
}
