# -*- 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-urlwatch
version             2.28
revision            0

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         a tool for monitoring webpages for updates
long_description    urlwatch helps you watch URLs and get notified \(via email or in your \
                    terminal\) of any changes. The change notification will include the URL \
                    that has changed and a unified diff of what has changed, and can also \
                    filter content via hooks, remove noise (always-changing website parts).

homepage            https://thp.io/2008/urlwatch/

checksums           rmd160  fbc79cd216bcde6c952b6113b59016481bdcba57 \
                    sha256  911df3abbd8923e46ec167a9657a812436caf93f7f9917cb7c95ebd73d28cce5 \
                    size    306929

python.versions     310 311 312

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-appdirs \
                    port:py${python.version}-cssselect \
                    port:py${python.version}-keyring \
                    port:py${python.version}-lxml \
                    port:py${python.version}-minidb \
                    port:py${python.version}-requests \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-yaml

    depends_test-append \
                    port:py${python.version}-docutils

    test.run    yes

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