ports/graphics/py-python-poppler-qt5/Makefile
Vladimir Druzenko 44ad61e377 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
2024-11-01 15:16:53 +03:00

36 lines
1 KiB
Makefile

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>