summaryrefslogtreecommitdiff
path: root/graphics/py-python-poppler-qt5
diff options
context:
space:
mode:
authorVladimir Druzenko <vvd@FreeBSD.org>2024-11-01 15:02:19 +0300
committerVladimir Druzenko <vvd@FreeBSD.org>2024-11-01 15:07:14 +0300
commitcc3975393535d0563e4dfad9638409e2fa90941d (patch)
tree9d48b82eb4a44e394b75f043965fd9b1c8b62269 /graphics/py-python-poppler-qt5
parentsysutils/lnav: Mark broken on main (diff)
graphics/py-python-poppler-qt5: Fix build: Cannot import 'sipbuild.api'
Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook raise BackendUnavailable( pyproject_hooks._impl.BackendUnavailable: Cannot import 'sipbuild.api' ERROR Backend 'sipbuild.api' is not available. - Add missing build dependency needed after recent changes to the python build infrastructure. - Replace BUILD_DEPENDS=qmake-qt5:devel/qt5-qmake with USE_QT=qmake:build. PR: 282439 Approved by: Martin Neubauer <m.ne@gmx.net> (maintainer) MFH: 2024Q4
Diffstat (limited to 'graphics/py-python-poppler-qt5')
-rw-r--r--graphics/py-python-poppler-qt5/py-python-poppler-qt5/Makefile36
-rw-r--r--graphics/py-python-poppler-qt5/py-python-poppler-qt5/distinfo3
-rw-r--r--graphics/py-python-poppler-qt5/py-python-poppler-qt5/pkg-descr8
3 files changed, 47 insertions, 0 deletions
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 <bsd.port.mk>
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 <wbsoft@xs4all.nl>.
+
+Usage:
+ import popplerqt5
+ d = popplerqt5.Poppler.Document.load('file.pdf')