# -*- 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
python.rootname python-poppler-qt5
set _n [string index ${python.rootname} 0]
maintainers {gmail.com:davide.liessi @dliessi} openmaintainer
description Python binding for Poppler-Qt5
long_description ${python.rootname} is a Python binding for Poppler-Qt5 \
that aims for completeness \
and for being actively maintained. \
Using this module you can access \
the contents of PDF files \
inside PyQt5 applications.
homepage https://github.com/wbsoft/${python.rootname}
master_sites pypi:${_n}/${python.rootname}/
distname ${python.rootname}-${version}
checksums md5 1f45ed0f7f3cacc1d0f9e626bd5fb5c8 \
rmd160 baa134c6a9e466dddcb15a23f7238b88d1eed8af \
sha256 3970c35ce1f0f1464a6c2746bea4c479b9780b4e17030c92479f7f1738a5c950 \
python.versions 27 34 35 36 37
if {${name} ne ${subport}} {
depends_build-append port:py${python.version}-setuptools
depends_lib-append port:poppler-qt5 \
port:py${python.version}-sip \
port:py${python.version}-pyqt5
patchfiles patch-fix-qtxml.diff \
build.pre_args build_ext \
--qmake-bin=${qt_qmake_cmd}
set doc_dir ${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath} \
set examples_dir ${destroot}${prefix}/share/examples/${subport}
xinstall -d ${examples_dir}
xinstall -m 644 -W ${worksrcpath} demo.py ${examples_dir}