diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile new file mode 100644 index 000000000000..c4420c6346e1 --- /dev/null +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile @@ -0,0 +1,36 @@ +PORTNAME= python-poppler-qt5 +DISTVERSIONPREFIX= v +DISTVERSION= 21.3.0 +PORTREVISION= 3 +CATEGORIES= graphics python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= m.ne@gmx.net +COMMENT= Python bindings for the Poppler-Qt PDF rendering library +WWW= https://pypi.org/project/python-poppler-qt5/ + +LICENSE= LGPL21 LGPL3 +LICENSE_COMB= dual + +BUILD_DEPENDS= ${PY_SETUPTOOLS} +LIB_DEPENDS= libpoppler-qt5.so:graphics/poppler-qt5 + +USES= compiler:c++17-lang gl pkgconfig pyqt:5 python qt:5 +USE_GITHUB= yes +GH_ACCOUNT= frescobaldi +USE_GL= gl +USE_PYQT= pyqt5 qtbuilder:build +USE_PYTHON= autoplist pep517 +USE_QT= core gui xml qmake:build + +PEP517_BUILD_CONFIG_SETTING= -C--build-dir=build \ + -C--jobs=${MAKE_JOBS_NUMBER} -C--qmake=${QMAKE} \ + -C--qmake-setting='CONFIG += c++17' \ + -C--qmake-setting='QMAKE_CXXFLAGS += ${CXXFLAGS}' \ + -C--qmake-setting='QMAKE_LFLAGS += ${LDFLAGS}' \ + -C--verbose + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/popplerqt5${PYTHON_EXT_SUFFIX}.so + +.include diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo new file mode 100644 index 000000000000..f437a81c1655 --- /dev/null +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703990050 +SHA256 (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) = dbf3be9c8123429c8a73ebd4c18993331619198e88fa40dde99f48213fa75012 +SIZE (frescobaldi-python-poppler-qt5-v21.3.0_GH0.tar.gz) = 25641 diff --git a/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr new file mode 100644 index 000000000000..de574d9d336a --- /dev/null +++ b/graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr @@ -0,0 +1,8 @@ +A Python binding for libpoppler-qt5 that aims for completeness +and for being actively maintained. + +Created and currently maintained by Wilbert Berendsen . + +Usage: + import popplerqt5 + d = popplerqt5.Poppler.Document.load('file.pdf')