# -*- 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.6.2
license             GPL-3+
platforms           {darwin any}
supported_archs     noarch
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           rmd160  6100d38126d47d2f891766105fd28f5882e6d740 \
                    sha256  1c1e3d6dc5374264e1f7c7d4a78616a811e8131c7ed214aed7e08a71f12923e9 \
                    size    162193

python.versions     310

if {${name} ne ${subport}} {
    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}
    }
}
