# -*- 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-qpageview
version             0.5.1
platforms           darwin
license             GPL-3+
maintainers         {gmail.com:davide.liessi @dliessi} openmaintainer

description         Widget to display page-based documents for Qt5/PyQt5
long_description    ${python.rootname} provides a page based document viewer \
                    widget for Qt5/PyQt5. \
                    It has a flexible architecture potentionally supporting \
                    many formats. Currently, it supports SVG documents, images, \
                    and, using the Poppler-Qt5 binding, PDF documents.

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

checksums           md5     a322c628eba13992992c378d241eeb9d \
                    rmd160  b4485bb13efa885ffc4fa64bcca320874c2b6dfa \
                    sha256  3961e0b93a4f5e56c03ea547d5ba1094272a12ecb32ea09c9cf947bbc2d50dd6 \
                    size    158235

python.versions     36 37 38 39

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

    depends_lib-append      port:py${python.version}-pyqt5 \
                            port:py${python.version}-poppler-qt5

    post-destroot {
        set doc_dir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${doc_dir}
        xinstall -m 644 -W ${worksrcpath} \
            ChangeLog \
            LICENSE \
            README.rst \
            ${doc_dir}
    }

    livecheck.type  none
}
