Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2024 12:07:24 GMT
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: cc3975393535 - main - graphics/py-python-poppler-qt5: Fix build: Cannot import 'sipbuild.api'
Message-ID:  <202411011207.4A1C7OL7018698@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cc3975393535d0563e4dfad9638409e2fa90941d

commit cc3975393535d0563e4dfad9638409e2fa90941d
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-11-01 12:02:19 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-11-01 12:07:14 +0000

    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
---
 .../py-python-poppler-qt5/Makefile                 | 36 ++++++++++++++++++++++
 .../py-python-poppler-qt5/distinfo                 |  3 ++
 .../py-python-poppler-qt5/pkg-descr                |  8 +++++
 3 files changed, 47 insertions(+)

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')



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411011207.4A1C7OL7018698>