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

# For version 10.2.1 and new build system, we need to use pypi version
name                linkchecker
python.rootname     LinkChecker
version             10.6.0
revision            0

categories          www python
maintainers         {khindenburg @kurthindenburg} openmaintainer
platforms           {darwin any} freebsd
license             GPL-2+
supported_archs     noarch

description         linkchecker for html pages
long_description    linkchecker for html pages with recursive checking, \
                    multithreaded, output can be colored or normal text, HTML, \
                    SQL, CSV or a sitemap graph in XML or GML format, additionally \
                    reports download time for HTML pages HTTP/1.1 and 1.0, HTTPS, \
                    FTP, mailto:, news:, nntp:, gopher, telnet and local file \
                    links are supported, restrict link checking with regular \
                    expression filters for URLs, proxy support, give \
                    username/password for HTTP and FTP authorization, robots.txt \
                    exclusion protocol support, i18n support, CGI web interface. \
                    The gui portion is no longer included as it is not maintained.

homepage            https://pypi.python.org/pypi/${python.rootname}/

checksums           rmd160  9cd85ce659a5db1d8c39279556ca94c3aad7a595 \
                    sha256  fb7e8facda7749c2fa5fa5dc241c0adc302da3d31d588964a2570db501aa49e5 \
                    size    547746

python.default_version  312
python.pep517           yes

depends_build-append    port:py${python.version}-hatchling \
                        port:py${python.version}-hatch-vcs

depends_lib-append  port:py${python.version}-beautifulsoup4 \
                    port:py${python.version}-dnspython \
                    port:py${python.version}-requests \
                    port:py${python.version}-pyxdg

pre-test {
    # miniboa not in macports
    delete ${worksrcpath}/tests/checker/test_telnet.py
}

depends_test-append port:py${python.version}-parameterized \
                    port:py${python.version}-py \
                    port:py${python.version}-pytest \
                    port:py${python.version}-openssl
test.run            yes
test.target
test.cmd            pytest-${python.branch}
test.env            PYTHONPATH=${worksrcpath}/build/lib
